apply.vue 31 KB

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