register.vue 30 KB

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