register.vue 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101
  1. <template>
  2. <view class="container register" :style="{paddingTop:CustomBar+'px'}">
  3. <cu-custom :navbar-data='nvabarData' @navigateBack="hanldNavigateBack"></cu-custom>
  4. <view class="register-main first clearfix">
  5. <view class="register-row clearfix">
  6. <text class="register-title">注册信息</text>
  7. </view>
  8. <view class="register-row clearfix">
  9. <view class="register-from">
  10. <view class="label">联系人:</view>
  11. <input class="row-input" type="text" name="input" v-model="clubContact" placeholder="请输入联系姓名" maxlength="6"/>
  12. </view>
  13. </view>
  14. <view class="register-row clearfix">
  15. <view class="register-from code">
  16. <view class="label">手机号:</view>
  17. <input class="row-input phone" type="text" v-model="registerMobile" placeholder="请输入联系人手机号" maxlength="11"/>
  18. </view>
  19. <view class="register-from btn">
  20. <button class="row-input" type="button" @click.stop="registerCheckMobile()">检测</button>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="register-main clearfix">
  25. <view class="register-row clearfix">
  26. <view class="register-txt first"><text>您还可以填写更多信息,帮机构直接注册成为会员机构。</text></view>
  27. <view class="register-txt"><text>不过这些信息需要审核。</text></view>
  28. <view class="register-bet" @tap.stop="showUpgrade()" v-if="isDownUpgrade">
  29. <text>展开信息填写<text class="iconfont icon-xiangxiajiantou"></text></text>
  30. </view>
  31. </view>
  32. <view class="register-fiexd clearfix" :style="{paddingBottom:isIphoneX ? '68rpx':''}">
  33. <view class="register-bet" @tap.stop="hideUpgrade()" v-if="isUpgrade">
  34. <text>收起<text class="iconfont icon-xiangshangjiantou"></text></text>
  35. </view>
  36. <view class="register-agree">
  37. <view class="agree-text" @tap.stop="agreeCheck()">
  38. <button class="checkbox iconfont" :class="[isCheck?'icon-gouxuan':'icon-weigouxuan']"></button>
  39. 我已阅读并同意
  40. <text @click.stop="this.$api.navigateTo('/pages/service/organagree')">《机构协议》</text>
  41. <text @click.stop="this.$api.navigateTo('/pages/service/useragree')">《用户协议》</text>及
  42. <text @click.stop="this.$api.navigateTo('/pages/service/privacyagree')">《隐私权政策》</text>
  43. </view>
  44. </view>
  45. <view class="register-row ">
  46. <view class="register-btn sub" @click.stop="registerStepsSub">{{registerBtnText}}</view>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="register-main detailed clearfix" v-show="isUpgrade">
  51. <view class="register-row clearfix">
  52. <text class="register-title">升级信息</text></text>
  53. </view>
  54. <view class="register-row clearfix">
  55. <view class="register-from">
  56. <view class="label">邮箱:</view>
  57. <input class="row-input" type="text" name="input" v-model="registerEmail" placeholder="请输入机构邮箱地址" maxlength="30"/>
  58. </view>
  59. </view>
  60. <view class="register-row clearfix">
  61. <view class="register-from">
  62. <view class="label">机构名称:</view>
  63. <input class="row-input" type="text" name="input" v-model="clubName" placeholder="请输入您的机构名称" maxlength="30"/>
  64. </view>
  65. </view>
  66. <view class="register-row clearfix">
  67. <view class="register-from">
  68. <view class="label">机构简称:</view>
  69. <input class="row-input" type="text" v-model="abbreviation" placeholder="请输入您的机构简称" maxlength="10"/>
  70. </view>
  71. </view>
  72. <view class="register-row clearfix">
  73. <view class="register-from" @click="showMulLinkageThreePicker">
  74. <view class="label">机构地址:</view>
  75. <text class="row-input" :class="addressData.address === '请选择机构所在地区' ? 'none' : ''">
  76. {{addressData.address}}
  77. </text>
  78. <text class="iconfont icon-xiayibu"></text>
  79. </view>
  80. </view>
  81. <view class="register-row text-textarea clearfix">
  82. <view class="textarea show" v-if="isShowInput" @click="showTextareaFocus">{{addressData.addressDetail ? addressData.addressDetail :'详细地址:如道路、门牌号、小区等'}}</view>
  83. <textarea v-else
  84. class="textarea"
  85. type="text"
  86. v-model="addressData.addressDetail"
  87. placeholder="详细地址:如道路、门牌号、小区等"
  88. placeholder-class="placeholder"
  89. maxlength="35"
  90. @input="onTextareaInput"
  91. @focus="textareaFocus"
  92. @blur="hideTextareaFocus"
  93. :class="isShowInput ? '':''"
  94. />
  95. </view>
  96. <view class="register-row clearfix" >
  97. <view class="register-from">
  98. <view class="label">营业执照编号:</view>
  99. <input class="row-input" type="text" v-model="socialCreditCode" placeholder="请填写社会统一信用代码" maxlength="18"/>
  100. </view>
  101. </view>
  102. <view class="register-row clearfix">
  103. <view class="register-picture">
  104. <view class="label">营业执照:</view>
  105. <view class="upload-picture">
  106. <view class="upload-none" v-if="uploadBusinessImage === ''" @click="chooseBusinessImage"><text class="iconfont icon-jiahao"></text></view>
  107. <view class="upload-image" v-else>
  108. <image :src="uploadBusinessImage" mode="" @click="viewBusinessImage"></image>
  109. <view class="upload-del" @click="delBusinessImage">
  110. <text class='iconfont icon-shanchu1'></text>
  111. </view>
  112. </view>
  113. </view>
  114. </view>
  115. <view class="register-picture">
  116. <view class="label">门头照:</view>
  117. <view class="upload-picture">
  118. <view class="upload-none" v-if="uploadMentuzImage === ''" @click="chooseMentuzImage"><text class="iconfont icon-jiahao"></text></view>
  119. <view class="upload-image" v-else>
  120. <image :src="uploadMentuzImage" mode="" @click="viewMentuzImage"></image>
  121. <view class="upload-del" @click="delMentuzImage">
  122. <text class='iconfont icon-shanchu1'></text>
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. </view>
  128. <view class="register-row clearfix">
  129. <view class="register-from picker">
  130. <view class="label">机构类型:</view>
  131. <view class="row-input picker" @click="bindPickerChange">{{ organizationTypeText }}</view>
  132. <text class="iconfont icon-xiayibu"></text>
  133. </view>
  134. </view>
  135. <view class="register-row clearfix" v-if="isOrganizationType == 1" >
  136. <view class="register-from radio">
  137. <radio-group @change="radioChange">
  138. <label class="row-input" v-for="(item, index) in beautyList" :key="item.value">
  139. <radio class="row-radio" :value="item.value" :checked="index === current" color="#E15616"/>
  140. <view class="row-text">{{item.name}}</view>
  141. </label>
  142. </radio-group>
  143. </view>
  144. </view>
  145. <view class="register-row clearfix" v-show="isDepartment" >
  146. <view class="register-from">
  147. <view class="label">科室:</view>
  148. <input class="row-input keshi" type="text" v-model="department" placeholder="请填写经营的科室,至少三个,用逗号隔开" maxlength="16"/>
  149. </view>
  150. </view>
  151. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  152. <view class="register-picture zz">
  153. <view class="label zz">医疗执业许可证:</view>
  154. <view class="upload-picture">
  155. <view class="upload-none" v-if="uploadMedicalImage === ''" @click="chooseMedicalImage"><text class="iconfont icon-jiahao"></text></view>
  156. <view class="upload-image" v-else>
  157. <image :src="uploadMedicalImage" mode="" @click="viewMedicalImage"></image>
  158. <view class="upload-del" @click="delMedicalImage">
  159. <text class='iconfont icon-shanchu1'></text>
  160. </view>
  161. </view>
  162. </view>
  163. </view>
  164. </view>
  165. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  166. <view class="register-from group">
  167. <view class="label">主营内容:</view>
  168. <view class="content-class">
  169. <checkbox-group @change="chooseMaleLike" >
  170. <label class="item" v-for="(item, index) in mentuzCampList" :key="index" :class="{on: item.checked}">
  171. <checkbox :value="item.value"></checkbox>
  172. <text class="item-text">{{item.name}}</text>
  173. </label>
  174. </checkbox-group>
  175. </view>
  176. </view>
  177. <view class="register-from group btn">
  178. <view class="content-class btn">
  179. <view class="item" @click="showAustomItem">
  180. <text class="item-text">其他</text>
  181. </view>
  182. </view>
  183. </view>
  184. <view class="register-from group btn" v-show="isShowAustomItem">
  185. <view class="content-class btn">
  186. <input class="row-input other" type="text" v-model="customItemValue" placeholder="请输入自定义项目" @blur="onBlurInput" maxlength="5"/>
  187. <button type="default"
  188. class="confirm-btn other"
  189. :class="[isDisabled === true ? 'disabled' : 'none']"
  190. :disabled="isDisabled"
  191. @click.stop="addCustomItem"
  192. >确认添加</button>
  193. </view>
  194. </view>
  195. </view>
  196. <view class="register-row clearfix" v-if="isOrganizationType == 2">
  197. <view class="register-from group">
  198. <view class="label">主营内容:</view>
  199. <view class="content-class">
  200. <checkbox-group @change="chooseMaleLikes">
  201. <label class="item" v-for="(item, index) in medicaCampList" :key="index" :class="{on: item.checked}">
  202. <checkbox :value="item.value"></checkbox>
  203. <text class="item-text">{{item.name}}</text>
  204. </label>
  205. </checkbox-group>
  206. </view>
  207. </view>
  208. <view class="register-from group btn">
  209. <view class="content-class btn">
  210. <view class="item" @click="showAustomItem">
  211. <text class="item-text">其他</text>
  212. </view>
  213. </view>
  214. </view>
  215. <view class="register-from group btn" v-show="isShowAustomItem">
  216. <view class="content-class btn">
  217. <input class="row-input other" type="text" v-model="customItemValue" placeholder="请输入自定义项目" @blur="onBlurInput" maxlength="5"/>
  218. <button type="default"
  219. class="confirm-btn"
  220. :class="[isDisabled === true ? 'disabled' : 'none']"
  221. :disabled="isDisabled"
  222. @click.stop="addCustomItem"
  223. >确认添加</button>
  224. </view>
  225. </view>
  226. </view>
  227. <mpvue-city-picker :themeColor="themeColor"
  228. ref="mpvueCityPicker"
  229. :pickerValueDefault="cityPickerValueDefault"
  230. @onCancel="onCancel"
  231. @onConfirm="onConfirm">
  232. </mpvue-city-picker>
  233. </view>
  234. </view>
  235. </template>
  236. <script>
  237. import { mapMutations } from 'vuex';
  238. import { beautyList,mentuzCampNullList,medicaCampNullList } from '@/common/json/data.json.js' //本地数据
  239. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  240. import authorize from '@/common/config/authorize.js'
  241. import { uploadFileImage } from "@/api/utils.js"
  242. var self;
  243. export default{
  244. components:{
  245. mpvueCityPicker
  246. },
  247. data() {
  248. return{
  249. nvabarData: { //顶部自定义导航
  250. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  251. showSearch: 0,
  252. title: '拉机构上线', // 导航栏 中间的标题
  253. haveBack:true,
  254. textLeft:this.$store.state.isIphone
  255. },
  256. isIphoneX:this.$store.state.isIphone,
  257. CustomBar:this.CustomBar,// 顶部导航栏高度
  258. userID:'',//协销ID
  259. isPreviewImage:false, //预览图片开关
  260. registerEmail:'', //注册邮箱
  261. clubName:'', //机构名称
  262. abbreviation:'', //机构简称
  263. clubContact:'', //联系人
  264. registerMobile:'', //联系人手机号
  265. socialCreditCode:'', //统一社会信用代码
  266. isAgreed:0, //是否勾选协议
  267. isDisabled:true,
  268. isShowInput:true,
  269. textareaFocus:false,
  270. isUpgrade:false,
  271. isDownUpgrade:true,
  272. isCheck:false, //是否勾选协议
  273. uploadBusinessImage:'', //营业执照图片
  274. uploadMentuzImage:'', //门头照图片
  275. uploadMedicalImage:'', //资质照图片
  276. department:'', //科室
  277. isDepartment:false, //是否显示科室
  278. secondClubType:'', //机构类型二级分类
  279. mainpro:'', //主营内容
  280. isOrganizationType:0,
  281. organizationTypeText:'请选择机构类型',
  282. beautyList:beautyList,
  283. mentuzCampList:mentuzCampNullList,
  284. medicaCampList:medicaCampNullList,
  285. typtIndex:0,
  286. organizationType:3,
  287. current:0,
  288. isShowAustomItem:false, //是否显示其他添加
  289. customItemValue:'', //自定义项目
  290. addressData:{
  291. address:'请选择机构所在地区',
  292. townID:'', //区ID
  293. cityID:'', //区ID
  294. provinceID:'', //区ID
  295. addressDetail: '', //地址
  296. },
  297. registerBtnText:'确定'
  298. }
  299. },
  300. onLoad(option) {
  301. },
  302. methods:{
  303. hanldNavigateBack(){
  304. this.$util.modal('','注册尚未完成,确定放弃注册吗?','确定','取消',true,() =>{
  305. uni.navigateBack({
  306. delta: 1
  307. });
  308. })
  309. },
  310. registerCheckMobile(){
  311. if( this.registerMobile == ''){
  312. this.$util.msg('请输入手机号',2000);
  313. return
  314. }
  315. if(!this.$reg.isMobile(this.registerMobile)){
  316. this.$util.msg('请输入正确的手机号',2000);
  317. return
  318. }
  319. this.SellerService.SellerClubCheck({mobileOrEmail:this.registerMobile}).then(response =>{
  320. this.$util.msg(response.data,2000);
  321. }).catch(error =>{
  322. this.$util.msg(error.msg,2000);
  323. })
  324. },
  325. registerStepsSub(){
  326. let params = {};
  327. if(this.isUpgrade){
  328. if( this.clubContact == ''){
  329. this.$util.msg('请输入联系人姓名',2000);
  330. return
  331. }
  332. if( this.registerMobile == ''){
  333. this.$util.msg('请输入联系人手机号',2000);
  334. return
  335. }
  336. if(!this.$reg.isMobile(this.registerMobile)){
  337. this.$util.msg('手机格式不正确',2000);
  338. return
  339. }
  340. if( this.registerEmail == ''){
  341. this.$util.msg('请输入邮箱地址',2000);
  342. return
  343. }
  344. if(!this.$reg.isEmail(this.registerEmail)){
  345. this.$util.msg('请输入正确的邮箱地址',2000);
  346. return
  347. }
  348. if( this.clubName == ''){
  349. this.$util.msg('请输入机构名称',2000);
  350. return
  351. }
  352. if( this.addressData.townID == ''){
  353. this.$util.msg('请选择机构地址',2000);
  354. return
  355. }
  356. if( this.addressData.addressDetail == ''){
  357. this.$util.msg('请填写机构详细地址',2000);
  358. return
  359. }
  360. if( this.uploadBusinessImage == ''){
  361. this.$util.msg('请上传您的营业执照',2000);
  362. return
  363. }
  364. if(this.isOrganizationType!=0){
  365. if(this.mainpro == ''){
  366. this.$util.msg('请选择住机构主营内容',2000);
  367. return
  368. }
  369. }
  370. if(this.isAgreed == 0){
  371. this.$util.msg('请勾选同意协议',2000);
  372. return
  373. }
  374. params ={
  375. source:1,
  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. source:1,
  415. linkMan1:this.clubContact,
  416. bindMobile:this.registerMobile,
  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.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 values = e.detail.value
  549. let arr = []
  550. list.forEach(item => {
  551. if(values.indexOf(item.value) >= 0){
  552. this.$set(item,'checked',true)
  553. arr.push(item.name)
  554. }else{
  555. this.$set(item,'checked',false)
  556. }
  557. })
  558. return arr.join('/')
  559. },
  560. agreeCheck() {
  561. this.isCheck = !this.isCheck
  562. if(this.isCheck){
  563. this.isAgreed = 1
  564. }else{
  565. this.isAgreed = 0
  566. }
  567. },
  568. onBlurInput(e){//
  569. if(e.detail.value ===''){
  570. this.isDisabled = true
  571. }else{
  572. this.isDisabled = false
  573. }
  574. },
  575. showAustomItem() {
  576. this.isShowAustomItem = !this.isShowAustomItem
  577. },
  578. addCustomItem(){
  579. if(this.isOrganizationType == 1){
  580. let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue}
  581. this.mentuzCampList.push(item)
  582. }else{
  583. let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue}
  584. this.medicaCampList.push(item)
  585. }
  586. },
  587. showUpgrade(){
  588. this.isUpgrade = true
  589. this.isDownUpgrade = false
  590. this.registerBtnText = '提交审核'
  591. },
  592. hideUpgrade(){
  593. this.$util.modal('提示','收起后,您填写的升级信息将会被清空确定收起吗?','确定','取消',true,() =>{
  594. this.isUpgrade = false
  595. this.isDownUpgrade = true
  596. this.registerBtnText = '确定'
  597. })
  598. }
  599. },
  600. onShow() {
  601. if(this.isPreviewImage){
  602. this.isPreviewImage = false
  603. return
  604. }
  605. this.$api.getStorage().then((resolve) =>{
  606. this.userID = resolve.userID
  607. })
  608. }
  609. }
  610. </script>
  611. <style lang="scss">
  612. .register{
  613. width: 100%;
  614. height: auto;
  615. padding-top: 50rpx;
  616. .model-warp.none{
  617. display: none;
  618. }
  619. .model-warp.show{
  620. display: block;
  621. }
  622. .register-tab{
  623. width: 570rpx;
  624. height: 60rpx;
  625. padding: 60rpx 90rpx;
  626. position: relative;
  627. .nav-item{
  628. width: 142rpx;
  629. background: #FFFFFF;
  630. line-height: 60rpx;
  631. border-radius: 30rpx;
  632. text-align: center;
  633. color: #999999;
  634. font-size:$font-size-26;
  635. float: left;
  636. margin-right: 72rpx;
  637. position: relative;
  638. .line{
  639. height: 3rpx;
  640. width: 50rpx;
  641. background: #999999;
  642. position: absolute;
  643. right: -58rpx;
  644. top: 32rpx;
  645. }
  646. &:last-child{
  647. margin-right: 0;
  648. }
  649. &.current{
  650. color:#FFFFFF;
  651. background: $btn-confirm;
  652. }
  653. }
  654. }
  655. .register-main{
  656. width: 100%;
  657. height: auto;
  658. &.detailed{
  659. padding-bottom: 330rpx;
  660. }
  661. &.first{
  662. padding-top: 40rpx;
  663. }
  664. .register-tips{
  665. display: flex;
  666. flex-direction: column;
  667. align-items: center;
  668. line-height: 44rpx;
  669. font-size: $font-size-24;
  670. color: #FF0000;
  671. margin-bottom: 40rpx;
  672. .iconfont{
  673. font-size: $font-size-24;
  674. }
  675. }
  676. .register-row{
  677. width: 702rpx;
  678. height: auto;
  679. padding: 0 24rpx;
  680. margin-bottom: 20rpx;
  681. .register-title{
  682. font-size: $font-size-32;
  683. color: $text-color;
  684. text{
  685. font-size: $font-size-24;
  686. }
  687. }
  688. .register-txt{
  689. line-height: 44rpx;
  690. font-size: $font-size-26;
  691. color: $text-color;
  692. text-align: left;
  693. &.first{
  694. margin-top: 20rpx;
  695. }
  696. }
  697. .register-bet{
  698. width: 100%;
  699. display: flex;
  700. line-height: 60rpx;
  701. height: 60rpx;
  702. align-items: center;
  703. flex-direction: column;
  704. font-size: $font-size-28;
  705. color: $color-system;
  706. margin-top: 40rpx;
  707. text{
  708. margin: 0 5rpx;
  709. }
  710. }
  711. .register-text{
  712. line-height: 44rpx;
  713. margin-top: 100rpx;
  714. font-size: $font-size-24;
  715. color: #999999;
  716. text-align: justify;
  717. .txt{
  718. margin-right: 15rpx;
  719. }
  720. }
  721. .register-from{
  722. width: 654rpx;
  723. height: 40rpx;
  724. padding: 24rpx;
  725. background: $sub-bg-color;
  726. border-radius: 14rpx;
  727. position: relative;
  728. .label{
  729. text-align: left;
  730. font-size: $font-size-28;
  731. color: $text-color;
  732. line-height: 40rpx;
  733. float: left;
  734. }
  735. .row-input{
  736. width: 440rpx;
  737. padding-left:10rpx;
  738. font-size: $font-size-28;
  739. color: $text-color;
  740. line-height: 40rpx;
  741. float: left;
  742. height: 40rpx;
  743. &.none{
  744. color: #999999;
  745. }
  746. &.picker{
  747. text-align: left;
  748. color: #999999;
  749. }
  750. &.keshi{
  751. width: 550rpx;
  752. }
  753. }
  754. &.code{
  755. width: 454rpx;
  756. float: left;
  757. margin-right: 20rpx;
  758. .row-input{
  759. width: 380rpx;
  760. &.phone{
  761. width: 340rpx;
  762. }
  763. }
  764. }
  765. &.btn{
  766. width: 180rpx;
  767. height: 88rpx;
  768. float: left;
  769. background: $btn-confirm;
  770. padding: 0;
  771. .row-input{
  772. width: 180rpx;
  773. height: 88rpx;
  774. line-height: 88rpx;
  775. padding: 0;
  776. color: #FFFFFF;
  777. background: $btn-confirm;
  778. text-align: center;
  779. border-radius: 14rpx;
  780. &.other{
  781. width: 180rpx;
  782. background: #F7F7F7;
  783. margin-right: 20rpx;
  784. }
  785. &.none{
  786. background: #F7F7F7;
  787. }
  788. }
  789. &.disabled{
  790. background: #F7F7F7;
  791. .row-input{
  792. background: #F7F7F7;
  793. color: #999999;
  794. }
  795. }
  796. }
  797. &.picker{
  798. padding: 0 24rpx;
  799. width: 654rpx;
  800. height: 88rpx;
  801. line-height: 88rpx;
  802. .label{
  803. line-height: 88rpx;
  804. }
  805. .row-input{
  806. width: 470rpx;
  807. height: 88rpx;
  808. line-height: 88rpx;
  809. padding-left: 30rpx;
  810. }
  811. }
  812. &.radio{
  813. padding: 0 24rpx;
  814. width: 654rpx;
  815. height: 288rpx;
  816. .row-input{
  817. width: 100%;
  818. height: 88rpx;
  819. line-height: 88rpx;
  820. padding-left: 0;
  821. }
  822. .row-radio{
  823. float: left;
  824. transform: scale(0.8);
  825. }
  826. .row-text{
  827. width: 100rpx;
  828. text-align: center;
  829. float: left;
  830. }
  831. }
  832. &.group{
  833. padding: 0 24rpx;
  834. width: 654rpx;
  835. height: auto;
  836. background: #FFFFFF;
  837. margin-top: 30rpx;
  838. .label{
  839. line-height: 76rpx;
  840. }
  841. .row-input{
  842. width: 100%;
  843. height: 88rpx;
  844. line-height: 88rpx;
  845. padding-left: 0;
  846. }
  847. .row-radio{
  848. float: left;
  849. }
  850. .row-text{
  851. width: 100rpx;
  852. text-align: center;
  853. float: left;
  854. }
  855. }
  856. &.btn{
  857. margin-top: 0;
  858. }
  859. .content-class {
  860. margin: 20rpx auto;
  861. display: flex;
  862. flex-flow: row wrap;
  863. justify-content: space-between;
  864. align-items: center;
  865. &.btn{
  866. margin: 0 auto;
  867. margin-left: 116rpx;
  868. }
  869. .row-input{
  870. display: flex;
  871. width: 220rpx;
  872. height: 40rpx;
  873. padding: 24rpx;
  874. text-align: left;
  875. border-radius: 10rpx;
  876. font-size: $font-size-28;
  877. color: $text-color;
  878. }
  879. .confirm-btn{
  880. width: 200rpx;
  881. height: 88rpx;
  882. border-radius: 10rpx;
  883. line-height: 88rpx;
  884. text-align: center;
  885. &.other{
  886. width: 213rpx;
  887. }
  888. &.none{
  889. color: #FFFFFF;
  890. background: $btn-confirm;
  891. }
  892. &.disabled{
  893. color: #999999;
  894. }
  895. }
  896. .item {
  897. width: 155rpx;
  898. height: 60rpx;
  899. font-size:$font-size-28;
  900. line-height: 60rpx;
  901. border-radius:10rpx;
  902. margin: 10rpx;
  903. text-align: center;
  904. box-sizing: border-box;
  905. border: 1rpx solid #EFEFEF;
  906. float: left;
  907. checkbox {
  908. display: none;
  909. }
  910. }
  911. .on {
  912. border-color: $color-system;
  913. color:$color-system;
  914. }
  915. }
  916. }
  917. .icon-xiayibu{
  918. width: 88rpx;
  919. height: 88rpx;
  920. position: absolute;
  921. right: 0;
  922. top: 0;
  923. line-height: 88rpx;
  924. text-align: center;
  925. }
  926. &.text-textarea{
  927. background: #FFFFFF;
  928. .textarea{
  929. width: 654rpx;
  930. height: 180rpx;
  931. background: #F7F7F7;
  932. padding: 24rpx;
  933. font-size: $font-size-28;
  934. color: $text-color;
  935. z-index: 1;
  936. border-radius: 14rpx;
  937. }
  938. .textarea.hide{
  939. opacity: 0;
  940. }
  941. .textarea.show{
  942. color: #999999;
  943. }
  944. }
  945. }
  946. .register-picture{
  947. height: 102rpx;
  948. margin: 30rpx 0;
  949. width: 42%;
  950. float: left;
  951. &.zz{
  952. width: 100%;
  953. }
  954. .label{
  955. float: left;
  956. font-size: $font-size-28;
  957. color: $text-color;
  958. line-height: 102rpx;
  959. width: 150rpx;
  960. text-align: right;
  961. &.zz{
  962. width: 230rpx;
  963. }
  964. }
  965. .upload-picture{
  966. float: left;
  967. height: 100rpx;
  968. .upload-none{
  969. width: 100rpx;
  970. height: 100rpx;
  971. text-align: center;
  972. line-height: 100rpx;
  973. color: #999999;
  974. border: 1px solid #999999;
  975. border-radius: 10rpx;
  976. margin: 0 20rpx;
  977. .iconfont{
  978. font-size: $font-size-28;
  979. }
  980. }
  981. .upload-image{
  982. width: 100rpx;
  983. height: 100rpx;
  984. border-radius: 10rpx;
  985. margin: 0 20rpx;
  986. position: relative;
  987. image{
  988. width: 100rpx;
  989. height: 100rpx;
  990. border-radius: 10rpx;
  991. }
  992. .upload-del{
  993. width: 40rpx;
  994. height: 40rpx;
  995. position: absolute;
  996. top: -20rpx;
  997. right: -20rpx;
  998. line-height: 40rpx;
  999. text-align: center;
  1000. .iconfont{
  1001. font-size: $font-size-32;
  1002. color: #999999;
  1003. }
  1004. }
  1005. }
  1006. }
  1007. }
  1008. .register-input{
  1009. width: 654rpx;
  1010. height: 40rpx;
  1011. padding: 24rpx;
  1012. margin: 0 auto;
  1013. margin-bottom: 60rpx;
  1014. background: #F7F7F7;
  1015. border-radius: 14rpx;
  1016. .input{
  1017. width: 100%;
  1018. height: 100%;
  1019. background: #F7F7F7;
  1020. font-size: $font-size-28;
  1021. line-height: 40rpx;
  1022. color: #333333;
  1023. border-radius: 14rpx;
  1024. }
  1025. }
  1026. .register-fiexd{
  1027. width: 100%;
  1028. height: auto;
  1029. position: fixed;
  1030. bottom: 0;
  1031. left: 0;
  1032. z-index: 999;
  1033. background: #FFFFFF;
  1034. .register-bet{
  1035. width: 100%;
  1036. display: flex;
  1037. line-height: 60rpx;
  1038. height: 60rpx;
  1039. align-items: center;
  1040. flex-direction: column;
  1041. font-size: $font-size-28;
  1042. color: $color-system;
  1043. margin-top: 20rpx;
  1044. .icon-xiangxiajiantou{
  1045. transform:rotate(180deg);
  1046. }
  1047. text{
  1048. margin: 0 5rpx;
  1049. }
  1050. }
  1051. .register-agree{
  1052. display: flex;
  1053. flex-direction: column;
  1054. align-items: center;
  1055. margin: 32rpx 0;
  1056. .agree-text{
  1057. .checkbox{
  1058. float: left;
  1059. margin: 4rpx 6rpx 0 0;
  1060. color: #999999;
  1061. font-size: $font-size-32;
  1062. &.icon-gouxuan{
  1063. color: $color-system;
  1064. }
  1065. }
  1066. font-size: 20rpx;
  1067. line-height: 44rpx;
  1068. color: #999999;
  1069. text{
  1070. color:#0091FF;
  1071. }
  1072. }
  1073. }
  1074. }
  1075. .register-btn{
  1076. width: 702rpx;
  1077. height: 88rpx;
  1078. border-radius: 44rpx;
  1079. font-size: $font-size-28;
  1080. line-height: 88rpx;
  1081. color: #FFFFFF;
  1082. margin: 0 auto;
  1083. text-align: center;
  1084. background: $btn-confirm;
  1085. margin-top: 96rpx;
  1086. &.none{
  1087. background: #FFFFFF;
  1088. color: $text-color;
  1089. margin-top: 0;
  1090. }
  1091. &.sub{
  1092. margin-top: 0;
  1093. }
  1094. }
  1095. }
  1096. }
  1097. </style>