register-member.vue 29 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016
  1. <template>
  2. <view class="register">
  3. <view class="register-main" v-if="isRegisterStep">
  4. <view class="main-form-item">
  5. <view class="form-label">联系人</view>
  6. <input class="form-input" type="text" name="input" v-model.trim="params.linkMan" placeholder="请输入联系姓名" maxlength="6"/>
  7. </view>
  8. <view class="main-form-item">
  9. <view class="form-label">手机号</view>
  10. <input class="form-input phone" type="text" v-model.trim="params.bindMobile" placeholder="请输入联系人手机号" maxlength="11"/>
  11. <view class="form-btn" @click.stop="CheckMobile()">检测</view>
  12. </view>
  13. <view class="main-form-item">
  14. <view class="form-label">邮箱</view>
  15. <input class="form-input" type="text" name="input" v-model.trim="params.contractEmail" placeholder="请输入机构邮箱地址" maxlength="30"/>
  16. </view>
  17. <view class="main-form-item">
  18. <view class="form-label">机构名称</view>
  19. <input class="form-input" type="text" name="input" v-model.trim="params.name" placeholder="请输入机构名称" maxlength="30"/>
  20. </view>
  21. <view class="main-form-item">
  22. <view class="form-label">机构简称</view>
  23. <input class="form-input" type="text" name="input" v-model.trim="params.shortName" placeholder="请输入机构简称" maxlength="10"/>
  24. </view>
  25. <view class="main-form-item" @click="showMulLinkageThreePicker">
  26. <view class="form-label">机构地址</view>
  27. <view class="form-input"
  28. :class="addressText === '请选择机构所在地区' ? 'none' : ''">
  29. {{addressText}}
  30. </view>
  31. <view class="iconfont icon-xiayibu"></view>
  32. </view>
  33. <view class="main-form-item textarea">
  34. <view class="textarea show" v-if="isShowInput" @click="showTextareaFocus">{{params.address ? params.address :'详细地址:如道路、门牌号、小区等'}}</view>
  35. <textarea v-else
  36. class="textarea"
  37. type="text"
  38. v-model="params.address"
  39. placeholder="详细地址:如道路、门牌号、小区等"
  40. placeholder-class="placeholder"
  41. maxlength="35"
  42. @input="onTextareaInput"
  43. @blur="hideTextareaFocus"
  44. :class="isShowInput ? '':''"
  45. />
  46. </view>
  47. <view class="main-form-item">
  48. <view class="form-label lang">营业执照编号</view>
  49. <input class="form-input lang" type="text" name="input" v-model="params.socialCreditCode" placeholder="请输入社会信用统一代码" maxlength="18"/>
  50. </view>
  51. <view class="main-form-item file">
  52. <view class="main-form-upload">
  53. <view class="label">营业执照</view>
  54. <view class="upload-picture">
  55. <view class="upload-none" v-if="params.businessLicense === ''" @click="UploadPicture(1)">
  56. <text class="iconfont icon-jiahao"></text><text class="upload-text">营业执照</text>
  57. </view>
  58. <view class="upload-image" v-else>
  59. <image :src="params.businessLicense" mode="" @click="ShowPreviewImage(1)"></image>
  60. <view class="upload-del" @click="DeletePicture(1)">
  61. <text class='iconfont icon-shanchu1'></text>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="main-form-upload">
  67. <view class="label">门头照</view>
  68. <view class="upload-picture">
  69. <view class="upload-none" v-if="params.shopPhoto === ''" @click="UploadPicture(2)">
  70. <text class="iconfont icon-jiahao"></text><text class="upload-text">门头照</text>
  71. </view>
  72. <view class="upload-image" v-else>
  73. <image :src="params.shopPhoto" mode="" @click="ShowPreviewImage(2)"></image>
  74. <view class="upload-del" @click="DeletePicture(2)">
  75. <text class='iconfont icon-shanchu1'></text>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="main-form-item picker">
  82. <view class="form-label">机构类型</view>
  83. <radio-group @change="bindPickerChange">
  84. <label class="label-radio" v-for="(item, index) in radioGroup1" :key="item.value">
  85. <radio class="row-radio" :value="item.value" :checked="index === current" color='#E15616'/>
  86. <view class="row-text">{{item.name}}</view>
  87. </label>
  88. </radio-group>
  89. </view>
  90. <view class="main-form-item picker" v-if="params.firstClubType == 1">
  91. <view class="picker-radio">
  92. <view class="secondTyperadio" v-for="(item,index) in beautyList" :key="item.value" @click="radioChange(item)" :class="item.value==params.secondClubType?'active':''">
  93. <view class="secondRadio" >{{item.name}}</view>
  94. </view>
  95. </view>
  96. </view>
  97. <view class="main-form-item file" v-if="params.firstClubType == 1">
  98. <view class="main-form-upload">
  99. <view class="label">资质</view>
  100. <view class="upload-picture">
  101. <view class="upload-none" v-if="params.medicalPracticeLicense === ''" @click="UploadPicture(3)">
  102. <text class="iconfont icon-jiahao"></text><text class="upload-text">医疗执业许可证</text>
  103. </view>
  104. <view class="upload-image" v-else>
  105. <image :src="params.medicalPracticeLicense" mode="" @click="ShowPreviewImage(3)"></image>
  106. <view class="upload-del" @click="DeletePicture(3)">
  107. <text class='iconfont icon-shanchu1'></text>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. <view class="main-form-item none" v-if="params.secondClubType == 2 || params.secondClubType == 3">
  114. <view class="form-label none">科室</view>
  115. <textarea class="textarea-ke" placeholder="请填写经营的科室,至少三个,用逗号隔开" placeholder-style="placeholder" v-model="params.department" maxlength="16"></textarea>
  116. </view>
  117. <view class="main-form-item none" v-if="params.firstClubType == 1">
  118. <view class="form-label none">主营内容</view>
  119. <view class="form-checkbox-group">
  120. <checkbox-group @change="ChooseMaleLike" >
  121. <label class="item" v-for="(item, index) in mentuzCampList" :key="index" :class="{on: item.checked}">
  122. <checkbox class="item-checkbox" :value="item.value" color="#E15616" style="transform:scale(0.7)" :checked="item.checked"></checkbox>
  123. <text class="item-text">{{item.name}}</text>
  124. </label>
  125. </checkbox-group>
  126. </view>
  127. <view class="form-checkbox-input">
  128. <input class="checkbox-input" type="text" v-model="customItemValue" placeholder="请输入其他自定义品项目" maxlength="5"/>
  129. <view class="checkbox-btn" @click.stop="addCustomItem">确认添加</view>
  130. </view>
  131. </view>
  132. <view class="main-form-item none" v-if="params.firstClubType == 2">
  133. <view class="form-label none">主营内容</view>
  134. <view class="form-checkbox-group">
  135. <checkbox-group @change="ChooseMaleLike">
  136. <label class="item" v-for="(item, index) in medicaCampList" :key="index" :class="{on: item.checked}">
  137. <checkbox class="item-checkbox" :value="item.value" color="#E15616" style="transform:scale(0.7)" :checked="item.checked"></checkbox>
  138. <text class="item-text">{{item.name}}</text>
  139. </label>
  140. </checkbox-group>
  141. </view>
  142. <view class="form-checkbox-input">
  143. <input class="checkbox-input" type="text" v-model="customItemValue" placeholder="请输入其他自定义品项目" maxlength="5"/>
  144. <view class="checkbox-btn" @click.stop="addCustomItem">确认添加</view>
  145. </view>
  146. </view>
  147. <view class="register-fiexd clearfix" :style="{paddingBottom:isIphoneX ? '68rpx':''}">
  148. <view class="register-agree">
  149. <view class="agree-text" @tap.stop="agreeCheck()">
  150. <button class="checkbox iconfont" :class="[isCheck ?'icon-gouxuan':'icon-weigouxuan']"></button>
  151. 我已阅读并同意
  152. <text @click.stop="this.$api.navigateTo('/pages/service/service?id=1036&title=机构协议')">《机构协议》</text>
  153. <text @click.stop="this.$api.navigateTo('/pages/service/service?id=1023&title=用户协议')">《用户协议》</text>及
  154. <text @click.stop="this.$api.navigateTo('/pages/service/service?id=1013&title=隐私权政策')">《隐私权政策》</text>
  155. </view>
  156. </view>
  157. <view class="register-row">
  158. <view class="register-btn sub" :class="isSubLoading ? 'disabled' : ''" @click.stop="SubmitRegister">确定</view>
  159. </view>
  160. </view>
  161. </view>
  162. <view class="register-main" v-else>
  163. <view class="main-form-item">
  164. <view class="form-label">联系人</view>
  165. <view class="form-text"> {{ clubInfo.linkMan }} </view>
  166. </view>
  167. <view class="main-form-item">
  168. <view class="form-label">手机号</view>
  169. <view class="form-text">{{ clubInfo.bindMobile }}</view>
  170. </view>
  171. <view class="main-form-item">
  172. <view class="form-label">邮箱</view>
  173. <view class="form-text">{{ clubInfo.contractEmail }}</view>
  174. </view>
  175. <view class="main-form-item">
  176. <view class="form-label">机构名称</view>
  177. <view class="form-text">{{ clubInfo.name }}</view>
  178. </view>
  179. <view class="main-form-item">
  180. <view class="form-label">机构简称</view>
  181. <view class="form-text">{{ clubInfo.shortName }}</view>
  182. </view>
  183. <view class="main-form-item">
  184. <view class="form-label">机构地址</view>
  185. <view class="form-input">{{ clubInfo.provincialAddress }}</view>
  186. </view>
  187. <view class="main-form-item">
  188. <view class="form-textarea">{{ clubInfo.address }}</view>
  189. </view>
  190. <view class="main-form-item">
  191. <view class="form-label lang">营业执照编号</view>
  192. <view class="form-input lang">{{ clubInfo.socialCreditCode }}</view>
  193. </view>
  194. <view class="main-form-item file">
  195. <view class="main-form-upload">
  196. <view class="label">营业执照</view>
  197. <view class="upload-picture">
  198. <view class="upload-image"><image :src="clubInfo.businessLicense" mode="" @click="ShowPreviewImage(1)"></image></view>
  199. </view>
  200. </view>
  201. <view class="main-form-upload">
  202. <view class="label">门头照</view>
  203. <view class="upload-picture">
  204. <view class="upload-image"><image :src="clubInfo.shopPhoto" mode="" @click="ShowPreviewImage(2)"></image></view>
  205. </view>
  206. </view>
  207. </view>
  208. <view class="main-form-item">
  209. <view class="form-label">机构类型</view>
  210. <view class="form-text">
  211. {{ clubInfo.firstClubType | FirstFormat }}
  212. -
  213. {{ clubInfo.secondClubType | TwoFormat }}
  214. </view>
  215. </view>
  216. <view class="main-form-item file" v-if="clubInfo.firstClubType == 1">
  217. <view class="main-form-upload">
  218. <view class="label">资质</view>
  219. <view class="upload-picture">
  220. <view class="upload-image"><image :src="clubInfo.medicalPracticeLicense" mode="" @click="ShowPreviewImage(2)"></image></view>
  221. </view>
  222. </view>
  223. </view>
  224. <view class="main-form-item" v-if="clubInfo.secondClubType == 2 || clubInfo.secondClubType == 3">
  225. <view class="form-label">科室</view>
  226. <view class="form-text">{{ clubInfo.department }}</view>
  227. </view>
  228. <view class="main-form-item none">
  229. <view class="form-label none">主营内容</view>
  230. <view class="form-checkbox-group">
  231. <view class="form-table-item" v-for="(item, index) in showMainProductList" :key="index">
  232. {{ item.name }}
  233. </view>
  234. </view>
  235. </view>
  236. <view class="register-fiexd clearfix" :style="{paddingBottom:isIphoneX ? '68rpx':''}">
  237. <view class="register-row">
  238. <button class="register-btn sub" @tap="ShareRegister">分享</button>
  239. </view>
  240. </view>
  241. </view>
  242. <!-- 地址Pciker -->
  243. <city-Picker :themeColor="themeColor"
  244. ref="CityPicker"
  245. :pickerValueDefault="cityPickerValueDefault"
  246. @onCancel="onCancel"
  247. @onConfirm="onConfirm">
  248. </city-Picker>
  249. <!-- 分享弹窗 -->
  250. <shareModel v-if="isShareModal" :bindId="bindId" @shareConfirm ='onShareAppMessage'></shareModel>
  251. </view>
  252. </template>
  253. <script>
  254. import { beautyList,mentuzCampNullList,medicaCampNullList } from '@/common/json/data.json.js' //本地数据
  255. import shareModel from '@/components/cm-module/modelAlert/shareModel.vue' //分享弹窗
  256. import { uploadFileImage } from "@/services/public.js"
  257. export default{
  258. components:{
  259. shareModel
  260. },
  261. data() {
  262. return{
  263. isRegisterStep:true,
  264. isSubLoading:false,
  265. isIphoneX:this.$store.state.isIphone,
  266. isCheck:false,
  267. clubUserId:0,
  268. isShowInput:true,
  269. isShareModal:false,
  270. isDepartment:false,
  271. textareaFocus:false,
  272. beautyList:beautyList,
  273. mentuzCampList:mentuzCampNullList,
  274. medicaCampList:medicaCampNullList,
  275. addressText:'请选择机构所在地区',
  276. params:{
  277. userId:0,
  278. name:'',
  279. shortName:'',
  280. linkMan:'',
  281. bindMobile:'',
  282. contractEmail:'',
  283. socialCreditCode:'',
  284. isAgreed:0,
  285. townId:'', //区ID
  286. cityId:'', //区ID
  287. provinceId:'', //区ID
  288. addressDetail: '', //地址
  289. businessLicense:'', //营业执照
  290. shopPhoto:'', //门头照
  291. medicalPracticeLicense:'',//资质
  292. firstClubType:1, //1医美;2生美
  293. secondClubType:1, //1诊所;2门诊;3医院
  294. department:'',//科室
  295. mainProduct:'',
  296. },
  297. clubInfo:{
  298. linkMan:'',
  299. bindMobile:'',
  300. userId:0,
  301. },
  302. radioGroup1:[
  303. {name:'医美',value:1},
  304. {name:'生美',value:2}
  305. ],
  306. current:0,
  307. bindId:0,
  308. customItemValue:'', //自定义项目
  309. showMainProductList:[]
  310. }
  311. },
  312. filters: {
  313. FirstFormat:function(type) {//处理金额
  314. let name='';
  315. switch(type){
  316. case 1: name = '医美'; break;
  317. case 2: name = '生美'; break;
  318. }
  319. return name;
  320. },
  321. TwoFormat:function(type) {//处理金额
  322. let text='';
  323. switch(type){
  324. case 1: text = '诊所'; break;
  325. case 2: text = '门诊'; break;
  326. case 3: text = '医院'; break;
  327. }
  328. return text;
  329. },
  330. },
  331. onLoad(option) {
  332. this.$api.getStorage().then((resolve) =>{
  333. this.params.userId = resolve.userId ? resolve.userId : 0
  334. })
  335. },
  336. computed: {
  337. },
  338. methods:{
  339. CheckMobile(){//检测手机是否能注册
  340. if( this.params.bindMobile == ''){
  341. this.$util.msg('请输入手机号',2000);
  342. return
  343. }
  344. if(!this.$reg.isMobile(this.params.bindMobile)){
  345. this.$util.msg('请输入正确的手机号',2000);
  346. return
  347. }
  348. this.SellerService.SellerClubCheck({bindMobile:this.params.bindMobile})
  349. .then(response =>{
  350. this.$util.msg(response.data,2000);
  351. })
  352. .catch(error =>{
  353. this.$util.msg(error.msg,2000);
  354. })
  355. },
  356. SubmitRegister(){//提交注册
  357. if(this.isSubLoading){ return; }
  358. if( this.params.linkMan == ''){
  359. this.$util.msg('请输入联系人姓名',2000);
  360. return
  361. }
  362. if( this.params.bindMobile == ''){
  363. this.$util.msg('请输入联系人手机号',2000);
  364. return
  365. }
  366. if(!this.$reg.isMobile(this.params.bindMobile)){
  367. this.$util.msg('手机格式不正确',2000);
  368. return
  369. }
  370. if( this.params.contractEmail == ''){
  371. this.$util.msg('请输入邮箱地址',2000);
  372. return
  373. }
  374. if(!this.$reg.isEmail(this.params.contractEmail)){
  375. this.$util.msg('请输入正确的邮箱地址',2000);
  376. return
  377. }
  378. if( this.params.name == ''){
  379. this.$util.msg('请输入机构名称',2000);
  380. return
  381. }
  382. if( this.params.townId == ''){
  383. this.$util.msg('请选择机构地址',2000);
  384. return
  385. }
  386. if( this.params.address == ''){
  387. this.$util.msg('请填写机构详细地址',2000);
  388. return
  389. }
  390. if( this.params.businessLicense == ''){
  391. this.$util.msg('请上传您的营业执照',2000);
  392. return
  393. }
  394. if( this.params.firstClubType == 1){
  395. if( this.params.medicalPracticeLicense == ''){
  396. this.$util.msg('请上传您的医疗资质',2000);
  397. return
  398. }
  399. }
  400. if(this.params.firstClubType!=0){
  401. console.log(this.params.mainProduct)
  402. if(this.params.mainProduct == ''){
  403. this.$util.msg('请选择住机构主营内容',2000);
  404. return
  405. }
  406. }
  407. const mainproList = []
  408. if(this.params.firstClubType == 1){
  409. this.mentuzCampList.forEach(item =>{
  410. mainproList.push(item.name)
  411. })
  412. }else{
  413. this.medicaCampList.forEach(item =>{
  414. mainproList.push(item.name)
  415. })
  416. }
  417. this.params.mainProduct = mainproList.join('/')
  418. if(this.params.isAgreed == 0){
  419. this.$util.msg('请勾选同意协议',2000);
  420. return
  421. }
  422. this.isSubLoading = true;
  423. this.SellerService.SellerClubTemporary(this.params).then(response =>{
  424. this.bindId = response.data
  425. setTimeout(()=>{
  426. this.isRegisterStep = false
  427. this.GetClubUserInfo(this.bindId)
  428. },2000)
  429. }).catch(error =>{
  430. this.$util.msg(error.msg,2000);
  431. })
  432. },
  433. GetClubUserInfo(id){
  434. this.UserService.UseRregisterTemporaryInfo({id:id})
  435. .then(response =>{
  436. this.clubInfo = response.data
  437. this.isSubLoading = false;
  438. this.showMainProductList = this.setNewMainpro(this.clubInfo.mainProduct)
  439. })
  440. .catch(error =>{
  441. this.isSubLoading = false;
  442. this.$util.msg(error.msg,2000)
  443. })
  444. },
  445. ShareRegister(){//点击分享
  446. this.isShareModal = true
  447. },
  448. agreeCheck() {//勾选协议
  449. this.isCheck = !this.isCheck
  450. if(this.isCheck){
  451. this.params.isAgreed = 1
  452. }else{
  453. this.params.isAgreed = 0
  454. }
  455. },
  456. showMulLinkageThreePicker() {//三级地址联动
  457. this.isShowInput = true
  458. this.$refs.CityPicker.show()
  459. },
  460. showTextareaFocus(){//文本框获取焦点
  461. this.isShowInput = false
  462. this.textareaFocus = true
  463. },
  464. hideTextareaFocus(){//文本框失去焦点
  465. this.isShowInput = true
  466. this.textareaFocus = false
  467. },
  468. onTextareaInput(e){//地址详细信息
  469. this.params.address = e.detail.value;
  470. },
  471. onConfirm(e) {//获取选择的地址信息
  472. console.log('地址',e);
  473. this.addressText = e.name;
  474. this.params.townId = e.townCode;
  475. this.params.cityId = e.cityCode;
  476. this.params.provinceId = e.provinceCode;
  477. },
  478. UploadPicture(NUM) {//图片上传
  479. uploadFileImage().then(res =>{
  480. switch(NUM){
  481. case 1:
  482. this.params.businessLicense = JSON.parse(res.data).data
  483. break;
  484. case 2:
  485. this.params.shopPhoto = JSON.parse(res.data).data
  486. break;
  487. case 3:
  488. this.params.medicalPracticeLicense = JSON.parse(res.data).data
  489. break;
  490. }
  491. })
  492. },
  493. DeletePicture(NUM){//删除照片
  494. switch(NUM){
  495. case 1:
  496. this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
  497. this.params.businessLicense = ''
  498. })
  499. break;
  500. case 2:
  501. this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
  502. this.params.shopPhoto = ''
  503. })
  504. break;
  505. case 3:
  506. this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
  507. this.params.medicalPracticeLicense = ''
  508. })
  509. break;
  510. }
  511. },
  512. ShowPreviewImage(NUM) {//预览照片
  513. switch(NUM){
  514. case 1:
  515. this.myPreviewImageFn(this.businessLicense)
  516. break;
  517. case 2:
  518. this.myPreviewImageFn(this.shopPhoto)
  519. break;
  520. case 3:
  521. this.myPreviewImageFn(this.medicalPracticeLicense)
  522. break;
  523. }
  524. },
  525. myPreviewImageFn(url){//预览证件照
  526. this.isPreviewImage = true
  527. let mentuzArray = []
  528. mentuzArray.push(url)
  529. uni.previewImage({
  530. urls: mentuzArray,
  531. current: 0
  532. });
  533. },
  534. setNewMainpro(arr){//回显处理主营内容
  535. let _ARRAY = []
  536. arr.split('/').forEach((item,index) =>{
  537. let _OBJ = {value:(index+1).toString(),name:item,checked:true}
  538. _ARRAY.push(_OBJ)
  539. })
  540. return _ARRAY
  541. },
  542. bindPickerChange(e) {//选择机构类型
  543. this.params.firstClubType = Number(e.target.value);
  544. },
  545. radioChange(item) {//选择
  546. this.params.secondClubType = item.value;
  547. if( this.params.secondClubType == 2 || this.params.secondClubType == 3){
  548. this.isDepartment = true
  549. }else{
  550. this.isDepartment = false
  551. }
  552. for (let i = 0; i < this.beautyList.length; i++) {
  553. if (this.beautyList[i].value === this.params.secondClubType) {
  554. break;
  555. }
  556. }
  557. },
  558. ChooseMaleLike(e){
  559. switch(this.params.firstClubType){
  560. case 1:
  561. this.params.mainProduct = this.CheckLikes(e,this.mentuzCampList)
  562. break;
  563. case 2:
  564. this.params.mainProduct = this.CheckLikes(e,this.medicaCampList)
  565. break;
  566. }
  567. },
  568. CheckLikes(e,list){
  569. let values = e.detail.value
  570. let arr = []
  571. list.forEach(item => {
  572. if(values.indexOf(item.value) >= 0){
  573. this.$set(item,'checked',true)
  574. arr.push(item.name)
  575. }else{
  576. this.$set(item,'checked',false)
  577. }
  578. })
  579. return arr.join('/')
  580. },
  581. addCustomItem(){
  582. if(this.customItemValue==''){
  583. this.$util.msg('请输入自定义主营内容',2000);
  584. }else{
  585. if(this.params.firstClubType == 1){
  586. let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue,checked:true}
  587. if(this.CheckedArray(this.customItemValue,this.mentuzCampList)){
  588. this.$util.msg('主营内容已存在!',2000)
  589. }else{
  590. this.mentuzCampList.push(item)
  591. }
  592. }else{
  593. let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue,checked:true}
  594. if(this.CheckedArray(this.customItemValue,this.medicaCampList)){
  595. this.$util.msg('主营内容已存在!',2000)
  596. }else{
  597. this.medicaCampList.push(item)
  598. }
  599. }
  600. }
  601. },
  602. CheckedArray(content,arr){//判断主营内容是否已存在
  603. console.log(content,arr)
  604. for(var i in arr){
  605. if(arr[i].name == content){
  606. return true;
  607. }
  608. }
  609. return false;
  610. },
  611. },
  612. onShareAppMessage(res){//分享转发
  613. this.isShareModal = false
  614. if (res.from === 'button') { // 来自页面内转发按钮
  615. }
  616. return {
  617. title: '请确认资料完成注册~',
  618. path: `/pages/login/binding?bindId=${this.bindId}&Identity=2`,
  619. imageUrl:'https://static.caimei365.com/app/img/icon/icon-addShare@3x.png'
  620. }
  621. },
  622. onShow() {
  623. }
  624. }
  625. </script>
  626. <style lang="scss">
  627. page{
  628. height: auto;
  629. }
  630. .register{
  631. width: 100%;
  632. position: relative;
  633. box-sizing: border-box;
  634. padding-bottom: 332rpx;
  635. .register-main{
  636. width: 100%;
  637. height: auto;
  638. box-sizing: border-box;
  639. padding: 0 24rpx;
  640. margin-top: 24rpx;
  641. .main-form-item{
  642. width: 100%;
  643. height: 88rpx;
  644. box-sizing: border-box;
  645. padding: 13rpx 0;
  646. border-bottom: 1px solid #e1e1e1;
  647. margin-top: 10rpx;
  648. position: relative;
  649. &.none{
  650. border-bottom: none;
  651. height: auto;
  652. }
  653. &.file{
  654. height: 273rpx;
  655. border-bottom: none;
  656. .main-form-upload{
  657. width: 50%;
  658. height: 100%;
  659. float: left;
  660. .label{
  661. width: 100%;
  662. float: left;
  663. height: 56rpx;
  664. line-height: 56rpx;
  665. font-size: $font-size-28;
  666. text-align: left;
  667. color: #999999;
  668. }
  669. .upload-picture{
  670. width: 100%;
  671. height: 180rpx;
  672. float: left;
  673. margin-top: 17rpx;
  674. .upload-none{
  675. width: 200rpx;
  676. height: 180rpx;
  677. border-radius: 6rpx;
  678. border:1px solid #e1e1e1;
  679. box-sizing: border-box;
  680. padding-top: 64rpx;
  681. .icon-jiahao{
  682. display: inline-block;
  683. width: 100%;
  684. text-align: center;
  685. line-height: 48rpx;
  686. font-size: 40rpx;
  687. color: #b2b2b2;
  688. }
  689. .upload-text{
  690. display: inline-block;
  691. width: 100%;
  692. text-align: center;
  693. line-height: 40rpx;
  694. font-size: $font-size-24;
  695. color: #b2b2b2;
  696. }
  697. }
  698. .upload-image{
  699. width: 200rpx;
  700. height: 180rpx;
  701. border-radius: 6rpx;
  702. border:1px solid #e1e1e1;
  703. box-sizing: border-box;
  704. position: relative;
  705. image{
  706. width: 200rpx;
  707. height: 180rpx;
  708. display: block;
  709. }
  710. .upload-del{
  711. width: 40rpx;
  712. height: 40rpx;
  713. position: absolute;
  714. top: -20rpx;
  715. right: -20rpx;
  716. line-height: 40rpx;
  717. text-align: center;
  718. .iconfont{
  719. font-size: $font-size-32;
  720. color: #999999;
  721. }
  722. }
  723. }
  724. }
  725. }
  726. }
  727. &.picker{
  728. border-bottom: none;
  729. .label-radio{
  730. margin-left: 30rpx;
  731. font-size: $font-size-28;
  732. float: left;
  733. }
  734. .row-radio{
  735. float: left;
  736. transform: scale(0.7);
  737. }
  738. .row-text{
  739. text-align: center;
  740. float: left;
  741. font-size: $font-size-28;
  742. }
  743. .picker-radio{
  744. box-sizing: border-box;
  745. padding-left: 180rpx;
  746. .secondTyperadio{
  747. border: 2rpx solid #e1e1e1;
  748. display: inline-block;
  749. font-size: 26rpx;
  750. color: #999999;
  751. padding: 0 24rpx;
  752. border-radius: 22rpx;
  753. line-height: 42rpx;
  754. margin-right: 56rpx;
  755. float: left;
  756. &.active{
  757. border: 2rpx solid #ffe6dc;
  758. color: $color-system;
  759. }
  760. }
  761. }
  762. }
  763. &.textarea{
  764. height: 142rpx;
  765. .textarea{
  766. width: 100%;
  767. height: 142rpx;
  768. box-sizing: border-box;
  769. font-size: $font-size-28;
  770. color: $text-color;
  771. z-index: 1;
  772. }
  773. .textarea.hide{
  774. opacity: 0;
  775. }
  776. .textarea.show{
  777. color: #999999;
  778. }
  779. }
  780. .textarea-ke{
  781. width: 100%;
  782. height: 160rpx;
  783. border-radius: 6rpx;
  784. border: 1px solid #e1e1e1;
  785. font-size: $font-size-28;
  786. box-sizing: border-box;
  787. padding: 15rpx 20rpx;
  788. }
  789. .form-textarea{
  790. font-size: $font-size-28;
  791. color: #333333;
  792. }
  793. .form-label{
  794. width: 148rpx;
  795. float: left;
  796. height: 100%;
  797. line-height: 56rpx;
  798. font-size: $font-size-28;
  799. text-align: left;
  800. color: #999999;
  801. &.lang{
  802. width: 188rpx;
  803. }
  804. &.none{
  805. width: 100%;
  806. }
  807. }
  808. .form-input{
  809. width: 554rpx;
  810. height: 56rpx;
  811. line-height: 56rpx;
  812. font-size: $font-size-28;
  813. text-align: left;
  814. color: #333333;
  815. float: left;
  816. &.lang{
  817. width: 514rpx;
  818. }
  819. &.phone{
  820. width: 418rpx;
  821. }
  822. &.none{
  823. color: #999999;
  824. }
  825. }
  826. .form-text{
  827. width: 554rpx;
  828. height: 56rpx;
  829. line-height: 56rpx;
  830. font-size: $font-size-28;
  831. text-align: left;
  832. color: #333333;
  833. float: left;
  834. }
  835. .form-btn{
  836. width: 136rpx;
  837. height: 56rpx;
  838. background: $btn-confirm;
  839. color: #FFFFFF;
  840. font-size: $font-size-28;
  841. text-align: center;
  842. border-radius: 28rpx;
  843. line-height: 56rpx;
  844. float: left;
  845. }
  846. .icon-xiayibu{
  847. width: 80rpx;
  848. height: 80rpx;
  849. position: absolute;
  850. right: 0;
  851. top: 0;
  852. line-height: 80rpx;
  853. text-align: center;
  854. color: #b2b2b2;
  855. }
  856. .form-checkbox-group {
  857. width: 100%;
  858. display: flex;
  859. flex-flow: row wrap;
  860. justify-content: space-between;
  861. align-items: center;
  862. &.btn{
  863. margin: 0 auto;
  864. margin-left: 116rpx;
  865. }
  866. .row-input{
  867. display: flex;
  868. width: 220rpx;
  869. height: 40rpx;
  870. padding: 24rpx;
  871. text-align: left;
  872. border-radius: 10rpx;
  873. font-size: $font-size-28;
  874. color: $text-color;
  875. }
  876. .confirm-btn{
  877. width: 160rpx;
  878. height: 64rpx;
  879. border-radius: 45rpx;
  880. line-height: 64rpx;
  881. text-align: center;
  882. background:#ffe6dc;
  883. color: $color-system;
  884. &.other{
  885. width: 213rpx;
  886. }
  887. }
  888. .item {
  889. height: 60rpx;
  890. font-size:$font-size-28;
  891. line-height: 60rpx;
  892. border-radius:10rpx;
  893. margin-right: 20rpx;
  894. margin-bottom: 10rpx;
  895. box-sizing: border-box;
  896. float: left;
  897. }
  898. .item-text{
  899. display: inline-block;
  900. font-size: 26rpx;
  901. color: #999999;
  902. border-radius: 28rpx;
  903. line-height: 50rpx;
  904. }
  905. .on {
  906. .item-text{
  907. border-color: $color-system;
  908. color:$color-system;
  909. }
  910. }
  911. .form-table-item{
  912. height: 48rpx;
  913. padding: 0 32rpx;
  914. border: 1px solid #b2b2b2;
  915. text-align: center;
  916. font-size: $font-size-28;
  917. color: #333333;
  918. float: left;
  919. line-height: 48rpx;
  920. border-radius: 26rpx;
  921. margin-right: 12rpx;
  922. margin-top: 20rpx;
  923. }
  924. }
  925. .form-checkbox-input{
  926. width: 100%;
  927. height: 64rpx;
  928. margin-top: 20rpx;
  929. .checkbox-input{
  930. width: 518rpx;
  931. height: 64rpx;
  932. box-sizing: border-box;
  933. text-align: left;
  934. font-size: $font-size-26;
  935. color: #333333;
  936. line-height: 64rpx;
  937. float: left;
  938. border: 1px solid #e1e1e1;
  939. border-radius: 32rpx;
  940. padding: 0 20rpx;
  941. }
  942. .checkbox-btn{
  943. width: 160rpx;
  944. height: 64rpx;
  945. border-radius: 32rpx;
  946. background-color: #ffe6dc;
  947. line-height: 64rpx;
  948. text-align: center;
  949. color: #e15616;
  950. font-size: $font-size-28;
  951. float: right;
  952. }
  953. }
  954. }
  955. .register-fiexd{
  956. width: 100%;
  957. height: auto;
  958. padding: 20rpx 0;
  959. position: fixed;
  960. bottom: 0;
  961. left: 0;
  962. z-index: 888;
  963. background: #FFFFFF;
  964. .register-agree{
  965. display: flex;
  966. flex-direction: column;
  967. align-items: center;
  968. margin:0 0 32rpx 0;
  969. .agree-text{
  970. .checkbox{
  971. float: left;
  972. margin: 4rpx 6rpx 0 0;
  973. color: #999999;
  974. font-size: $font-size-32;
  975. &.icon-gouxuan{
  976. color: $color-system;
  977. }
  978. }
  979. font-size: 20rpx;
  980. line-height: 44rpx;
  981. color: #999999;
  982. text{
  983. color:#0091FF;
  984. }
  985. }
  986. }
  987. }
  988. .register-btn{
  989. width: 702rpx;
  990. height: 88rpx;
  991. border-radius: 44rpx;
  992. font-size: $font-size-28;
  993. line-height: 88rpx;
  994. color: #FFFFFF;
  995. margin: 0 auto;
  996. text-align: center;
  997. background: $btn-confirm;
  998. margin-top: 96rpx;
  999. &.none{
  1000. background: #FFFFFF;
  1001. color: $text-color;
  1002. margin-top: 0;
  1003. }
  1004. &.sub{
  1005. margin-top: 0;
  1006. }
  1007. }
  1008. }
  1009. }
  1010. </style>