apply.vue 35 KB

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