register.vue 30 KB

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