apply.vue 32 KB

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