register.vue 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100
  1. <template>
  2. <view class="container register" :style="{paddingTop:CustomBar+'px'}">
  3. <cu-custom :navbar-data='nvabarData' @navigateBack="hanldNavigateBack"></cu-custom>
  4. <view class="register-main first clearfix">
  5. <view class="register-row clearfix">
  6. <text class="register-title">注册信息</text>
  7. </view>
  8. <view class="register-row clearfix">
  9. <view class="register-from">
  10. <view class="label">联系人:</view>
  11. <input class="row-input" type="text" name="input" v-model="clubContact" placeholder="请输入联系姓名" maxlength="6"/>
  12. </view>
  13. </view>
  14. <view class="register-row clearfix">
  15. <view class="register-from code">
  16. <view class="label">手机号:</view>
  17. <input class="row-input phone" type="text" v-model="registerMobile" placeholder="请输入联系人手机号" maxlength="11"/>
  18. </view>
  19. <view class="register-from btn">
  20. <button class="row-input" type="button" @click.stop="registerCheckMobile()">检测</button>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="register-main clearfix">
  25. <view class="register-row clearfix">
  26. <view class="register-txt first"><text>您还可以填写更多信息,帮机构直接注册成为会员机构。</text></view>
  27. <view class="register-txt"><text>不过这些信息需要审核。</text></view>
  28. <view class="register-bet" @tap.stop="showUpgrade()" v-if="isDownUpgrade">
  29. <text>展开信息填写<text class="iconfont icon-xiangxiajiantou"></text></text>
  30. </view>
  31. </view>
  32. <view class="register-fiexd clearfix">
  33. <view class="register-bet" @tap.stop="hideUpgrade()" v-if="isUpgrade">
  34. <text>收起<text class="iconfont icon-xiangshangjiantou"></text></text>
  35. </view>
  36. <view class="register-agree">
  37. <view class="agree-text" @tap.stop="agreeCheck()">
  38. <button class="checkbox iconfont" :class="[isCheck?'icon-gouxuan':'icon-weigouxuan']"></button>
  39. 我已阅读并同意
  40. <text @click.stop="this.$api.navigateTo('/pages/service/organagree')">《机构协议》</text>
  41. <text @click.stop="this.$api.navigateTo('/pages/service/useragree')">《用户协议》</text>及
  42. <text @click.stop="this.$api.navigateTo('/pages/service/privacyagree')">《隐私权政策》</text>
  43. </view>
  44. </view>
  45. <view class="register-row ">
  46. <view class="register-btn sub" @click.stop="registerStepsSub">{{registerBtnText}}</view>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="register-main detailed clearfix" v-show="isUpgrade">
  51. <view class="register-row clearfix">
  52. <text class="register-title">升级信息</text></text>
  53. </view>
  54. <view class="register-row clearfix">
  55. <view class="register-from">
  56. <view class="label">邮箱:</view>
  57. <input class="row-input" type="text" name="input" v-model="registerEmail" placeholder="请输入机构邮箱地址" maxlength="30"/>
  58. </view>
  59. </view>
  60. <view class="register-row clearfix">
  61. <view class="register-from">
  62. <view class="label">机构名称:</view>
  63. <input class="row-input" type="text" name="input" v-model="clubName" placeholder="请输入您的机构名称" maxlength="30"/>
  64. </view>
  65. </view>
  66. <view class="register-row clearfix">
  67. <view class="register-from">
  68. <view class="label">机构简称:</view>
  69. <input class="row-input" type="text" v-model="abbreviation" placeholder="请输入您的机构简称" maxlength="10"/>
  70. </view>
  71. </view>
  72. <view class="register-row clearfix">
  73. <view class="register-from" @click="showMulLinkageThreePicker">
  74. <view class="label">机构地址:</view>
  75. <text class="row-input" :class="addressData.address === '请选择机构所在地区' ? 'none' : ''">
  76. {{addressData.address}}
  77. </text>
  78. <text class="iconfont icon-xiayibu"></text>
  79. </view>
  80. </view>
  81. <view class="register-row text-textarea clearfix">
  82. <view class="textarea show" v-if="isShowInput">{{addressData.addressDetail ? addressData.addressDetail :'详细地址:如道路、门牌号、小区等'}}</view>
  83. <textarea v-else
  84. class="textarea"
  85. type="text"
  86. v-model="addressData.addressDetail"
  87. placeholder="详细地址:如道路、门牌号、小区等"
  88. placeholder-class="placeholder"
  89. maxlength="35"
  90. @input="onTextareaInput"
  91. :class="isShowInput ? '':''"
  92. />
  93. </view>
  94. <view class="register-row clearfix" >
  95. <view class="register-from">
  96. <view class="label">营业执照编号:</view>
  97. <input class="row-input" type="text" v-model="socialCreditCode" placeholder="请填写社会统一信用代码" maxlength="16"/>
  98. </view>
  99. </view>
  100. <view class="register-row clearfix">
  101. <view class="register-picture">
  102. <view class="label">营业执照:</view>
  103. <view class="upload-picture">
  104. <view class="upload-none" v-if="uploadBusinessImage === ''" @click="chooseBusinessImage"><text class="iconfont icon-jiahao"></text></view>
  105. <view class="upload-image" v-else>
  106. <image :src="uploadBusinessImage" mode="" @click="viewBusinessImage"></image>
  107. <view class="upload-del" @click="delBusinessImage">
  108. <text class='iconfont icon-shanchu1'></text>
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. <view class="register-picture">
  114. <view class="label">门头照:</view>
  115. <view class="upload-picture">
  116. <view class="upload-none" v-if="uploadMentuzImage === ''" @click="chooseMentuzImage"><text class="iconfont icon-jiahao"></text></view>
  117. <view class="upload-image" v-else>
  118. <image :src="uploadMentuzImage" mode="" @click="viewMentuzImage"></image>
  119. <view class="upload-del" @click="delMentuzImage">
  120. <text class='iconfont icon-shanchu1'></text>
  121. </view>
  122. </view>
  123. </view>
  124. </view>
  125. </view>
  126. <view class="register-row clearfix">
  127. <view class="register-from picker">
  128. <view class="label">机构类型:</view>
  129. <view class="row-input picker" @click="bindPickerChange">{{ organizationTypeText }}</view>
  130. <text class="iconfont icon-xiayibu"></text>
  131. </view>
  132. </view>
  133. <view class="register-row clearfix" v-if="isOrganizationType == 1" >
  134. <view class="register-from radio">
  135. <radio-group @change="radioChange">
  136. <label class="row-input" v-for="(item, index) in beautyList" :key="item.value">
  137. <radio class="row-radio" :value="item.value" :checked="index === current" color="#E15616"/>
  138. <view class="row-text">{{item.name}}</view>
  139. </label>
  140. </radio-group>
  141. </view>
  142. </view>
  143. <view class="register-row clearfix" v-show="isDepartment" >
  144. <view class="register-from">
  145. <view class="label">科室:</view>
  146. <input class="row-input keshi" type="text" v-model="department" placeholder="请填写经营的科室,至少三个,用逗号隔开" maxlength="16"/>
  147. </view>
  148. </view>
  149. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  150. <view class="register-picture zz">
  151. <view class="label zz">医疗执业许可证:</view>
  152. <view class="upload-picture">
  153. <view class="upload-none" v-if="uploadMedicalImage === ''" @click="chooseMedicalImage"><text class="iconfont icon-jiahao"></text></view>
  154. <view class="upload-image" v-else>
  155. <image :src="uploadMedicalImage" mode="" @click="viewMedicalImage"></image>
  156. <view class="upload-del" @click="delMedicalImage">
  157. <text class='iconfont icon-shanchu1'></text>
  158. </view>
  159. </view>
  160. </view>
  161. </view>
  162. </view>
  163. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  164. <view class="register-from group">
  165. <view class="label">主营内容:</view>
  166. <checkbox-group class="content-class" @change="chooseMaleLike" >
  167. <label class="item" v-for="(item, index) in mentuzCampList" :key="index" :class="{on: item.checked}">
  168. <checkbox :value="item.value"></checkbox>
  169. <text class="item-text">{{item.name}}</text>
  170. </label>
  171. </checkbox-group>
  172. </view>
  173. <view class="register-from group btn">
  174. <view class="content-class btn">
  175. <view class="item" @click="showAustomItem">
  176. <text class="item-text">其他</text>
  177. </view>
  178. </view>
  179. </view>
  180. <view class="register-from group btn" v-show="isShowAustomItem">
  181. <view class="content-class btn">
  182. <input class="row-input other" type="text" v-model="customItemValue" placeholder="请输入自定义项目" @blur="onBlurInput" maxlength="5"/>
  183. <button type="default"
  184. class="confirm-btn other"
  185. :class="[isDisabled === true ? 'disabled' : 'none']"
  186. :disabled="isDisabled"
  187. @click.stop="addCustomItem"
  188. >确认添加</button>
  189. </view>
  190. </view>
  191. </view>
  192. <view class="register-row clearfix" v-if="isOrganizationType == 2">
  193. <view class="register-from group">
  194. <view class="label">主营内容:</view>
  195. <checkbox-group class="content-class" @change="chooseMaleLikes">
  196. <label class="item" v-for="(item, index) in medicaCampList" :key="index" :class="{on: item.checked}">
  197. <checkbox :value="item.value"></checkbox>
  198. <text class="item-text">{{item.name}}</text>
  199. </label>
  200. </checkbox-group>
  201. </view>
  202. <view class="register-from group btn">
  203. <view class="content-class btn">
  204. <view class="item" @click="showAustomItem">
  205. <text class="item-text">其他</text>
  206. </view>
  207. </view>
  208. </view>
  209. <view class="register-from group btn" v-show="isShowAustomItem">
  210. <view class="content-class btn">
  211. <input class="row-input other" type="text" v-model="customItemValue" placeholder="请输入自定义项目" @blur="onBlurInput" maxlength="5"/>
  212. <button type="default"
  213. class="confirm-btn"
  214. :class="[isDisabled === true ? 'disabled' : 'none']"
  215. :disabled="isDisabled"
  216. @click.stop="addCustomItem"
  217. >确认添加</button>
  218. </view>
  219. </view>
  220. </view>
  221. <mpvue-city-picker :themeColor="themeColor"
  222. ref="mpvueCityPicker"
  223. :pickerValueDefault="cityPickerValueDefault"
  224. @onCancel="onCancel"
  225. @onConfirm="onConfirm">
  226. </mpvue-city-picker>
  227. </view>
  228. </view>
  229. </template>
  230. <script>
  231. import { mapMutations } from 'vuex';
  232. import { beautyList,mentuzCampNullList,medicaCampNullList } from '@/common/json/data.json.js' //本地数据
  233. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  234. import authorize from '@/common/config/authorize.js'
  235. import { uploadFileImage } from "@/api/utils.js"
  236. import { sellerClubRegister,sellerClubCheck} from "@/api/seller.js"
  237. var self;
  238. export default{
  239. components:{
  240. mpvueCityPicker
  241. },
  242. data() {
  243. return{
  244. nvabarData: { //顶部自定义导航
  245. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  246. showSearch: 0,
  247. title: '拉机构上线', // 导航栏 中间的标题
  248. },
  249. CustomBar:this.CustomBar,// 顶部导航栏高度
  250. userID:'',//协销ID
  251. isPreviewImage:false, //预览图片开关
  252. registerEmail:'', //注册邮箱
  253. clubName:'', //机构名称
  254. abbreviation:'', //机构简称
  255. clubContact:'', //联系人
  256. registerMobile:'', //联系人手机号
  257. socialCreditCode:'', //统一社会信用代码
  258. isAgreed:0, //是否勾选协议
  259. isDisabled:true,
  260. isShowInput:false,
  261. isUpgrade:false,
  262. isDownUpgrade:true,
  263. isCheck:false, //是否勾选协议
  264. uploadBusinessImage:'', //营业执照图片
  265. uploadMentuzImage:'', //门头照图片
  266. uploadMedicalImage:'', //资质照图片
  267. department:'', //科室
  268. isDepartment:false, //是否显示科室
  269. secondClubType:'', //机构类型二级分类
  270. mainpro:'', //主营内容
  271. isOrganizationType:0,
  272. organizationTypeText:'请选择机构类型',
  273. beautyList:beautyList,
  274. mentuzCampList:mentuzCampNullList,
  275. medicaCampList:medicaCampNullList,
  276. typtIndex:0,
  277. organizationType:3,
  278. current:0,
  279. isShowAustomItem:false, //是否显示其他添加
  280. customItemValue:'', //自定义项目
  281. addressData:{
  282. address:'请选择机构所在地区',
  283. townID:'', //区ID
  284. cityID:'', //区ID
  285. provinceID:'', //区ID
  286. addressDetail: '', //地址
  287. },
  288. registerBtnText:'确定'
  289. }
  290. },
  291. onLoad(option) {
  292. },
  293. methods:{
  294. hanldNavigateBack(){
  295. this.$util.modal('','注册尚未完成,确定放弃注册吗?','确定','取消',true,() =>{
  296. uni.navigateBack({
  297. delta: 1
  298. });
  299. })
  300. },
  301. registerCheckEmail(){
  302. if(this.registerEmail == ''){
  303. this.$util.msg('请输入邮箱地址',2000);
  304. return
  305. }
  306. if(!this.$reg.isEmail(this.registerEmail)){
  307. this.$util.msg('请输入正确的邮箱地址',2000);
  308. return
  309. }
  310. sellerClubCheck({mobileOrEmail:this.registerEmail}).then(response =>{
  311. this.$util.msg(response.data,2000);
  312. }).catch(error =>{
  313. this.$util.msg(error.msg,2000);
  314. })
  315. },
  316. registerCheckMobile(){
  317. if( this.registerMobile == ''){
  318. this.$util.msg('请输入手机号',2000);
  319. return
  320. }
  321. if(!this.$reg.isMobile(this.registerMobile)){
  322. this.$util.msg('请输入正确的手机号',2000);
  323. return
  324. }
  325. sellerClubCheck({mobileOrEmail:this.registerMobile}).then(response =>{
  326. this.$util.msg(response.data,2000);
  327. }).catch(error =>{
  328. this.$util.msg(error.msg,2000);
  329. })
  330. },
  331. registerStepsSub(){
  332. let params = {};
  333. if(this.isUpgrade){
  334. if( this.clubContact == ''){
  335. this.$util.msg('请输入联系人姓名',2000);
  336. return
  337. }
  338. if( this.registerMobile == ''){
  339. this.$util.msg('请输入联系人手机号',2000);
  340. return
  341. }
  342. if(!this.$reg.isMobile(this.registerMobile)){
  343. this.$util.msg('手机格式不正确',2000);
  344. return
  345. }
  346. if( this.registerEmail == ''){
  347. this.$util.msg('请输入邮箱地址',2000);
  348. return
  349. }
  350. if(!this.$reg.isEmail(this.registerEmail)){
  351. this.$util.msg('请输入正确的邮箱地址',2000);
  352. return
  353. }
  354. if( this.clubName == ''){
  355. this.$util.msg('请输入机构名称',2000);
  356. return
  357. }
  358. if( this.addressData.townID == ''){
  359. this.$util.msg('请选择机构地址',2000);
  360. return
  361. }
  362. if( this.addressData.addressDetail == ''){
  363. this.$util.msg('请填写机构详细地址',2000);
  364. return
  365. }
  366. if( this.socialCreditCode == ''){
  367. this.$util.msg('请填写社会统一社会信用代码',2000);
  368. return
  369. }
  370. if( this.uploadBusinessImage == ''){
  371. this.$util.msg('请上传您的营业执照',2000);
  372. return
  373. }
  374. if(this.isOrganizationType!=0){
  375. if(this.mainpro == ''){
  376. this.$util.msg('请选择住机构主营内容',2000);
  377. return
  378. }
  379. }
  380. if(this.isAgreed == 0){
  381. this.$util.msg('请勾选同意协议',2000);
  382. return
  383. }
  384. params ={
  385. email:this.registerEmail,
  386. name:this.clubName,
  387. linkMan1:this.clubContact,
  388. bindMobile:this.registerMobile,
  389. sname:this.abbreviation,
  390. provinceID:this.addressData.provinceID,
  391. cityID:this.addressData.cityID,
  392. townID:this.addressData.townID,
  393. address:this.addressData.addressDetail,
  394. socialCreditCode:this.socialCreditCode,
  395. businessLicenseImage:this.uploadBusinessImage,
  396. headpic:this.uploadMentuzImage,
  397. firstClubType:this.isOrganizationType, //机构类型分类 医美:0和生美:1
  398. secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
  399. department:this.department, //科室
  400. medicalPracticeLicenseImg:this.uploadMedicalImage,//资质图片
  401. isAgreed:this.isAgreed, //是否勾选协议
  402. mainpro:this.mainpro,
  403. userID:this.userID
  404. }
  405. }else{
  406. if( this.clubContact == ''){
  407. this.$util.msg('请输入联系人姓名',2000);
  408. return
  409. }
  410. if( this.registerMobile == ''){
  411. this.$util.msg('请输入联系人手机号',2000);
  412. return
  413. }
  414. if(!this.$reg.isMobile(this.registerMobile)){
  415. this.$util.msg('手机格式不正确',2000);
  416. return
  417. }
  418. if(this.isAgreed == 0){
  419. this.$util.msg('请勾选同意协议',2000);
  420. return
  421. }
  422. params ={
  423. linkMan1:this.clubContact,
  424. bindMobile:this.registerMobile,
  425. isAgreed:this.isAgreed, //是否勾选协议
  426. userID:this.userID
  427. }
  428. }
  429. sellerClubRegister(params).then(response =>{
  430. this.$util.msg('注册成功,已短息通知联系人',2000);
  431. setTimeout(()=>{
  432. uni.navigateBack({
  433. delta: 1
  434. });
  435. },2000)
  436. }).catch(error =>{
  437. this.$util.msg(error.msg,2000);
  438. })
  439. },
  440. showMulLinkageThreePicker() {//三级地址联动
  441. this.isShowInput = true
  442. this.$refs.mpvueCityPicker.show()
  443. },
  444. onConfirm(e) {//获取选择的地址信息
  445. console.log('地址',e);
  446. this.addressData.address = e.name;
  447. this.addressData.townID = e.townCode;
  448. this.addressData.cityID = e.cityCode;
  449. this.addressData.provinceID = e.provinceCode;
  450. },
  451. onTextareaInput(e){//地址详细信息
  452. this.addressData.addressDetail = e.detail.value;
  453. },
  454. onTextareaInputInfo(e){//公司简介
  455. this.companyPprofile = e.detail.value;
  456. },
  457. chooseBusinessImage() {//营业执照图片上传
  458. uploadFileImage().then(res =>{
  459. this.uploadBusinessImage = JSON.parse(res.data).data
  460. })
  461. },
  462. chooseMentuzImage() {//门头照图片上传
  463. uploadFileImage().then(res =>{
  464. this.uploadMentuzImage = JSON.parse(res.data).data
  465. })
  466. },
  467. chooseMedicalImage() {//资质照图片上传
  468. uploadFileImage().then(res =>{
  469. this.uploadMedicalImage = JSON.parse(res.data).data
  470. })
  471. },
  472. viewBusinessImage(e) {//预览营业执照图片
  473. this.myPreviewImageFn(this.uploadBusinessImage)
  474. },
  475. viewMentuzImage(e) {//预览门头照图片
  476. this.myPreviewImageFn(this.uploadMentuzImage)
  477. },
  478. viewMedicalImage(e) {//预览资质照图片
  479. this.myPreviewImageFn(this.uploadMedicalImage)
  480. },
  481. myPreviewImageFn(url){//预览图片公共方法
  482. this.isPreviewImage = true
  483. let mentuzArray = []
  484. mentuzArray.push(url)
  485. uni.previewImage({
  486. urls: mentuzArray,
  487. current: 0
  488. });
  489. },
  490. delBusinessImage(){//删除营业执照图片
  491. this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
  492. this.uploadBusinessImage = ''
  493. })
  494. },
  495. delMentuzImage(){//删除门头照图片
  496. this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
  497. this.uploadMentuzImage = ''
  498. })
  499. },
  500. delMedicalImage(){//删除资质图片
  501. this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
  502. this.uploadMedicalImage = ''
  503. })
  504. },
  505. bindPickerChange() {//机构类型选择
  506. let self = this
  507. uni.showActionSheet({
  508. title:'标题',
  509. itemList: ['医美', '生美'],
  510. success: (e) => {
  511. self.isOrganizationType = e.tapIndex+1
  512. switch(e.tapIndex){
  513. case 0:
  514. this.organizationTypeText = '医美'
  515. break;
  516. case 1:
  517. this.organizationTypeText = '生美'
  518. break;
  519. }
  520. }
  521. })
  522. },
  523. bindPickerChange2(e) {
  524. this.typtIndex = e.target.value
  525. this.isOrganizationType = e.target.value
  526. },
  527. radioChange(e) {
  528. this.secondClubType = e.target.value;
  529. if( this.secondClubType == '2' || this.secondClubType == '3'){
  530. this.isDepartment = true
  531. }else{
  532. this.isDepartment = false
  533. }
  534. for (let i = 0; i < this.beautyList.length; i++) {
  535. if (this.beautyList[i].value === this.secondClubType) {
  536. this.current = i;
  537. break;
  538. }
  539. }
  540. },
  541. chooseMaleLike(e){
  542. this.mainpro = this.checkLikes(e,this.mentuzCampList)
  543. },
  544. chooseMaleLikes(e){
  545. this.mainpro = this.checkLikes(e,this.medicaCampList)
  546. },
  547. checkLikes(e,list){
  548. let values = e.detail.value
  549. let arr = []
  550. list.forEach(item => {
  551. if(values.indexOf(item.value) >= 0){
  552. this.$set(item,'checked',true)
  553. arr.push(item.name)
  554. }else{
  555. this.$set(item,'checked',false)
  556. }
  557. })
  558. return arr.join('/')
  559. },
  560. agreeCheck() {
  561. this.isCheck = !this.isCheck
  562. if(this.isCheck){
  563. this.isAgreed = 1
  564. }else{
  565. this.isAgreed = 0
  566. }
  567. },
  568. onBlurInput(e){//
  569. if(e.detail.value ===''){
  570. this.isDisabled = true
  571. }else{
  572. this.isDisabled = false
  573. }
  574. },
  575. showAustomItem() {
  576. this.isShowAustomItem = !this.isShowAustomItem
  577. },
  578. addCustomItem(){
  579. if(this.isOrganizationType == 1){
  580. let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue}
  581. this.mentuzCampList.push(item)
  582. }else{
  583. let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue}
  584. this.medicaCampList.push(item)
  585. }
  586. },
  587. showUpgrade(){
  588. this.isUpgrade = true
  589. this.isDownUpgrade = false
  590. this.registerBtnText = '提交审核'
  591. },
  592. hideUpgrade(){
  593. this.$util.modal('提示','收起后,您填写的升级信息将会被清空确定收起吗?','确定','取消',true,() =>{
  594. this.isUpgrade = false
  595. this.isDownUpgrade = true
  596. this.registerBtnText = '确定'
  597. })
  598. }
  599. },
  600. onShow() {
  601. if(this.isPreviewImage){
  602. this.isPreviewImage = false
  603. return
  604. }
  605. this.$api.getStorage().then((resolve) =>{
  606. this.userID = resolve.userID
  607. })
  608. }
  609. }
  610. </script>
  611. <style lang="scss">
  612. .register{
  613. width: 100%;
  614. height: auto;
  615. padding-top: 50rpx;
  616. .model-warp.none{
  617. display: none;
  618. }
  619. .model-warp.show{
  620. display: block;
  621. }
  622. .register-tab{
  623. width: 570rpx;
  624. height: 60rpx;
  625. padding: 60rpx 90rpx;
  626. position: relative;
  627. .nav-item{
  628. width: 142rpx;
  629. background: #FFFFFF;
  630. line-height: 60rpx;
  631. border-radius: 30rpx;
  632. text-align: center;
  633. color: #999999;
  634. font-size:$font-size-26;
  635. float: left;
  636. margin-right: 72rpx;
  637. position: relative;
  638. .line{
  639. height: 3rpx;
  640. width: 50rpx;
  641. background: #999999;
  642. position: absolute;
  643. right: -58rpx;
  644. top: 32rpx;
  645. }
  646. &:last-child{
  647. margin-right: 0;
  648. }
  649. &.current{
  650. color:#FFFFFF;
  651. background: $btn-confirm;
  652. }
  653. }
  654. }
  655. .register-main{
  656. width: 100%;
  657. height: auto;
  658. &.detailed{
  659. padding-bottom: 330rpx;
  660. }
  661. &.first{
  662. padding-top: 40rpx;
  663. }
  664. .register-tips{
  665. display: flex;
  666. flex-direction: column;
  667. align-items: center;
  668. line-height: 44rpx;
  669. font-size: $font-size-24;
  670. color: #FF0000;
  671. margin-bottom: 40rpx;
  672. .iconfont{
  673. font-size: $font-size-24;
  674. }
  675. }
  676. .register-row{
  677. width: 702rpx;
  678. height: auto;
  679. padding: 0 24rpx;
  680. margin-bottom: 20rpx;
  681. .register-title{
  682. font-size: $font-size-32;
  683. color: $text-color;
  684. text{
  685. font-size: $font-size-24;
  686. }
  687. }
  688. .register-txt{
  689. line-height: 44rpx;
  690. font-size: $font-size-26;
  691. color: $text-color;
  692. text-align: left;
  693. &.first{
  694. margin-top: 20rpx;
  695. }
  696. }
  697. .register-bet{
  698. width: 100%;
  699. display: flex;
  700. line-height: 60rpx;
  701. height: 60rpx;
  702. align-items: center;
  703. flex-direction: column;
  704. font-size: $font-size-28;
  705. color: $color-system;
  706. margin-top: 40rpx;
  707. text{
  708. margin: 0 5rpx;
  709. }
  710. }
  711. .register-text{
  712. line-height: 44rpx;
  713. margin-top: 100rpx;
  714. font-size: $font-size-24;
  715. color: #999999;
  716. text-align: justify;
  717. .txt{
  718. margin-right: 15rpx;
  719. }
  720. }
  721. .register-from{
  722. width: 654rpx;
  723. height: 40rpx;
  724. padding: 24rpx;
  725. background: $sub-bg-color;
  726. border-radius: 14rpx;
  727. position: relative;
  728. .label{
  729. text-align: left;
  730. font-size: $font-size-28;
  731. color: $text-color;
  732. line-height: 40rpx;
  733. float: left;
  734. }
  735. .row-input{
  736. width: 440rpx;
  737. padding-left:10rpx;
  738. font-size: $font-size-28;
  739. color: $text-color;
  740. line-height: 40rpx;
  741. float: left;
  742. height: 40rpx;
  743. &.none{
  744. color: #999999;
  745. }
  746. &.picker{
  747. text-align: left;
  748. color: #999999;
  749. }
  750. &.keshi{
  751. width: 550rpx;
  752. }
  753. }
  754. &.code{
  755. width: 454rpx;
  756. float: left;
  757. margin-right: 20rpx;
  758. .row-input{
  759. width: 380rpx;
  760. &.phone{
  761. width: 340rpx;
  762. }
  763. }
  764. }
  765. &.btn{
  766. width: 180rpx;
  767. height: 88rpx;
  768. float: left;
  769. background: $btn-confirm;
  770. padding: 0;
  771. .row-input{
  772. width: 180rpx;
  773. height: 88rpx;
  774. line-height: 88rpx;
  775. padding: 0;
  776. color: #FFFFFF;
  777. background: $btn-confirm;
  778. text-align: center;
  779. border-radius: 14rpx;
  780. &.other{
  781. width: 180rpx;
  782. background: #F7F7F7;
  783. margin-right: 20rpx;
  784. }
  785. &.none{
  786. background: #F7F7F7;
  787. }
  788. }
  789. &.disabled{
  790. background: #F7F7F7;
  791. .row-input{
  792. background: #F7F7F7;
  793. color: #999999;
  794. }
  795. }
  796. }
  797. &.picker{
  798. padding: 0 24rpx;
  799. width: 654rpx;
  800. height: 88rpx;
  801. line-height: 88rpx;
  802. .label{
  803. line-height: 88rpx;
  804. }
  805. .row-input{
  806. width: 470rpx;
  807. height: 88rpx;
  808. line-height: 88rpx;
  809. padding-left: 30rpx;
  810. }
  811. }
  812. &.radio{
  813. padding: 0 24rpx;
  814. width: 654rpx;
  815. height: 288rpx;
  816. .row-input{
  817. width: 100%;
  818. height: 88rpx;
  819. line-height: 88rpx;
  820. padding-left: 0;
  821. }
  822. .row-radio{
  823. float: left;
  824. transform: scale(0.8);
  825. }
  826. .row-text{
  827. width: 100rpx;
  828. text-align: center;
  829. float: left;
  830. }
  831. }
  832. &.group{
  833. padding: 0 24rpx;
  834. width: 654rpx;
  835. height: auto;
  836. background: #FFFFFF;
  837. margin-top: 30rpx;
  838. .label{
  839. line-height: 76rpx;
  840. }
  841. .row-input{
  842. width: 100%;
  843. height: 88rpx;
  844. line-height: 88rpx;
  845. padding-left: 0;
  846. }
  847. .row-radio{
  848. float: left;
  849. }
  850. .row-text{
  851. width: 100rpx;
  852. text-align: center;
  853. float: left;
  854. }
  855. }
  856. &.btn{
  857. margin-top: 0;
  858. }
  859. .content-class {
  860. margin: 20rpx auto;
  861. display: flex;
  862. flex-flow: row wrap;
  863. justify-content: space-between;
  864. align-items: center;
  865. &.btn{
  866. margin: 0 auto;
  867. margin-left: 116rpx;
  868. }
  869. .row-input{
  870. display: flex;
  871. width: 220rpx;
  872. height: 40rpx;
  873. padding: 24rpx;
  874. text-align: left;
  875. border-radius: 10rpx;
  876. font-size: $font-size-28;
  877. color: $text-color;
  878. }
  879. .confirm-btn{
  880. width: 200rpx;
  881. height: 88rpx;
  882. border-radius: 10rpx;
  883. line-height: 88rpx;
  884. text-align: center;
  885. &.other{
  886. width: 213rpx;
  887. }
  888. &.none{
  889. color: #FFFFFF;
  890. background: $btn-confirm;
  891. }
  892. &.disabled{
  893. color: #999999;
  894. }
  895. }
  896. .item {
  897. width: 155rpx;
  898. height: 60rpx;
  899. font-size:$font-size-28;
  900. line-height: 60rpx;
  901. border-radius:10rpx;
  902. margin: 10rpx;
  903. text-align: center;
  904. box-sizing: border-box;
  905. border: 1rpx solid #EFEFEF;
  906. checkbox {
  907. display: none;
  908. }
  909. }
  910. .on {
  911. border-color: $color-system;
  912. color:$color-system;
  913. }
  914. }
  915. }
  916. .icon-xiayibu{
  917. width: 88rpx;
  918. height: 88rpx;
  919. position: absolute;
  920. right: 0;
  921. top: 0;
  922. line-height: 88rpx;
  923. text-align: center;
  924. }
  925. &.text-textarea{
  926. background: #FFFFFF;
  927. .textarea{
  928. width: 654rpx;
  929. height: 180rpx;
  930. background: #F7F7F7;
  931. padding: 24rpx;
  932. font-size: $font-size-28;
  933. color: $text-color;
  934. z-index: 1;
  935. border-radius: 14rpx;
  936. }
  937. .textarea.hide{
  938. opacity: 0;
  939. }
  940. .textarea.show{
  941. color: #999999;
  942. }
  943. }
  944. }
  945. .register-picture{
  946. height: 102rpx;
  947. margin: 30rpx 0;
  948. width: 42%;
  949. float: left;
  950. &.zz{
  951. width: 100%;
  952. }
  953. .label{
  954. float: left;
  955. font-size: $font-size-28;
  956. color: $text-color;
  957. line-height: 102rpx;
  958. width: 150rpx;
  959. text-align: right;
  960. &.zz{
  961. width: 230rpx;
  962. }
  963. }
  964. .upload-picture{
  965. float: left;
  966. height: 100rpx;
  967. .upload-none{
  968. width: 100rpx;
  969. height: 100rpx;
  970. text-align: center;
  971. line-height: 100rpx;
  972. color: #999999;
  973. border: 1px solid #999999;
  974. border-radius: 10rpx;
  975. margin: 0 20rpx;
  976. .iconfont{
  977. font-size: $font-size-28;
  978. }
  979. }
  980. .upload-image{
  981. width: 100rpx;
  982. height: 100rpx;
  983. border-radius: 10rpx;
  984. margin: 0 20rpx;
  985. position: relative;
  986. image{
  987. width: 100rpx;
  988. height: 100rpx;
  989. border-radius: 10rpx;
  990. }
  991. .upload-del{
  992. width: 40rpx;
  993. height: 40rpx;
  994. position: absolute;
  995. top: -20rpx;
  996. right: -20rpx;
  997. line-height: 40rpx;
  998. text-align: center;
  999. .iconfont{
  1000. font-size: $font-size-32;
  1001. color: #999999;
  1002. }
  1003. }
  1004. }
  1005. }
  1006. }
  1007. .register-input{
  1008. width: 654rpx;
  1009. height: 40rpx;
  1010. padding: 24rpx;
  1011. margin: 0 auto;
  1012. margin-bottom: 60rpx;
  1013. background: #F7F7F7;
  1014. border-radius: 14rpx;
  1015. .input{
  1016. width: 100%;
  1017. height: 100%;
  1018. background: #F7F7F7;
  1019. font-size: $font-size-28;
  1020. line-height: 40rpx;
  1021. color: #333333;
  1022. border-radius: 14rpx;
  1023. }
  1024. }
  1025. .register-fiexd{
  1026. width: 100%;
  1027. height: auto;
  1028. position: fixed;
  1029. bottom: 0;
  1030. left: 0;
  1031. z-index: 999;
  1032. background: #FFFFFF;
  1033. .register-bet{
  1034. width: 100%;
  1035. display: flex;
  1036. line-height: 60rpx;
  1037. height: 60rpx;
  1038. align-items: center;
  1039. flex-direction: column;
  1040. font-size: $font-size-28;
  1041. color: $color-system;
  1042. margin-top: 20rpx;
  1043. .icon-xiangxiajiantou{
  1044. transform:rotate(180deg);
  1045. }
  1046. text{
  1047. margin: 0 5rpx;
  1048. }
  1049. }
  1050. .register-agree{
  1051. display: flex;
  1052. flex-direction: column;
  1053. align-items: center;
  1054. margin: 32rpx 0;
  1055. .agree-text{
  1056. .checkbox{
  1057. float: left;
  1058. margin: 4rpx 6rpx 0 0;
  1059. color: #999999;
  1060. font-size: $font-size-32;
  1061. &.icon-gouxuan{
  1062. color: $color-system;
  1063. }
  1064. }
  1065. font-size: 20rpx;
  1066. line-height: 44rpx;
  1067. color: #999999;
  1068. text{
  1069. color:#0091FF;
  1070. }
  1071. }
  1072. }
  1073. }
  1074. .register-btn{
  1075. width: 702rpx;
  1076. height: 88rpx;
  1077. border-radius: 14rpx;
  1078. font-size: $font-size-28;
  1079. line-height: 88rpx;
  1080. color: #FFFFFF;
  1081. margin: 0 auto;
  1082. text-align: center;
  1083. background: $btn-confirm;
  1084. margin-top: 96rpx;
  1085. &.none{
  1086. background: #FFFFFF;
  1087. color: $text-color;
  1088. margin-top: 0;
  1089. }
  1090. &.sub{
  1091. margin-top: 0;
  1092. }
  1093. }
  1094. }
  1095. }
  1096. </style>