apply.vue 34 KB

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