register.vue 30 KB

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