apply.vue 32 KB

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