apply.vue 35 KB

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