register.vue 30 KB

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