register.vue 30 KB

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