apply.vue 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186
  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>
  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="number" v-model="mobileCode" placeholder="请输入上述手机号的验证码" maxlength="6"/>
  44. </view>
  45. <view class="register-from btn" :class="[isMobileDisabled ? 'disabled' : '']">
  46. <button class="row-input" type="button" @click.stop="getMobileCodeFn" :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="number" v-model="newMobileCode" placeholder="请输入新手机号的验证码" maxlength="6"/>
  57. </view>
  58. <view class="register-from btn" :class="[isNewMobileDisabled ? 'disabled' : '']" >
  59. <button class="row-input" type="button" @click.stop="getNewMobileCodeFn" :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 == 1">
  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 == 1">
  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 == 1">
  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 == 2">
  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" @click.stop="organizationUpdateInfo">提交审核</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 { organizationUpdateModifyInfo , organizationModifyUpdate } from "@/api/use.js"
  257. import { getClubMobileCode,getClubNewMobileCode,uploadFileImage } from "@/api/utils.js"
  258. var self;
  259. export default{
  260. components:{
  261. mpvueCityPicker
  262. },
  263. data() {
  264. return{
  265. isOpenError:false,
  266. errorList:[],
  267. isShowCheckPhone:false, //是否显示修改手机
  268. tabCurrentIndex:3,
  269. isPreviewImage:false, //预览图片开关
  270. isMobileDisabled: false, //手机验证码按钮控制
  271. isNewMobileDisabled: false, //手机验证码按钮控制
  272. userID:'', //用户ID
  273. clubID:'', //会所ID
  274. count: '', //倒计时
  275. newCount: '', //倒计时
  276. codeTime: null,
  277. codeTimeNew: 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. clubTelePhone:'', //固定电话
  300. clubFax:'', //传真
  301. companyPprofile:'', //公司简介
  302. firstClubType:'', //机构类型
  303. isOrganizationType:0,
  304. organizationTypeText:'请选择机构类型',
  305. beautyList:[{value:'1',name:'诊所'},{value:'2',name:'门诊'},{value:'3',name:'医院'}],
  306. mentuzCampList:[],
  307. medicaCampList:[],
  308. typtIndex:0,
  309. organizationType:0,
  310. current:0,
  311. isShowAustomItem:false, //是否显示其他添加
  312. customItemValue:'', //自定义项目
  313. isMainproCheck:false,
  314. addressData:{
  315. address:'请选择机构所在地区',
  316. townID:'', //区ID
  317. cityID:'', //市ID
  318. provinceID:'', //省ID
  319. addressDetail: '', //地址详情
  320. },
  321. }
  322. },
  323. onLoad(option) {
  324. console.log(option)
  325. this.organizationInfo()
  326. },
  327. methods:{
  328. organizationInfo(){
  329. this.$api.getStorage().then((resolve) =>{
  330. this.userID = resolve.userID
  331. organizationUpdateModifyInfo({userID:10283}).then(response =>{
  332. let organizationClub = response.data.club
  333. let organizationUser = response.data.user
  334. this.errorList =organizationUser.auditNoteList
  335. this.email = organizationUser.email
  336. this.clubID = organizationUser.clubID
  337. this.clubName = organizationClub.name
  338. this.clubContact = organizationClub.linkMan
  339. this.mobile = organizationUser.bindMobile
  340. this.abbreviation = organizationClub.sname
  341. if( organizationClub.provinceID == null ){
  342. this.addressData.provinceID = ''
  343. }else{
  344. this.addressData.provinceID = organizationClub.provinceID
  345. }
  346. if( organizationClub.cityID == null ){
  347. this.addressData.cityID = ''
  348. }else{
  349. this.addressData.cityID = organizationClub.cityID
  350. }
  351. if( organizationClub.townID == null ){
  352. this.addressData.townID = ''
  353. }else{
  354. this.addressData.townID = organizationClub.townID
  355. }
  356. this.addressData.address = organizationClub.provincialAddress
  357. this.addressData.addressDetail = organizationClub.address
  358. this.socialCreditCode = organizationClub.socialCreditCode
  359. this.firstClubType = organizationClub.firstClubType
  360. this.secondClubType = organizationClub.secondClubType
  361. this.uploadBusinessImage = organizationClub.businessLicenseImage
  362. this.uploadMentuzImage = organizationClub.headpic
  363. this.uploadMedicalImage = organizationClub.medicalPracticeLicenseImg
  364. this.department = organizationClub.department
  365. this.clubTelePhone = organizationClub. contractPhone
  366. this.clubFax = organizationClub.fax
  367. this.companyPprofile = organizationClub.info
  368. //机构类型&&主营项目
  369. switch(this.firstClubType){
  370. case '1':
  371. this.organizationTypeText = '医美'
  372. this.isOrganizationType = 1
  373. break;
  374. case '2':
  375. this.organizationTypeText = '生美'
  376. this.isOrganizationType = 2
  377. break;
  378. case null:
  379. this.organizationTypeText = '请选择机构类型'
  380. this.isOrganizationType = 0
  381. break;
  382. }
  383. if(organizationClub.mainpro!=null){
  384. if(this.firstClubType == '1'){
  385. this.mentuzCampList = this.setNewMainpro(organizationClub.mainpro)
  386. }else{
  387. this.medicaCampList = this.setNewMainpro(organizationClub.mainpro)
  388. }
  389. }
  390. //机构类型
  391. switch(this.secondClubType){
  392. case '1':this.current = 0;break;
  393. case '2':this.current = 1;this.isDepartment=true;break;
  394. case '3':this.current = 2;this.isDepartment=true;break;
  395. }
  396. })
  397. }).catch(response =>{
  398. this.$util.msg(response.msg,2000)
  399. })
  400. },
  401. organizationUpdateInfo(){//提交审核
  402. if(!this.isMainproCheck){
  403. let mainproList = []
  404. if(this.firstClubType == '1'){
  405. this.mentuzCampList.forEach(item =>{
  406. mainproList.push(item.name)
  407. })
  408. }else{
  409. this.medicaCampList.forEach(item =>{
  410. mainproList.push(item.name)
  411. })
  412. }
  413. this.mainpro = mainproList.join('/')
  414. }
  415. let params ={
  416. userID:this.userID,
  417. clubID:this.clubID, //会所ID
  418. name:this.clubName,
  419. linkMan:this.clubContact,
  420. contractMobile2:this.mobile,
  421. contractMobile:this.newMobile,
  422. mobileCode:this.mobileCode,
  423. newMobileCode:this.newMobileCode,
  424. sname:this.abbreviation,
  425. provinceID:this.addressData.provinceID,
  426. cityID:this.addressData.cityID,
  427. townID:this.addressData.townID,
  428. address:this.addressData.addressDetail,
  429. socialCreditCode:this.socialCreditCode,
  430. businessLicenseImage:this.uploadBusinessImage,
  431. headpic:this.uploadMentuzImage,
  432. firstClubType:this.isOrganizationType, //机构类型分类 医美:0和生美:1
  433. secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
  434. department:this.department, //科室
  435. medicalPracticeLicenseImg:this.uploadMedicalImage,//资质图片
  436. isAgreed:this.isAgreed, //是否勾选协议
  437. mainpro:this.mainpro,
  438. fax:this.clubFax,
  439. contractPhone:this.clubTelePhone,
  440. info : this.companyPprofile
  441. }
  442. console.log(params)
  443. organizationModifyUpdate(params).then(response =>{
  444. this.$util.msg(response.msg,2000);
  445. setTimeout(()=>{
  446. this.$api.switchTabTo('/pages/tabBar/home/home')
  447. },2000)
  448. }).catch(response =>{
  449. this.$util.msg(response.msg,2000);
  450. })
  451. },
  452. getMobileCodeFn(){
  453. if( this.mobile == ''){
  454. this.$util.msg('请输入手机号',2000);
  455. return
  456. }
  457. if(!this.$reg.isMobile(this.mobile)){
  458. this.$util.msg('请输入正确的手机号',2000);
  459. return
  460. }
  461. let params = { mobile : this.mobile }
  462. this.isMobileDisabled = true;
  463. getClubMobileCode(params).then(response =>{
  464. this.$util.msg('验证短信已发送',2000);
  465. const TIME_COUNT = 60;
  466.       if (!this.codeTime) {
  467.         this.count = TIME_COUNT;
  468.         this.isMobileDisabled = true;
  469.         this.codeTime = setInterval(() => {
  470.         if (this.count > 1 && this.count <= TIME_COUNT) {
  471.           this.count--
  472.           this.mobileCodeText = this.count +'s重新发送'
  473.          } else {
  474.           this.isMobileDisabled = false;
  475.           clearInterval(this.codeTime)
  476.           this.codeTime = null
  477. this.mobileCodeText = '获取验证码'
  478.          }
  479.         },1000)
  480.        }
  481. }).catch( response =>{
  482. this.$util.msg(response.msg,2000);
  483. this.isMobileDisabled = false;
  484. })
  485. },
  486. getNewMobileCodeFn(){
  487. if( this.newMobile == ''){
  488. this.$util.msg('请输入手机号',2000);
  489. return
  490. }
  491. if(!this.$reg.isMobile(this.newMobile)){
  492. this.$util.msg('请输入正确的手机号',2000);
  493. return
  494. }
  495. let params = { newMobile : this.newMobile }
  496. this.isNewMobileDisabled = true;
  497. getClubNewMobileCode(params).then(response =>{
  498. this.$util.msg('验证短信已发送',2000);
  499. const TIME_COUNT = 60;
  500.       if (!this.codeTimeNew) {
  501.         this.newCount = TIME_COUNT;
  502.         this.isNewMobileDisabled = true;
  503.         this.codeTimeNew = setInterval(() => {
  504.         if (this.newCount > 1 && this.newCount <= TIME_COUNT) {
  505.           this.newCount
  506.           this.newMobileCodeText = this.newCount +'s重新发送'
  507.          } else {
  508.           this.isNewMobileDisabled = false;
  509.           clearInterval(this.codeTimeNew)
  510.           this.codeTimeNew = null
  511. this.newMobileCodeText = '获取验证码'
  512.          }
  513.         },1000)
  514.        }
  515. }).catch( res =>{
  516. this.$util.msg(response.msg,2000);
  517. this.isNewMobileDisabled = false;
  518. })
  519. },
  520. // 三级联动选择
  521. showMulLinkageThreePicker() {
  522. this.isShowInput = true
  523. this.$refs.mpvueCityPicker.show()
  524. },
  525. onConfirm(e) {
  526. console.log('地址',e);
  527. this.addressData.address = e.name;
  528. this.addressData.townID = e.townCode;
  529. this.addressData.cityID = e.cityCode;
  530. this.addressData.provinceID = e.provinceCode;
  531. },
  532. onTextareaInput(e){
  533. this.addressData.addressDetail = e.detail.value;
  534. },
  535. chooseBusinessImage() {//营业执照图片上传
  536. uploadFileImage().then(res =>{
  537. this.uploadBusinessImage = JSON.parse(res.data).data
  538. })
  539. },
  540. chooseMentuzImage() {//门头照图片上传
  541. uploadFileImage().then(res =>{
  542. this.uploadMentuzImage = JSON.parse(res.data).data
  543. })
  544. },
  545. chooseMedicalImage() {//资质照图片上传
  546. uploadFileImage().then(res =>{
  547. this.uploadMedicalImage = JSON.parse(res.data).data
  548. })
  549. },
  550. viewBusinessImage(e) {
  551. this.myPreviewImageFn(this.uploadBusinessImage)
  552. },
  553. viewMentuzImage(e) {
  554. this.myPreviewImageFn(this.uploadMentuzImage)
  555. },
  556. viewMedicalImage(e) {
  557. this.myPreviewImageFn(this.uploadMedicalImage)
  558. },
  559. myPreviewImageFn(url){
  560. this.isPreviewImage = true
  561. let mentuzArray = []
  562. mentuzArray.push(url)
  563. uni.previewImage({
  564. urls: mentuzArray,
  565. current: 0
  566. });
  567. },
  568. delBusinessImage(){
  569. this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
  570. this.uploadBusinessImage = ''
  571. })
  572. },
  573. delMentuzImage(){
  574. this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
  575. this.uploadMentuzImage = ''
  576. })
  577. },
  578. delMedicalImage(){
  579. this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
  580. this.uploadMedicalImage = ''
  581. })
  582. },
  583. bindPickerChange() {
  584. let self = this
  585. uni.showActionSheet({
  586. title:'标题',
  587. itemList: ['医美', '生美'],
  588. success: (e) => {
  589. self.isOrganizationType = e.tapIndex+1
  590. switch(e.tapIndex){
  591. case 0:
  592. this.organizationTypeText = '医美'
  593. break;
  594. case 1:
  595. this.organizationTypeText = '生美'
  596. break;
  597. }
  598. }
  599. })
  600. },
  601. bindPickerChange2(e) {
  602. console.log('picker携带值为:' + e.target.value)
  603. this.typtIndex = e.target.value
  604. this.isOrganizationType = e.target.value
  605. },
  606. radioChange(e) {
  607. this.secondClubType = e.target.value;
  608. if( this.secondClubType == '2' || this.secondClubType == '3'){
  609. this.isDepartment = true
  610. }else{
  611. this.isDepartment = false
  612. }
  613. for (let i = 0; i < this.beautyList.length; i++) {
  614. if (this.beautyList[i].value === this.secondClubType) {
  615. this.current = i;
  616. break;
  617. }
  618. }
  619. },
  620. chooseMaleLike(e){
  621. this.isMainproCheck = true
  622. this.mainpro = this.checkLikes(e,this.mentuzCampList)
  623. console.log(this.mainpro)
  624. },
  625. chooseMaleLikes(e){
  626. this.isMainproCheck = true
  627. this.mainpro = this.checkLikes(e,this.medicaCampList)
  628. console.log(this.mainpro)
  629. },
  630. checkLikes(e,list){
  631. let items = list
  632. let values = e.detail.value
  633. let arr = []
  634. for (let i = 0, lenI = items.length; i < lenI; ++i) {
  635. const item = items[i]
  636. if(values.indexOf(item.value) >= 0){
  637. this.$set(item,'checked',true)
  638. arr.push(item.name)
  639. }else{
  640. this.$set(item,'checked',false)
  641. }
  642. }
  643. return arr.join('/')
  644. },
  645. agreeCheck() {
  646. this.isCheck = !this.isCheck
  647. if(this.isCheck){
  648. this.isAgreed = 1
  649. }
  650. },
  651. onBlurInput(e){//
  652. if(e.detail.value ===''){
  653. this.isDisabled = true
  654. }else{
  655. this.isDisabled = false
  656. }
  657. },
  658. showAustomItem() {
  659. this.isShowAustomItem = !this.isShowAustomItem
  660. },
  661. setNewMainpro(arr){//回显处理主营内容
  662. let _ARRAY = []
  663. arr.split('/').forEach((item,index) =>{
  664. let _OBJ = {value:index,name:item,checked:true}
  665. _ARRAY.push(_OBJ)
  666. })
  667. return _ARRAY
  668. },
  669. addCustomItem(){
  670. if(this.isOrganizationType == 0){
  671. let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue,checked:true}
  672. this.mentuzCampList.push(item)
  673. }else{
  674. let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue,checked:true}
  675. this.medicaCampList.push(item)
  676. }
  677. },
  678. showOpenError(){//顶部审核信息详情
  679. this.isOpenError = !this.isOpenError
  680. },
  681. showCheckPhone(){//控制修改手机显隐
  682. this.isShowCheckPhone = !this.isShowCheckPhone
  683. },
  684. steps(index) {//$attrstab切换
  685. console.log(index)
  686. this.tabCurrentIndex = index;
  687. }
  688. },
  689. onShow() {
  690. if(this.isPreviewImage){
  691. this.isPreviewImage = false
  692. return
  693. }
  694. }
  695. }
  696. </script>
  697. <style lang="scss">
  698. .register{
  699. width: 100%;
  700. height: auto;
  701. border-top: 1px solid #F7F7F7;
  702. .model-warp.none{
  703. display: none;
  704. }
  705. .model-warp.show{
  706. display: block;
  707. }
  708. .register-error{
  709. width: 100%;
  710. height: auto;
  711. position: fixed;
  712. top: 0;
  713. left: 0;
  714. z-index: 999;
  715. .error-top{
  716. width: 702rpx;
  717. padding: 0 24rpx;
  718. height: 90rpx;
  719. line-height: 90rpx;
  720. background: #FF0000;
  721. border-bottom: 1px solid #F7F7F7;
  722. &.error-top--none{
  723. background:#FFFFFF;
  724. .name{
  725. color: #333333;
  726. }
  727. .icon{
  728. color: #333333;
  729. }
  730. }
  731. .name{
  732. font-size: $font-size-32;
  733. color: #FFFFFF;
  734. float: left;
  735. }
  736. .icon{
  737. float: right;
  738. font-size: $font-size-32;
  739. color: #FFFFFF;
  740. }
  741. .icon-xiangxiajiantou{
  742. transform: rotate(0deg);
  743. transform-origin: center center;
  744. float: right;
  745. font-size: $font-size-32;
  746. color: #FFFFFF;
  747. /* transition: transform 0.3s ease;*/
  748. transition-property: transform;
  749. transition-duration: 0.3s;
  750. transition-timing-function: ease;
  751. margin-left: 10rpx;
  752. }
  753. .icon-xiangxiajiantou-active{
  754. transform: rotate(180deg);
  755. color: #333333;
  756. }
  757. }
  758. .animation{
  759. /* transition: transform 0.3s ease;*/
  760. transition-property: transform;
  761. transition-duration: 0.2s;
  762. transition-timing-function: ease;
  763. }
  764. .error-main{
  765. width: 702rpx;
  766. height: auto;
  767. padding: 24rpx;
  768. overflow: hidden;
  769. background: #FFFFFF;
  770. .error-main-list{
  771. width:100% ;
  772. height: auto;
  773. background: #FFFFFF;
  774. .item{
  775. height: auto;
  776. line-height: 60rpx;
  777. font-size: $font-size-28;
  778. color: #FF0000;
  779. .num{
  780. margin-right: 10rpx;
  781. }
  782. }
  783. }
  784. }
  785. .error-main--hide {
  786. padding: 0 24rpx;
  787. height: 0px;
  788. line-height: 0px;
  789. }
  790. }
  791. .register-main{
  792. width: 100%;
  793. height: auto;
  794. &.detailed{
  795. padding-bottom: 300rpx;
  796. }
  797. &.first{
  798. padding-top: 110rpx;
  799. }
  800. .register-tips{
  801. display: flex;
  802. flex-direction: column;
  803. align-items: center;
  804. line-height: 44rpx;
  805. font-size: $font-size-24;
  806. color: #FF0000;
  807. margin-bottom: 40rpx;
  808. .iconfont{
  809. font-size: $font-size-24;
  810. }
  811. }
  812. .register-row{
  813. width: 702rpx;
  814. height: auto;
  815. padding: 0 24rpx;
  816. margin-bottom: 20rpx;
  817. .register-title{
  818. line-height: 60rpx;
  819. font-size: $font-size-32;
  820. color: $text-color;
  821. text-align: left;
  822. padding-left: 20rpx;
  823. .txt{
  824. font-size: $font-size-26;
  825. }
  826. }
  827. .row-btn{
  828. position: absolute;
  829. right: 24rpx;
  830. top: 0;
  831. line-height: 88rpx;
  832. text-align: center;
  833. font-size: $font-size-28;
  834. color: $color-system;
  835. }
  836. .register-from{
  837. width: 654rpx;
  838. height: 40rpx;
  839. padding: 24rpx;
  840. background: $sub-bg-color;
  841. border-radius: 14rpx;
  842. position: relative;
  843. .label{
  844. text-align: left;
  845. font-size: $font-size-28;
  846. color: #666666;
  847. line-height: 40rpx;
  848. float: left;
  849. }
  850. .row-input{
  851. width: 440rpx;
  852. padding-left:10rpx;
  853. font-size: $font-size-28;
  854. color: $text-color;
  855. line-height: 40rpx;
  856. float: left;
  857. height: 40rpx;
  858. &.none{
  859. color: #999999;
  860. }
  861. &.picker{
  862. text-align: left;
  863. color: #999999;
  864. }
  865. &.keshi{
  866. width: 550rpx;
  867. }
  868. }
  869. &.code{
  870. width: 410rpx;
  871. float: left;
  872. margin-right: 20rpx;
  873. .row-input{
  874. width: 390rpx;
  875. }
  876. }
  877. &.btn{
  878. width: 224rpx;
  879. height: 88rpx;
  880. float: left;
  881. background: $btn-confirm;
  882. padding: 0;
  883. .row-input{
  884. width: 224rpx;
  885. height: 88rpx;
  886. line-height: 88rpx;
  887. padding: 0;
  888. color: #FFFFFF;
  889. background: $btn-confirm;
  890. text-align: center;
  891. border-radius: 14rpx;
  892. &.other{
  893. width: 224rpx;
  894. background: #F7F7F7;
  895. margin-right: 20rpx;
  896. }
  897. &.none{
  898. background: #F7F7F7;
  899. }
  900. }
  901. &.disabled{
  902. background: #F7F7F7;
  903. .row-input{
  904. background: #F7F7F7;
  905. color: #999999;
  906. }
  907. }
  908. }
  909. &.picker{
  910. padding: 0 24rpx;
  911. width: 654rpx;
  912. height: 88rpx;
  913. line-height: 88rpx;
  914. .label{
  915. line-height: 88rpx;
  916. }
  917. .row-input{
  918. width: 470rpx;
  919. height: 88rpx;
  920. line-height: 88rpx;
  921. padding-left: 30rpx;
  922. }
  923. }
  924. &.radio{
  925. padding: 0 24rpx;
  926. width: 654rpx;
  927. height: 288rpx;
  928. .row-input{
  929. width: 100%;
  930. height: 88rpx;
  931. line-height: 88rpx;
  932. padding-left: 0;
  933. }
  934. .row-radio{
  935. float: left;
  936. transform: scale(0.8);
  937. }
  938. .row-text{
  939. width: 100rpx;
  940. text-align: center;
  941. float: left;
  942. }
  943. }
  944. &.group{
  945. padding: 0 24rpx;
  946. width: 654rpx;
  947. height: auto;
  948. background: #FFFFFF;
  949. margin-top: 30rpx;
  950. .row-input{
  951. width: 100%;
  952. height: 88rpx;
  953. line-height: 88rpx;
  954. padding-left: 0;
  955. }
  956. .row-radio{
  957. float: left;
  958. }
  959. .row-text{
  960. width: 100rpx;
  961. text-align: center;
  962. float: left;
  963. }
  964. }
  965. &.btn{
  966. margin-top: 0;
  967. }
  968. .content-class {
  969. width: 520rpx;
  970. margin: 20rpx auto;
  971. display: flex;
  972. flex-flow: row wrap;
  973. justify-content: space-between;
  974. align-items: center;
  975. &.btn{
  976. margin: 0 auto;
  977. margin-left: 126rpx;
  978. }
  979. .row-input{
  980. display: flex;
  981. width: 220rpx;
  982. height: 40rpx;
  983. padding: 24rpx;
  984. text-align: left;
  985. border-radius: 10rpx;
  986. font-size: $font-size-28;
  987. color: $text-color;
  988. }
  989. .confirm-btn{
  990. width: 200rpx;
  991. height: 88rpx;
  992. border-radius: 10rpx;
  993. line-height: 88rpx;
  994. text-align: center;
  995. &.none{
  996. color: #FFFFFF;
  997. background: $btn-confirm;
  998. }
  999. &.disabled{
  1000. color: #999999;
  1001. }
  1002. }
  1003. .item {
  1004. width: 155rpx;
  1005. height: 60rpx;
  1006. font-size:$font-size-28;
  1007. line-height: 60rpx;
  1008. border-radius:10rpx;
  1009. margin: 10rpx;
  1010. text-align: center;
  1011. box-sizing: border-box;
  1012. border: 1rpx solid #EFEFEF;
  1013. checkbox {
  1014. display: none;
  1015. }
  1016. }
  1017. .on {
  1018. border-color: $color-system;
  1019. color:$color-system;
  1020. }
  1021. }
  1022. }
  1023. .icon-xiayibu{
  1024. width: 88rpx;
  1025. height: 88rpx;
  1026. position: absolute;
  1027. right: 0;
  1028. top: 0;
  1029. line-height: 88rpx;
  1030. text-align: center;
  1031. }
  1032. &.text-textarea{
  1033. background: #FFFFFF;
  1034. .textarea{
  1035. width: 654rpx;
  1036. height: 180rpx;
  1037. background: #F7F7F7;
  1038. padding: 24rpx;
  1039. font-size: $font-size-28;
  1040. color: $text-color;
  1041. z-index: 1;
  1042. border-radius: 14rpx;
  1043. }
  1044. .textarea.hide{
  1045. opacity: 0;
  1046. }
  1047. .textarea.show{
  1048. color: #999999;
  1049. }
  1050. }
  1051. }
  1052. .register-picture{
  1053. height: 102rpx;
  1054. margin: 40rpx 0 0 0;
  1055. .label{
  1056. float: left;
  1057. font-size: $font-size-28;
  1058. color: $text-color;
  1059. line-height: 102rpx;
  1060. width: 150rpx;
  1061. text-align: right;
  1062. &.zz{
  1063. width: 230rpx;
  1064. }
  1065. }
  1066. .upload-picture{
  1067. float: left;
  1068. height: 100rpx;
  1069. .upload-none{
  1070. width: 100rpx;
  1071. height: 100rpx;
  1072. text-align: center;
  1073. line-height: 100rpx;
  1074. color: #999999;
  1075. border: 1px solid #999999;
  1076. border-radius: 10rpx;
  1077. margin: 0 20rpx;
  1078. .iconfont{
  1079. font-size: $font-size-28;
  1080. }
  1081. }
  1082. .upload-image{
  1083. width: 100rpx;
  1084. height: 100rpx;
  1085. border-radius: 10rpx;
  1086. margin: 0 20rpx;
  1087. position: relative;
  1088. image{
  1089. width: 100rpx;
  1090. height: 100rpx;
  1091. border-radius: 10rpx;
  1092. }
  1093. .upload-del{
  1094. width: 40rpx;
  1095. height: 40rpx;
  1096. position: absolute;
  1097. top: -20rpx;
  1098. right: -20rpx;
  1099. line-height: 40rpx;
  1100. text-align: center;
  1101. .iconfont{
  1102. font-size: $font-size-32;
  1103. color: #999999;
  1104. }
  1105. }
  1106. }
  1107. }
  1108. }
  1109. .register-input{
  1110. width: 654rpx;
  1111. height: 40rpx;
  1112. padding: 24rpx;
  1113. margin: 0 auto;
  1114. margin-bottom: 60rpx;
  1115. background: #F7F7F7;
  1116. border-radius: 14rpx;
  1117. .input{
  1118. width: 100%;
  1119. height: 100%;
  1120. background: #F7F7F7;
  1121. font-size: $font-size-28;
  1122. line-height: 40rpx;
  1123. color: #333333;
  1124. border-radius: 14rpx;
  1125. }
  1126. }
  1127. .register-fiexd{
  1128. width: 100%;
  1129. height: auto;
  1130. padding: 20rpx 0;
  1131. position: fixed;
  1132. bottom: 0;
  1133. left: 0;
  1134. z-index: 99;
  1135. background: #FFFFFF;
  1136. .register-agree{
  1137. display: flex;
  1138. flex-direction: column;
  1139. align-items: center;
  1140. margin: 32rpx 0;
  1141. .agree-text{
  1142. .checkbox{
  1143. float: left;
  1144. margin: 4rpx 6rpx 0 0;
  1145. color: #999999;
  1146. font-size: $font-size-32;
  1147. &.icon-gouxuan{
  1148. color: $color-system;
  1149. }
  1150. }
  1151. font-size: 20rpx;
  1152. line-height: 44rpx;
  1153. color: #999999;
  1154. text{
  1155. color:#0091FF;
  1156. }
  1157. }
  1158. }
  1159. }
  1160. .register-btn{
  1161. width: 702rpx;
  1162. height: 88rpx;
  1163. border-radius: 14rpx;
  1164. font-size: $font-size-28;
  1165. line-height: 88rpx;
  1166. color: #FFFFFF;
  1167. margin: 0 auto;
  1168. text-align: center;
  1169. background: $btn-confirm;
  1170. margin-top: 96rpx;
  1171. &.none{
  1172. background: #FFFFFF;
  1173. color: $text-color;
  1174. margin-top: 0;
  1175. }
  1176. &.sub{
  1177. margin-top: 0;
  1178. }
  1179. }
  1180. }
  1181. }
  1182. </style>