apply.vue 31 KB

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