register.vue 30 KB

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