register-member.vue 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012
  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/organagree')">《机构协议》</text>
  153. <text @click.stop="this.$api.navigateTo('/pages/service/useragree')">《用户协议》</text>及
  154. <text @click.stop="this.$api.navigateTo('/pages/service/privacyagree')">《隐私权政策》</text>
  155. </view>
  156. </view>
  157. <view class="register-row">
  158. <view class="register-btn sub" @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" :orderID="clubInfo.userId" @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. isIphoneX:this.$store.state.isIphone,
  265. isCheck:false,
  266. clubUserId:0,
  267. isShowInput:true,
  268. isShareModal:false,
  269. isDepartment:false,
  270. textareaFocus:false,
  271. beautyList:beautyList,
  272. mentuzCampList:mentuzCampNullList,
  273. medicaCampList:medicaCampNullList,
  274. addressText:'请选择机构所在地区',
  275. params:{
  276. userId:0,
  277. name:'',
  278. shortName:'',
  279. linkMan:'',
  280. bindMobile:'',
  281. contractEmail:'',
  282. socialCreditCode:'',
  283. isAgreed:0,
  284. townId:'', //区ID
  285. cityId:'', //区ID
  286. provinceId:'', //区ID
  287. addressDetail: '', //地址
  288. businessLicense:'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg', //营业执照
  289. shopPhoto:'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg', //门头照
  290. medicalPracticeLicense:'https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2306696130,3636777462&fm=26&gp=0.jpg',//资质
  291. firstClubType:1, //1医美;2生美
  292. secondClubType:1, //1诊所;2门诊;3医院
  293. department:'',//科室
  294. mainProduct:'',
  295. },
  296. clubInfo:{
  297. linkMan:'',
  298. bindMobile:'',
  299. userId:0,
  300. },
  301. radioGroup1:[
  302. {name:'医美',value:1},
  303. {name:'生美',value:2}
  304. ],
  305. current:0,
  306. customItemValue:'', //自定义项目
  307. showMainProductList:[]
  308. }
  309. },
  310. filters: {
  311. FirstFormat:function(type) {//处理金额
  312. let name='';
  313. switch(type){
  314. case 1: name = '医美'; break;
  315. case 2: name = '生美'; break;
  316. }
  317. return name;
  318. },
  319. TwoFormat:function(type) {//处理金额
  320. let text='';
  321. switch(type){
  322. case 1: text = '诊所'; break;
  323. case 2: text = '门诊'; break;
  324. case 3: text = '医院'; break;
  325. }
  326. return text;
  327. },
  328. },
  329. onLoad(option) {
  330. this.$api.getStorage().then((resolve) =>{
  331. this.params.userId = resolve.userId ? resolve.userId : 0
  332. })
  333. },
  334. computed: {
  335. },
  336. methods:{
  337. CheckMobile(){//检测手机是否能注册
  338. if( this.params.bindMobile == ''){
  339. this.$util.msg('请输入手机号',2000);
  340. return
  341. }
  342. if(!this.$reg.isMobile(this.params.bindMobile)){
  343. this.$util.msg('请输入正确的手机号',2000);
  344. return
  345. }
  346. this.SellerService.SellerClubCheck({bindMobile:this.params.bindMobile})
  347. .then(response =>{
  348. this.$util.msg(response.data,2000);
  349. })
  350. .catch(error =>{
  351. this.$util.msg(error.msg,2000);
  352. })
  353. },
  354. SubmitRegister(){//提交注册
  355. if( this.params.linkMan == ''){
  356. this.$util.msg('请输入联系人姓名',2000);
  357. return
  358. }
  359. if( this.params.bindMobile == ''){
  360. this.$util.msg('请输入联系人手机号',2000);
  361. return
  362. }
  363. if(!this.$reg.isMobile(this.params.bindMobile)){
  364. this.$util.msg('手机格式不正确',2000);
  365. return
  366. }
  367. if( this.params.contractEmail == ''){
  368. this.$util.msg('请输入邮箱地址',2000);
  369. return
  370. }
  371. if(!this.$reg.isEmail(this.params.contractEmail)){
  372. this.$util.msg('请输入正确的邮箱地址',2000);
  373. return
  374. }
  375. if( this.params.name == ''){
  376. this.$util.msg('请输入机构名称',2000);
  377. return
  378. }
  379. if( this.params.townId == ''){
  380. this.$util.msg('请选择机构地址',2000);
  381. return
  382. }
  383. if( this.params.address == ''){
  384. this.$util.msg('请填写机构详细地址',2000);
  385. return
  386. }
  387. if( this.params.businessLicense == ''){
  388. this.$util.msg('请上传您的营业执照',2000);
  389. return
  390. }
  391. if( this.params.firstClubType == 1){
  392. if( this.params.medicalPracticeLicense == ''){
  393. this.$util.msg('请上传您的医疗资质',2000);
  394. return
  395. }
  396. }
  397. if(this.params.firstClubType!=0){
  398. console.log(this.params.mainProduct)
  399. if(this.params.mainProduct == ''){
  400. this.$util.msg('请选择住机构主营内容',2000);
  401. return
  402. }
  403. }
  404. const mainproList = []
  405. if(this.params.firstClubType == 1){
  406. this.mentuzCampList.forEach(item =>{
  407. mainproList.push(item.name)
  408. })
  409. }else{
  410. this.medicaCampList.forEach(item =>{
  411. mainproList.push(item.name)
  412. })
  413. }
  414. this.params.mainProduct = mainproList.join('/')
  415. if(this.params.isAgreed == 0){
  416. this.$util.msg('请勾选同意协议',2000);
  417. return
  418. }
  419. this.SellerService.SellerClubTemporary(this.params).then(response =>{
  420. this.clubInfo.userId = response.data
  421. setTimeout(()=>{
  422. this.isRegisterStep = false
  423. this.GetClubUserInfo(this.clubInfo.userId)
  424. },2000)
  425. }).catch(error =>{
  426. this.$util.msg(error.msg,2000);
  427. })
  428. },
  429. GetClubUserInfo(id){
  430. this.UserService.UseRregisterTemporaryInfo({id:id})
  431. .then(response =>{
  432. this.clubInfo = response.data
  433. this.showMainProductList = this.setNewMainpro(this.clubInfo.mainProduct)
  434. })
  435. .catch(error =>{
  436. this.$util.msg(error.msg,2000)
  437. })
  438. },
  439. ShareRegister(){//点击分享
  440. this.isShareModal = true
  441. },
  442. agreeCheck() {//勾选协议
  443. this.isCheck = !this.isCheck
  444. if(this.isCheck){
  445. this.params.isAgreed = 1
  446. }else{
  447. this.params.isAgreed = 0
  448. }
  449. },
  450. showMulLinkageThreePicker() {//三级地址联动
  451. this.isShowInput = true
  452. this.$refs.CityPicker.show()
  453. },
  454. showTextareaFocus(){//文本框获取焦点
  455. this.isShowInput = false
  456. this.textareaFocus = true
  457. },
  458. hideTextareaFocus(){//文本框失去焦点
  459. this.isShowInput = true
  460. this.textareaFocus = false
  461. },
  462. onTextareaInput(e){//地址详细信息
  463. this.params.address = e.detail.value;
  464. },
  465. onConfirm(e) {//获取选择的地址信息
  466. console.log('地址',e);
  467. this.addressText = e.name;
  468. this.params.townId = e.townCode;
  469. this.params.cityId = e.cityCode;
  470. this.params.provinceId = e.provinceCode;
  471. },
  472. UploadPicture(NUM) {//图片上传
  473. uploadFileImage().then(res =>{
  474. switch(NUM){
  475. case 1:
  476. this.params.businessLicense = JSON.parse(res.data).data
  477. break;
  478. case 2:
  479. this.params.shopPhoto = JSON.parse(res.data).data
  480. break;
  481. case 3:
  482. this.params.medicalPracticeLicense = JSON.parse(res.data).data
  483. break;
  484. }
  485. })
  486. },
  487. DeletePicture(NUM){//删除照片
  488. switch(NUM){
  489. case 1:
  490. this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
  491. this.params.businessLicense = ''
  492. })
  493. break;
  494. case 2:
  495. this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
  496. this.params.shopPhoto = ''
  497. })
  498. break;
  499. case 3:
  500. this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
  501. this.params.medicalPracticeLicense = ''
  502. })
  503. break;
  504. }
  505. },
  506. ShowPreviewImage(NUM) {//预览照片
  507. switch(NUM){
  508. case 1:
  509. this.myPreviewImageFn(this.businessLicense)
  510. break;
  511. case 2:
  512. this.myPreviewImageFn(this.shopPhoto)
  513. break;
  514. case 3:
  515. this.myPreviewImageFn(this.medicalPracticeLicense)
  516. break;
  517. }
  518. },
  519. myPreviewImageFn(url){//预览证件照
  520. this.isPreviewImage = true
  521. let mentuzArray = []
  522. mentuzArray.push(url)
  523. uni.previewImage({
  524. urls: mentuzArray,
  525. current: 0
  526. });
  527. },
  528. setNewMainpro(arr){//回显处理主营内容
  529. let _ARRAY = []
  530. arr.split('/').forEach((item,index) =>{
  531. let _OBJ = {value:(index+1).toString(),name:item,checked:true}
  532. _ARRAY.push(_OBJ)
  533. })
  534. return _ARRAY
  535. },
  536. bindPickerChange(e) {//选择机构类型
  537. this.params.firstClubType = Number(e.target.value);
  538. },
  539. radioChange(item) {//选择
  540. this.params.secondClubType = item.value;
  541. if( this.params.secondClubType == 2 || this.params.secondClubType == 3){
  542. this.isDepartment = true
  543. }else{
  544. this.isDepartment = false
  545. }
  546. for (let i = 0; i < this.beautyList.length; i++) {
  547. if (this.beautyList[i].value === this.params.secondClubType) {
  548. break;
  549. }
  550. }
  551. },
  552. ChooseMaleLike(e){
  553. switch(this.params.firstClubType){
  554. case 1:
  555. this.params.mainProduct = this.CheckLikes(e,this.mentuzCampList)
  556. console.log(this.params.mainProduct)
  557. break;
  558. case 2:
  559. this.params.mainProduct = this.CheckLikes(e,this.medicaCampList)
  560. console.log(this.params.mainProduct)
  561. break;
  562. }
  563. },
  564. CheckLikes(e,list){
  565. let values = e.detail.value
  566. let arr = []
  567. list.forEach(item => {
  568. if(values.indexOf(item.value) >= 0){
  569. this.$set(item,'checked',true)
  570. arr.push(item.name)
  571. }else{
  572. this.$set(item,'checked',false)
  573. }
  574. })
  575. return arr.join('/')
  576. },
  577. addCustomItem(){
  578. if(this.customItemValue==''){
  579. this.$util.msg('请输入自定义主营内容',2000);
  580. }else{
  581. if(this.params.firstClubType == 1){
  582. let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue,checked:true}
  583. if(this.CheckedArray(this.customItemValue,this.mentuzCampList)){
  584. this.$util.msg('主营内容已存在!',2000)
  585. }else{
  586. this.mentuzCampList.push(item)
  587. }
  588. }else{
  589. let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue,checked:true}
  590. if(this.CheckedArray(this.customItemValue,this.medicaCampList)){
  591. this.$util.msg('主营内容已存在!',2000)
  592. }else{
  593. this.medicaCampList.push(item)
  594. }
  595. }
  596. }
  597. },
  598. CheckedArray(content,arr){//判断主营内容是否已存在
  599. console.log(content,arr)
  600. for(var i in arr){
  601. if(arr[i].name == content){
  602. return true;
  603. }
  604. }
  605. return false;
  606. },
  607. },
  608. onShareAppMessage(res){//分享转发
  609. this.isShareModal = false
  610. if (res.from === 'button') { // 来自页面内转发按钮
  611. }
  612. return {
  613. title: '您已注册采美365网,请点击登录',
  614. path: `/pages/login/binding?bindId=${this.clubInfo.userId}&Identity=2`,
  615. imageUrl:'https://static.caimei365.com/app/img/icon/icon-addShare@3x.png'
  616. }
  617. },
  618. onShow() {
  619. }
  620. }
  621. </script>
  622. <style lang="scss">
  623. page{
  624. height: auto;
  625. }
  626. .register{
  627. width: 100%;
  628. position: relative;
  629. box-sizing: border-box;
  630. padding-bottom: 332rpx;
  631. .register-main{
  632. width: 100%;
  633. height: auto;
  634. box-sizing: border-box;
  635. padding: 0 24rpx;
  636. margin-top: 24rpx;
  637. .main-form-item{
  638. width: 100%;
  639. height: 88rpx;
  640. box-sizing: border-box;
  641. padding: 13rpx 0;
  642. border-bottom: 1px solid #e1e1e1;
  643. margin-top: 10rpx;
  644. position: relative;
  645. &.none{
  646. border-bottom: none;
  647. height: auto;
  648. }
  649. &.file{
  650. height: 273rpx;
  651. border-bottom: none;
  652. .main-form-upload{
  653. width: 50%;
  654. height: 100%;
  655. float: left;
  656. .label{
  657. width: 100%;
  658. float: left;
  659. height: 56rpx;
  660. line-height: 56rpx;
  661. font-size: $font-size-28;
  662. text-align: left;
  663. color: #999999;
  664. }
  665. .upload-picture{
  666. width: 100%;
  667. height: 180rpx;
  668. float: left;
  669. margin-top: 17rpx;
  670. .upload-none{
  671. width: 200rpx;
  672. height: 180rpx;
  673. border-radius: 6rpx;
  674. border:1px solid #e1e1e1;
  675. box-sizing: border-box;
  676. padding-top: 64rpx;
  677. .icon-jiahao{
  678. display: inline-block;
  679. width: 100%;
  680. text-align: center;
  681. line-height: 48rpx;
  682. font-size: 40rpx;
  683. color: #b2b2b2;
  684. }
  685. .upload-text{
  686. display: inline-block;
  687. width: 100%;
  688. text-align: center;
  689. line-height: 40rpx;
  690. font-size: $font-size-24;
  691. color: #b2b2b2;
  692. }
  693. }
  694. .upload-image{
  695. width: 200rpx;
  696. height: 180rpx;
  697. border-radius: 6rpx;
  698. border:1px solid #e1e1e1;
  699. box-sizing: border-box;
  700. position: relative;
  701. image{
  702. width: 200rpx;
  703. height: 180rpx;
  704. display: block;
  705. }
  706. .upload-del{
  707. width: 40rpx;
  708. height: 40rpx;
  709. position: absolute;
  710. top: -20rpx;
  711. right: -20rpx;
  712. line-height: 40rpx;
  713. text-align: center;
  714. .iconfont{
  715. font-size: $font-size-32;
  716. color: #999999;
  717. }
  718. }
  719. }
  720. }
  721. }
  722. }
  723. &.picker{
  724. border-bottom: none;
  725. .label-radio{
  726. margin-left: 30rpx;
  727. font-size: $font-size-28;
  728. float: left;
  729. }
  730. .row-radio{
  731. float: left;
  732. transform: scale(0.7);
  733. }
  734. .row-text{
  735. text-align: center;
  736. float: left;
  737. font-size: $font-size-28;
  738. }
  739. .picker-radio{
  740. box-sizing: border-box;
  741. padding-left: 180rpx;
  742. .secondTyperadio{
  743. border: 2rpx solid #e1e1e1;
  744. display: inline-block;
  745. font-size: 26rpx;
  746. color: #999999;
  747. padding: 0 24rpx;
  748. border-radius: 22rpx;
  749. line-height: 42rpx;
  750. margin-right: 56rpx;
  751. float: left;
  752. &.active{
  753. border: 2rpx solid #ffe6dc;
  754. color: $color-system;
  755. }
  756. }
  757. }
  758. }
  759. &.textarea{
  760. height: 142rpx;
  761. .textarea{
  762. width: 100%;
  763. height: 142rpx;
  764. box-sizing: border-box;
  765. font-size: $font-size-28;
  766. color: $text-color;
  767. z-index: 1;
  768. }
  769. .textarea.hide{
  770. opacity: 0;
  771. }
  772. .textarea.show{
  773. color: #999999;
  774. }
  775. }
  776. .textarea-ke{
  777. width: 100%;
  778. height: 160rpx;
  779. border-radius: 6rpx;
  780. border: 1px solid #e1e1e1;
  781. font-size: $font-size-28;
  782. box-sizing: border-box;
  783. padding: 15rpx 20rpx;
  784. }
  785. .form-textarea{
  786. font-size: $font-size-28;
  787. color: #333333;
  788. }
  789. .form-label{
  790. width: 148rpx;
  791. float: left;
  792. height: 100%;
  793. line-height: 56rpx;
  794. font-size: $font-size-28;
  795. text-align: left;
  796. color: #999999;
  797. &.lang{
  798. width: 188rpx;
  799. }
  800. &.none{
  801. width: 100%;
  802. }
  803. }
  804. .form-input{
  805. width: 554rpx;
  806. height: 56rpx;
  807. line-height: 56rpx;
  808. font-size: $font-size-28;
  809. text-align: left;
  810. color: #333333;
  811. float: left;
  812. &.lang{
  813. width: 514rpx;
  814. }
  815. &.phone{
  816. width: 418rpx;
  817. }
  818. &.none{
  819. color: #999999;
  820. }
  821. }
  822. .form-text{
  823. width: 554rpx;
  824. height: 56rpx;
  825. line-height: 56rpx;
  826. font-size: $font-size-28;
  827. text-align: left;
  828. color: #333333;
  829. float: left;
  830. }
  831. .form-btn{
  832. width: 136rpx;
  833. height: 56rpx;
  834. background: $btn-confirm;
  835. color: #FFFFFF;
  836. font-size: $font-size-28;
  837. text-align: center;
  838. border-radius: 28rpx;
  839. line-height: 56rpx;
  840. float: left;
  841. }
  842. .icon-xiayibu{
  843. width: 80rpx;
  844. height: 80rpx;
  845. position: absolute;
  846. right: 0;
  847. top: 0;
  848. line-height: 80rpx;
  849. text-align: center;
  850. color: #b2b2b2;
  851. }
  852. .form-checkbox-group {
  853. width: 100%;
  854. display: flex;
  855. flex-flow: row wrap;
  856. justify-content: space-between;
  857. align-items: center;
  858. &.btn{
  859. margin: 0 auto;
  860. margin-left: 116rpx;
  861. }
  862. .row-input{
  863. display: flex;
  864. width: 220rpx;
  865. height: 40rpx;
  866. padding: 24rpx;
  867. text-align: left;
  868. border-radius: 10rpx;
  869. font-size: $font-size-28;
  870. color: $text-color;
  871. }
  872. .confirm-btn{
  873. width: 160rpx;
  874. height: 64rpx;
  875. border-radius: 45rpx;
  876. line-height: 64rpx;
  877. text-align: center;
  878. background:#ffe6dc;
  879. color: $color-system;
  880. &.other{
  881. width: 213rpx;
  882. }
  883. }
  884. .item {
  885. height: 60rpx;
  886. font-size:$font-size-28;
  887. line-height: 60rpx;
  888. border-radius:10rpx;
  889. margin-right: 20rpx;
  890. margin-bottom: 10rpx;
  891. box-sizing: border-box;
  892. float: left;
  893. }
  894. .item-text{
  895. display: inline-block;
  896. font-size: 26rpx;
  897. color: #999999;
  898. border-radius: 28rpx;
  899. line-height: 50rpx;
  900. }
  901. .on {
  902. .item-text{
  903. border-color: $color-system;
  904. color:$color-system;
  905. }
  906. }
  907. .form-table-item{
  908. height: 48rpx;
  909. padding: 0 32rpx;
  910. border: 1px solid #b2b2b2;
  911. text-align: center;
  912. font-size: $font-size-28;
  913. color: #333333;
  914. float: left;
  915. line-height: 48rpx;
  916. border-radius: 26rpx;
  917. margin-right: 12rpx;
  918. margin-top: 20rpx;
  919. }
  920. }
  921. .form-checkbox-input{
  922. width: 100%;
  923. height: 64rpx;
  924. margin-top: 20rpx;
  925. .checkbox-input{
  926. width: 518rpx;
  927. height: 64rpx;
  928. box-sizing: border-box;
  929. text-align: left;
  930. font-size: $font-size-26;
  931. color: #333333;
  932. line-height: 64rpx;
  933. float: left;
  934. border: 1px solid #e1e1e1;
  935. border-radius: 32rpx;
  936. padding: 0 20rpx;
  937. }
  938. .checkbox-btn{
  939. width: 160rpx;
  940. height: 64rpx;
  941. border-radius: 32rpx;
  942. background-color: #ffe6dc;
  943. line-height: 64rpx;
  944. text-align: center;
  945. color: #e15616;
  946. font-size: $font-size-28;
  947. float: right;
  948. }
  949. }
  950. }
  951. .register-fiexd{
  952. width: 100%;
  953. height: auto;
  954. padding: 20rpx 0;
  955. position: fixed;
  956. bottom: 0;
  957. left: 0;
  958. z-index: 888;
  959. background: #FFFFFF;
  960. .register-agree{
  961. display: flex;
  962. flex-direction: column;
  963. align-items: center;
  964. margin:0 0 32rpx 0;
  965. .agree-text{
  966. .checkbox{
  967. float: left;
  968. margin: 4rpx 6rpx 0 0;
  969. color: #999999;
  970. font-size: $font-size-32;
  971. &.icon-gouxuan{
  972. color: $color-system;
  973. }
  974. }
  975. font-size: 20rpx;
  976. line-height: 44rpx;
  977. color: #999999;
  978. text{
  979. color:#0091FF;
  980. }
  981. }
  982. }
  983. }
  984. .register-btn{
  985. width: 702rpx;
  986. height: 88rpx;
  987. border-radius: 44rpx;
  988. font-size: $font-size-28;
  989. line-height: 88rpx;
  990. color: #FFFFFF;
  991. margin: 0 auto;
  992. text-align: center;
  993. background: $btn-confirm;
  994. margin-top: 96rpx;
  995. &.none{
  996. background: #FFFFFF;
  997. color: $text-color;
  998. margin-top: 0;
  999. }
  1000. &.sub{
  1001. margin-top: 0;
  1002. }
  1003. }
  1004. }
  1005. }
  1006. </style>