register.vue 32 KB

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