information.vue 29 KB

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