register.vue 30 KB

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