register.vue 30 KB

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