register.vue 30 KB

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