apply.vue 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197
  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="clubContact" 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
  366. this.addressData.addressDetail = organizationClub.address
  367. this.socialCreditCode = organizationClub.socialCreditCode
  368. this.firstClubType = organizationClub.firstClubType
  369. this.secondClubType = organizationClub.secondClubType
  370. this.uploadBusinessImage = organizationClub.businessLicenseImage
  371. this.uploadMentuzImage = organizationClub.headpic
  372. this.uploadMedicalImage = organizationClub.medicalPracticeLicenseImg
  373. this.department = organizationClub.department
  374. this.clubTelePhone = organizationClub. contractPhone
  375. this.clubFax = organizationClub.fax
  376. this.companyPprofile = 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(response.msg,2000);
  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. steps(index) {//$attrstab切换
  695. this.tabCurrentIndex = index;
  696. }
  697. },
  698. onShow() {
  699. if(this.isPreviewImage){
  700. this.isPreviewImage = false
  701. return
  702. }
  703. }
  704. }
  705. </script>
  706. <style lang="scss">
  707. .register{
  708. width: 100%;
  709. height: auto;
  710. border-top: 1px solid #F7F7F7;
  711. .model-warp.none{
  712. display: none;
  713. }
  714. .model-warp.show{
  715. display: block;
  716. }
  717. .register-error{
  718. width: 100%;
  719. height: auto;
  720. position: fixed;
  721. top: 0;
  722. left: 0;
  723. z-index: 999;
  724. .error-top{
  725. width: 702rpx;
  726. padding: 0 24rpx;
  727. height: 90rpx;
  728. line-height: 90rpx;
  729. background: #FF0000;
  730. border-bottom: 1px solid #F7F7F7;
  731. &.error-top--none{
  732. background:#FFFFFF;
  733. .name{
  734. color: #333333;
  735. }
  736. .icon{
  737. color: #333333;
  738. }
  739. }
  740. .name{
  741. font-size: $font-size-32;
  742. color: #FFFFFF;
  743. float: left;
  744. }
  745. .icon{
  746. float: right;
  747. font-size: $font-size-32;
  748. color: #FFFFFF;
  749. }
  750. .icon-xiangxiajiantou{
  751. transform: rotate(0deg);
  752. transform-origin: center center;
  753. float: right;
  754. font-size: $font-size-32;
  755. color: #FFFFFF;
  756. /* transition: transform 0.3s ease;*/
  757. transition-property: transform;
  758. transition-duration: 0.3s;
  759. transition-timing-function: ease;
  760. margin-left: 10rpx;
  761. }
  762. .icon-xiangxiajiantou-active{
  763. transform: rotate(180deg);
  764. color: #333333;
  765. }
  766. }
  767. .animation{
  768. /* transition: transform 0.3s ease;*/
  769. transition-property: transform;
  770. transition-duration: 0.2s;
  771. transition-timing-function: ease;
  772. }
  773. .error-main{
  774. width: 702rpx;
  775. height: auto;
  776. padding: 24rpx;
  777. overflow: hidden;
  778. background: #FFFFFF;
  779. .error-main-list{
  780. width:100% ;
  781. height: auto;
  782. background: #FFFFFF;
  783. .item{
  784. height: auto;
  785. line-height: 60rpx;
  786. font-size: $font-size-28;
  787. color: #FF0000;
  788. .num{
  789. margin-right: 10rpx;
  790. }
  791. }
  792. }
  793. }
  794. .error-main--hide {
  795. padding: 0 24rpx;
  796. height: 0px;
  797. line-height: 0px;
  798. }
  799. }
  800. .register-main{
  801. width: 100%;
  802. height: auto;
  803. &.detailed{
  804. padding-bottom: 300rpx;
  805. }
  806. &.first{
  807. padding-top: 110rpx;
  808. }
  809. .register-tips{
  810. display: flex;
  811. flex-direction: column;
  812. align-items: center;
  813. line-height: 44rpx;
  814. font-size: $font-size-24;
  815. color: #FF0000;
  816. margin-bottom: 40rpx;
  817. .iconfont{
  818. font-size: $font-size-24;
  819. }
  820. }
  821. .register-row{
  822. width: 702rpx;
  823. height: auto;
  824. padding: 0 24rpx;
  825. margin-bottom: 20rpx;
  826. .register-title{
  827. line-height: 60rpx;
  828. font-size: $font-size-32;
  829. color: $text-color;
  830. text-align: left;
  831. padding-left: 20rpx;
  832. .txt{
  833. font-size: $font-size-26;
  834. }
  835. }
  836. .row-btn{
  837. position: absolute;
  838. right: 24rpx;
  839. top: 0;
  840. line-height: 88rpx;
  841. text-align: center;
  842. font-size: $font-size-28;
  843. color: $color-system;
  844. }
  845. .register-from{
  846. width: 654rpx;
  847. height: 40rpx;
  848. padding: 24rpx;
  849. background: $sub-bg-color;
  850. border-radius: 14rpx;
  851. position: relative;
  852. .label{
  853. text-align: left;
  854. font-size: $font-size-28;
  855. color: #666666;
  856. line-height: 40rpx;
  857. float: left;
  858. }
  859. .row-input{
  860. width: 440rpx;
  861. padding-left:10rpx;
  862. font-size: $font-size-28;
  863. color: $text-color;
  864. line-height: 40rpx;
  865. float: left;
  866. height: 40rpx;
  867. &.none{
  868. color: #999999;
  869. }
  870. &.picker{
  871. text-align: left;
  872. color: #999999;
  873. }
  874. &.keshi{
  875. width: 550rpx;
  876. }
  877. }
  878. &.code{
  879. width: 410rpx;
  880. float: left;
  881. margin-right: 20rpx;
  882. .row-input{
  883. width: 390rpx;
  884. }
  885. }
  886. &.btn{
  887. width: 224rpx;
  888. height: 88rpx;
  889. float: left;
  890. background: $btn-confirm;
  891. padding: 0;
  892. .row-input{
  893. width: 224rpx;
  894. height: 88rpx;
  895. line-height: 88rpx;
  896. padding: 0;
  897. color: #FFFFFF;
  898. background: $btn-confirm;
  899. text-align: center;
  900. border-radius: 14rpx;
  901. &.other{
  902. width: 224rpx;
  903. background: #F7F7F7;
  904. margin-right: 20rpx;
  905. }
  906. &.none{
  907. background: #F7F7F7;
  908. }
  909. }
  910. &.disabled{
  911. background: #F7F7F7;
  912. .row-input{
  913. background: #F7F7F7;
  914. color: #999999;
  915. }
  916. }
  917. }
  918. &.picker{
  919. padding: 0 24rpx;
  920. width: 654rpx;
  921. height: 88rpx;
  922. line-height: 88rpx;
  923. .label{
  924. line-height: 88rpx;
  925. }
  926. .row-input{
  927. width: 470rpx;
  928. height: 88rpx;
  929. line-height: 88rpx;
  930. padding-left: 30rpx;
  931. }
  932. }
  933. &.radio{
  934. padding: 0 24rpx;
  935. width: 654rpx;
  936. height: 288rpx;
  937. .row-input{
  938. width: 100%;
  939. height: 88rpx;
  940. line-height: 88rpx;
  941. padding-left: 0;
  942. }
  943. .row-radio{
  944. float: left;
  945. transform: scale(0.8);
  946. }
  947. .row-text{
  948. width: 100rpx;
  949. text-align: center;
  950. float: left;
  951. }
  952. }
  953. &.group{
  954. padding: 0 24rpx;
  955. width: 654rpx;
  956. height: auto;
  957. background: #FFFFFF;
  958. margin-top: 30rpx;
  959. .label{
  960. line-height: 76rpx;
  961. }
  962. .row-input{
  963. width: 100%;
  964. height: 88rpx;
  965. line-height: 88rpx;
  966. padding-left: 0;
  967. }
  968. .row-radio{
  969. float: left;
  970. }
  971. .row-text{
  972. width: 100rpx;
  973. text-align: center;
  974. float: left;
  975. }
  976. }
  977. &.btn{
  978. margin-top: 0;
  979. }
  980. .content-class {
  981. margin: 20rpx auto;
  982. display: flex;
  983. flex-flow: row wrap;
  984. justify-content: space-between;
  985. align-items: center;
  986. &.btn{
  987. margin: 0 auto;
  988. margin-left: 126rpx;
  989. }
  990. .row-input{
  991. display: flex;
  992. width: 220rpx;
  993. height: 40rpx;
  994. padding: 24rpx;
  995. text-align: left;
  996. border-radius: 10rpx;
  997. font-size: $font-size-28;
  998. color: $text-color;
  999. }
  1000. .confirm-btn{
  1001. width: 200rpx;
  1002. height: 88rpx;
  1003. border-radius: 10rpx;
  1004. line-height: 88rpx;
  1005. text-align: center;
  1006. &.none{
  1007. color: #FFFFFF;
  1008. background: $btn-confirm;
  1009. }
  1010. &.disabled{
  1011. color: #999999;
  1012. }
  1013. }
  1014. .item {
  1015. width: 155rpx;
  1016. height: 60rpx;
  1017. font-size:$font-size-28;
  1018. line-height: 60rpx;
  1019. border-radius:10rpx;
  1020. margin: 10rpx;
  1021. text-align: center;
  1022. box-sizing: border-box;
  1023. border: 1rpx solid #EFEFEF;
  1024. checkbox {
  1025. display: none;
  1026. }
  1027. }
  1028. .on {
  1029. border-color: $color-system;
  1030. color:$color-system;
  1031. }
  1032. }
  1033. }
  1034. .icon-xiayibu{
  1035. width: 88rpx;
  1036. height: 88rpx;
  1037. position: absolute;
  1038. right: 0;
  1039. top: 0;
  1040. line-height: 88rpx;
  1041. text-align: center;
  1042. }
  1043. &.text-textarea{
  1044. background: #FFFFFF;
  1045. .textarea{
  1046. width: 654rpx;
  1047. height: 180rpx;
  1048. background: #F7F7F7;
  1049. padding: 24rpx;
  1050. font-size: $font-size-28;
  1051. color: $text-color;
  1052. z-index: 1;
  1053. border-radius: 14rpx;
  1054. }
  1055. .textarea.hide{
  1056. opacity: 0;
  1057. }
  1058. .textarea.show{
  1059. color: #999999;
  1060. }
  1061. }
  1062. }
  1063. .register-picture{
  1064. height: 102rpx;
  1065. margin: 40rpx 0 0 0;
  1066. .label{
  1067. float: left;
  1068. font-size: $font-size-28;
  1069. color: $text-color;
  1070. line-height: 102rpx;
  1071. width: 150rpx;
  1072. text-align: right;
  1073. &.zz{
  1074. width: 230rpx;
  1075. }
  1076. }
  1077. .upload-picture{
  1078. float: left;
  1079. height: 100rpx;
  1080. .upload-none{
  1081. width: 100rpx;
  1082. height: 100rpx;
  1083. text-align: center;
  1084. line-height: 100rpx;
  1085. color: #999999;
  1086. border: 1px solid #999999;
  1087. border-radius: 10rpx;
  1088. margin: 0 20rpx;
  1089. .iconfont{
  1090. font-size: $font-size-28;
  1091. }
  1092. }
  1093. .upload-image{
  1094. width: 100rpx;
  1095. height: 100rpx;
  1096. border-radius: 10rpx;
  1097. margin: 0 20rpx;
  1098. position: relative;
  1099. image{
  1100. width: 100rpx;
  1101. height: 100rpx;
  1102. border-radius: 10rpx;
  1103. }
  1104. .upload-del{
  1105. width: 40rpx;
  1106. height: 40rpx;
  1107. position: absolute;
  1108. top: -20rpx;
  1109. right: -20rpx;
  1110. line-height: 40rpx;
  1111. text-align: center;
  1112. .iconfont{
  1113. font-size: $font-size-32;
  1114. color: #999999;
  1115. }
  1116. }
  1117. }
  1118. }
  1119. }
  1120. .register-input{
  1121. width: 654rpx;
  1122. height: 40rpx;
  1123. padding: 24rpx;
  1124. margin: 0 auto;
  1125. margin-bottom: 60rpx;
  1126. background: #F7F7F7;
  1127. border-radius: 14rpx;
  1128. .input{
  1129. width: 100%;
  1130. height: 100%;
  1131. background: #F7F7F7;
  1132. font-size: $font-size-28;
  1133. line-height: 40rpx;
  1134. color: #333333;
  1135. border-radius: 14rpx;
  1136. }
  1137. }
  1138. .register-fiexd{
  1139. width: 100%;
  1140. height: auto;
  1141. padding: 20rpx 0;
  1142. position: fixed;
  1143. bottom: 0;
  1144. left: 0;
  1145. z-index: 99;
  1146. background: #FFFFFF;
  1147. .register-agree{
  1148. display: flex;
  1149. flex-direction: column;
  1150. align-items: center;
  1151. margin: 32rpx 0;
  1152. .agree-text{
  1153. .checkbox{
  1154. float: left;
  1155. margin: 4rpx 6rpx 0 0;
  1156. color: #999999;
  1157. font-size: $font-size-32;
  1158. &.icon-gouxuan{
  1159. color: $color-system;
  1160. }
  1161. }
  1162. font-size: 20rpx;
  1163. line-height: 44rpx;
  1164. color: #999999;
  1165. text{
  1166. color:#0091FF;
  1167. }
  1168. }
  1169. }
  1170. }
  1171. .register-btn{
  1172. width: 702rpx;
  1173. height: 88rpx;
  1174. border-radius: 14rpx;
  1175. font-size: $font-size-28;
  1176. line-height: 88rpx;
  1177. color: #FFFFFF;
  1178. margin: 0 auto;
  1179. text-align: center;
  1180. background: $btn-confirm;
  1181. margin-top: 96rpx;
  1182. &.none{
  1183. background: #FFFFFF;
  1184. color: $text-color;
  1185. margin-top: 0;
  1186. }
  1187. &.sub{
  1188. margin-top: 0;
  1189. }
  1190. }
  1191. }
  1192. }
  1193. </style>