information.vue 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027
  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="16"/>
  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. },
  264. CustomBar:this.CustomBar,// 顶部导航栏高度
  265. isPreviewImage:false, //预览图片开关
  266. userID:'', //机构的userID
  267. clubID:'', //会所ID
  268. mobile:'', //联系人手机号
  269. userIdentity:'', //机构用户类型
  270. email:'', //邮箱
  271. clubName:'', //机构名称
  272. abbreviation:'', //机构简称
  273. clubContact:'', //联系人
  274. socialCreditCode:'', //统一社会信用代码
  275. isAgreed:1, //是否勾选协议
  276. isDisabled:true,
  277. isShowInput:false,
  278. isCheck:true, //是否勾选协议
  279. uploadBusinessImage:'', //营业执照图片
  280. uploadMentuzImage:'', //门头照图片
  281. uploadMedicalImage:'', //资质照图片
  282. department:'', //科室
  283. isDepartment:false, //是否显示科室
  284. secondClubType:'', //机构类型二级分类
  285. mainpro:'', //主营内容
  286. clubTelePhone:'', //固定电话
  287. clubFax:'', //传真
  288. companyPprofile:'', //公司简介
  289. firstClubType:'', //机构类型
  290. isOrganizationType:0,
  291. organizationTypeText:'请选择机构类型',
  292. beautyList:beautyList,
  293. mentuzCampNullList:mentuzCampNullList,
  294. medicaCampNullList:medicaCampNullList,
  295. mentuzCampList:[],
  296. medicaCampList:[],
  297. typtIndex:0,
  298. organizationType:0,
  299. current:0,
  300. isShowAustomItem:false, //是否显示其他添加
  301. customItemValue:'', //自定义项目
  302. isMainproCheck:false,
  303. addressData:{
  304. address:'请选择机构所在地区',
  305. townID:'', //区ID
  306. cityID:'', //市ID
  307. provinceID:'', //省ID
  308. addressDetail: '', //地址详情
  309. },
  310. }
  311. },
  312. onLoad(option) {
  313. console.log(option)
  314. this.userID = option.userID
  315. this.organizationInfo()
  316. },
  317. methods:{
  318. hanldNavigateBack(){
  319. this.$util.modal('','确定放弃本次修改吗?','确定','取消',true,() =>{
  320. uni.navigateBack({
  321. delta: 1
  322. });
  323. })
  324. },
  325. organizationInfo(){
  326. organizationUpdateModifyInfo({userID:this.userID}).then(response =>{
  327. let organizationClub = response.data.club
  328. let organizationUser = response.data.user
  329. this.clubID = organizationUser.clubID
  330. this.userIdentity = organizationUser.userIdentity
  331. this.clubContact = organizationClub.linkMan1
  332. this.mobile = organizationUser.bindMobile
  333. this.clubTelePhone = organizationClub.contractPhone ? organizationClub.contractPhone : ''
  334. this.clubFax = organizationClub.fax ? organizationClub.fax : ''
  335. this.companyPprofile = organizationClub.info ? organizationClub.info : ''
  336. this.email = organizationUser.email
  337. this.clubName = organizationClub.name
  338. this.abbreviation = organizationClub.sname
  339. if( organizationClub.provinceID == null ){
  340. this.addressData.provinceID = ''
  341. }else{
  342. this.addressData.provinceID = organizationClub.provinceID
  343. }
  344. if( organizationClub.cityID == null ){
  345. this.addressData.cityID = ''
  346. }else{
  347. this.addressData.cityID = organizationClub.cityID
  348. }
  349. if( organizationClub.townID == null ){
  350. this.addressData.townID = ''
  351. }else{
  352. this.addressData.townID = organizationClub.townID
  353. }
  354. this.addressData.addressDetail = organizationClub.address ? organizationClub.address : ''
  355. this.socialCreditCode = this.$reg.checkData(organizationClub.socialCreditCode)
  356. this.firstClubType = this.$reg.checkData(organizationClub.firstClubType)
  357. this.secondClubType = this.$reg.checkData(organizationClub.secondClubType)
  358. this.addressData.address = organizationClub.provincialAddress ? organizationClub.provincialAddress : ''
  359. this.uploadBusinessImage = this.$reg.checkData(organizationClub.businessLicenseImage)
  360. this.uploadMedicalImage = this.$reg.checkData(organizationClub.medicalPracticeLicenseImg)
  361. this.uploadMentuzImage = this.$reg.checkData(organizationClub.headpic)
  362. this.department = this.$reg.checkData(organizationClub.department)
  363. //机构类型&&主营项目
  364. switch(this.firstClubType){
  365. case '1':
  366. this.organizationTypeText = '医美'
  367. this.isOrganizationType = 1
  368. break;
  369. case '2':
  370. this.organizationTypeText = '生美'
  371. this.isOrganizationType = 2
  372. break;
  373. case null:
  374. this.organizationTypeText = '请选择机构类型'
  375. this.isOrganizationType = 0
  376. break;
  377. }
  378. if(organizationClub.mainpro == "" || organizationClub.mainpro == null){
  379. this.mentuzCampList = this.mentuzCampNullList
  380. this.medicaCampList = this.medicaCampNullList
  381. }else{
  382. if(this.firstClubType == '1'){
  383. this.mentuzCampList = this.setNewMainpro(organizationClub.mainpro)
  384. this.medicaCampList = this.medicaCampNullList
  385. }else{
  386. this.medicaCampList = this.setNewMainpro(organizationClub.mainpro)
  387. this.mentuzCampList = this.mentuzCampNullList
  388. }
  389. }
  390. //机构类型
  391. switch(this.secondClubType){
  392. case '1':this.current = 0;break;
  393. case '2':this.current = 1;this.isDepartment=true;break;
  394. case '3':this.current = 2;this.isDepartment=true;break;
  395. }
  396. }).catch(error =>{
  397. this.$util.msg(error.msg,2000)
  398. })
  399. },
  400. organizationUpdateInfo(){//提交审核
  401. if(!this.isMainproCheck){
  402. let mainproList = []
  403. if(this.firstClubType == '1'){
  404. this.mentuzCampList.forEach(item =>{
  405. mainproList.push(item.name)
  406. })
  407. }else{
  408. this.medicaCampList.forEach(item =>{
  409. mainproList.push(item.name)
  410. })
  411. }
  412. this.mainpro = mainproList.join('/')
  413. }
  414. let params = {
  415. userID:this.userID,
  416. clubID:this.clubID, //会所ID
  417. name:this.clubName,
  418. linkMan1:this.clubContact,
  419. sname:this.abbreviation,
  420. provinceID:this.addressData.provinceID,
  421. cityID:this.addressData.cityID,
  422. townID:this.addressData.townID,
  423. address:this.addressData.addressDetail,
  424. socialCreditCode:this.socialCreditCode,
  425. businessLicenseImage:this.uploadBusinessImage,
  426. headpic:this.uploadMentuzImage,
  427. firstClubType:this.isOrganizationType, //机构类型分类 医美:0和生美:1
  428. secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
  429. department:this.department, //科室
  430. medicalPracticeLicenseImg:this.uploadMedicalImage,//资质图片
  431. isAgreed:this.isAgreed, //是否勾选协议
  432. mainpro:this.mainpro,
  433. fax:this.clubFax,
  434. contractPhone:this.clubTelePhone,
  435. info : this.companyPprofile,
  436. }
  437. organizationUpdate(params).then(response =>{
  438. this.$util.msg('修改成功',2000,true,'success')
  439. setTimeout(()=>{
  440. uni.navigateBack({
  441. delta: 1
  442. });
  443. },2000)
  444. }).catch(error =>{
  445. this.$util.msg(error.msg,2000);
  446. })
  447. },
  448. // 三级联动选择
  449. showMulLinkageThreePicker() {
  450. this.isShowInput = true
  451. this.$refs.mpvueCityPicker.show()
  452. },
  453. onConfirm(e) {
  454. this.addressData.address = e.name;
  455. this.addressData.townID = e.townCode;
  456. this.addressData.cityID = e.cityCode;
  457. this.addressData.provinceID = e.provinceCode;
  458. },
  459. onTextareaInput(e){
  460. this.addressData.addressDetail = e.detail.value;
  461. },
  462. onTextareaInputInfo(e){
  463. this.companyPprofile = e.detail.value;
  464. },
  465. chooseBusinessImage() {//营业执照图片上传
  466. uploadFileImage().then(res =>{
  467. this.uploadBusinessImage = JSON.parse(res.data).data
  468. })
  469. },
  470. chooseMentuzImage() {//门头照图片上传
  471. uploadFileImage().then(res =>{
  472. this.uploadMentuzImage = JSON.parse(res.data).data
  473. })
  474. },
  475. chooseMedicalImage() {//资质照图片上传
  476. uploadFileImage().then(res =>{
  477. this.uploadMedicalImage = JSON.parse(res.data).data
  478. })
  479. },
  480. viewBusinessImage(e) {
  481. this.myPreviewImageFn(this.uploadBusinessImage)
  482. },
  483. viewMentuzImage(e) {
  484. this.myPreviewImageFn(this.uploadMentuzImage)
  485. },
  486. viewMedicalImage(e) {
  487. this.myPreviewImageFn(this.uploadMedicalImage)
  488. },
  489. myPreviewImageFn(url){
  490. this.isPreviewImage = true
  491. let mentuzArray = []
  492. mentuzArray.push(url)
  493. uni.previewImage({
  494. urls: mentuzArray,
  495. current: 0
  496. });
  497. },
  498. delBusinessImage(){
  499. this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
  500. this.uploadBusinessImage = ''
  501. })
  502. },
  503. delMentuzImage(){
  504. this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
  505. this.uploadMentuzImage = ''
  506. })
  507. },
  508. delMedicalImage(){
  509. this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
  510. this.uploadMedicalImage = ''
  511. })
  512. },
  513. bindPickerChange() {
  514. let self = this
  515. uni.showActionSheet({
  516. title:'标题',
  517. itemList: ['医美', '生美'],
  518. success: (e) => {
  519. self.isOrganizationType = e.tapIndex+1
  520. switch(e.tapIndex){
  521. case 0:
  522. this.organizationTypeText = '医美'
  523. break;
  524. case 1:
  525. this.organizationTypeText = '生美'
  526. break;
  527. }
  528. }
  529. })
  530. },
  531. bindPickerChange2(e) {
  532. this.typtIndex = e.target.value
  533. this.isOrganizationType = e.target.value
  534. },
  535. radioChange(e) {
  536. this.secondClubType = e.target.value;
  537. if( this.secondClubType == '2' || this.secondClubType == '3'){
  538. this.isDepartment = true
  539. }else{
  540. this.isDepartment = false
  541. }
  542. for (let i = 0; i < this.beautyList.length; i++) {
  543. if (this.beautyList[i].value === this.secondClubType) {
  544. this.current = i;
  545. break;
  546. }
  547. }
  548. },
  549. chooseMaleLike(e){
  550. this.isMainproCheck = true
  551. this.mainpro = this.checkLikes(e,this.mentuzCampList)
  552. },
  553. chooseMaleLikes(e){
  554. this.isMainproCheck = true
  555. this.mainpro = this.checkLikes(e,this.medicaCampList)
  556. },
  557. checkLikes(e,list){
  558. let values = e.detail.value
  559. let arr = []
  560. list.forEach(item => {
  561. if(values.indexOf(item.value) >= 0){
  562. this.$set(item,'checked',true)
  563. arr.push(item.name)
  564. }else{
  565. this.$set(item,'checked',false)
  566. }
  567. })
  568. return arr.join('/')
  569. },
  570. agreeCheck() {
  571. this.isCheck = !this.isCheck
  572. if(this.isCheck){
  573. this.isAgreed = 1
  574. }else{
  575. this.isAgreed = 0
  576. }
  577. },
  578. onBlurInput(e){//
  579. if(e.detail.value ===''){
  580. this.isDisabled = true
  581. }else{
  582. this.isDisabled = false
  583. }
  584. },
  585. showAustomItem() {
  586. this.isShowAustomItem = !this.isShowAustomItem
  587. },
  588. setNewMainpro(arr){//回显处理主营内容
  589. let _ARRAY = []
  590. arr.split('/').forEach((item,index) =>{
  591. let _OBJ = {value:(index+1).toString(),name:item,checked:true}
  592. _ARRAY.push(_OBJ)
  593. })
  594. return _ARRAY
  595. },
  596. addCustomItem(){
  597. if(this.isOrganizationType == 1){
  598. let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue,checked:true}
  599. this.mentuzCampList.push(item)
  600. }else{
  601. let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue,checked:true}
  602. this.medicaCampList.push(item)
  603. }
  604. }
  605. },
  606. onShow() {
  607. if(this.isPreviewImage){
  608. this.isPreviewImage = false
  609. return
  610. }
  611. }
  612. }
  613. </script>
  614. <style lang="scss">
  615. .register{
  616. width: 100%;
  617. height: auto;
  618. border-top: 1px solid #F7F7F7;
  619. .model-warp.none{
  620. display: none;
  621. }
  622. .model-warp.show{
  623. display: block;
  624. }
  625. .register-main{
  626. width: 100%;
  627. height: auto;
  628. &.detailed{
  629. padding-bottom: 300rpx;
  630. }
  631. &.first{
  632. padding-top: 40rpx;
  633. }
  634. .register-tips{
  635. display: flex;
  636. flex-direction: column;
  637. align-items: center;
  638. line-height: 44rpx;
  639. font-size: $font-size-24;
  640. color: #FF0000;
  641. margin-bottom: 40rpx;
  642. .iconfont{
  643. font-size: $font-size-24;
  644. }
  645. }
  646. .register-row{
  647. width: 702rpx;
  648. height: auto;
  649. padding: 0 24rpx;
  650. margin-bottom: 20rpx;
  651. .register-title{
  652. line-height: 60rpx;
  653. font-size: $font-size-32;
  654. color: $text-color;
  655. text-align: left;
  656. padding-left: 20rpx;
  657. .txt{
  658. font-size: $font-size-26;
  659. font-weight: normal;
  660. }
  661. }
  662. .row-btn{
  663. position: absolute;
  664. right: 24rpx;
  665. top: 0;
  666. line-height: 88rpx;
  667. text-align: center;
  668. font-size: $font-size-28;
  669. color: $color-system;
  670. }
  671. .register-from{
  672. width: 654rpx;
  673. height: 40rpx;
  674. padding: 24rpx;
  675. background: $sub-bg-color;
  676. border-radius: 14rpx;
  677. position: relative;
  678. .label{
  679. text-align: left;
  680. font-size: $font-size-28;
  681. color: #666666;
  682. line-height: 40rpx;
  683. float: left;
  684. }
  685. .row-input{
  686. width: 440rpx;
  687. padding-left:10rpx;
  688. font-size: $font-size-28;
  689. color: $text-color;
  690. line-height: 40rpx;
  691. float: left;
  692. height: 40rpx;
  693. &.none{
  694. color: #999999;
  695. }
  696. &.picker{
  697. text-align: left;
  698. color: #999999;
  699. }
  700. &.keshi{
  701. width: 550rpx;
  702. }
  703. }
  704. &.code{
  705. width: 410rpx;
  706. float: left;
  707. margin-right: 20rpx;
  708. .row-input{
  709. width: 390rpx;
  710. }
  711. }
  712. &.btn{
  713. width: 224rpx;
  714. height: 88rpx;
  715. float: left;
  716. background: $btn-confirm;
  717. padding: 0;
  718. .row-input{
  719. width: 224rpx;
  720. height: 88rpx;
  721. line-height: 88rpx;
  722. padding: 0;
  723. color: #FFFFFF;
  724. background: $btn-confirm;
  725. text-align: center;
  726. border-radius: 14rpx;
  727. &.other{
  728. width: 224rpx;
  729. background: #F7F7F7;
  730. margin-right: 20rpx;
  731. }
  732. &.none{
  733. background: #F7F7F7;
  734. }
  735. }
  736. &.disabled{
  737. background: #F7F7F7;
  738. .row-input{
  739. background: #F7F7F7;
  740. color: #999999;
  741. }
  742. }
  743. }
  744. &.picker{
  745. padding: 0 24rpx;
  746. width: 654rpx;
  747. height: 88rpx;
  748. line-height: 88rpx;
  749. .label{
  750. line-height: 88rpx;
  751. }
  752. .row-input{
  753. width: 470rpx;
  754. height: 88rpx;
  755. line-height: 88rpx;
  756. padding-left: 30rpx;
  757. }
  758. }
  759. &.radio{
  760. padding: 0 24rpx;
  761. width: 654rpx;
  762. height: 288rpx;
  763. .row-input{
  764. width: 100%;
  765. height: 88rpx;
  766. line-height: 88rpx;
  767. padding-left: 0;
  768. }
  769. .row-radio{
  770. float: left;
  771. transform: scale(0.8);
  772. }
  773. .row-text{
  774. width: 100rpx;
  775. text-align: center;
  776. float: left;
  777. }
  778. }
  779. &.group{
  780. padding: 0 24rpx;
  781. width: 654rpx;
  782. height: auto;
  783. background: #FFFFFF;
  784. margin-top: 30rpx;
  785. .label{
  786. line-height: 70rpx;
  787. }
  788. .row-input{
  789. width: 100%;
  790. height: 88rpx;
  791. line-height: 88rpx;
  792. padding-left: 0;
  793. }
  794. .row-radio{
  795. float: left;
  796. }
  797. .row-text{
  798. width: 100rpx;
  799. text-align: center;
  800. float: left;
  801. }
  802. }
  803. &.btn{
  804. margin-top: 0;
  805. }
  806. .content-class {
  807. margin: 20rpx auto;
  808. display: flex;
  809. flex-flow: row wrap;
  810. justify-content: space-between;
  811. &.btn{
  812. margin: 0 auto;
  813. margin-left: 116rpx;
  814. }
  815. .row-input{
  816. display: flex;
  817. width: 220rpx;
  818. height: 40rpx;
  819. padding: 24rpx;
  820. text-align: left;
  821. border-radius: 10rpx;
  822. font-size: $font-size-28;
  823. color: $text-color;
  824. }
  825. .confirm-btn{
  826. width: 200rpx;
  827. height: 88rpx;
  828. border-radius: 10rpx;
  829. line-height: 88rpx;
  830. text-align: center;
  831. &.none{
  832. color: #FFFFFF;
  833. background: $btn-confirm;
  834. }
  835. &.disabled{
  836. color: #999999;
  837. }
  838. }
  839. .item {
  840. width: 155rpx;
  841. height: 60rpx;
  842. font-size:$font-size-28;
  843. line-height: 60rpx;
  844. border-radius:10rpx;
  845. margin: 10rpx;
  846. text-align: center;
  847. box-sizing: border-box;
  848. border: 1rpx solid #EFEFEF;
  849. float: left;
  850. checkbox {
  851. display: none;
  852. }
  853. }
  854. .on {
  855. border-color: $color-system;
  856. color:$color-system;
  857. }
  858. }
  859. }
  860. .icon-xiayibu{
  861. width: 88rpx;
  862. height: 88rpx;
  863. position: absolute;
  864. right: 0;
  865. top: 0;
  866. line-height: 88rpx;
  867. text-align: center;
  868. }
  869. &.text-textarea{
  870. background: #FFFFFF;
  871. .textarea{
  872. width: 654rpx;
  873. height: 180rpx;
  874. background: #F7F7F7;
  875. padding: 24rpx;
  876. font-size: $font-size-28;
  877. color: $text-color;
  878. z-index: 1;
  879. border-radius: 14rpx;
  880. }
  881. .textarea.hide{
  882. opacity: 0;
  883. }
  884. .textarea.show{
  885. color: #999999;
  886. }
  887. }
  888. }
  889. .register-picture{
  890. height: 102rpx;
  891. margin: 30rpx 0;
  892. width: 42%;
  893. float: left;
  894. &.zz{
  895. width: 100%;
  896. }
  897. .label{
  898. float: left;
  899. font-size: $font-size-28;
  900. color: $text-color;
  901. line-height: 102rpx;
  902. width: 150rpx;
  903. text-align: right;
  904. &.zz{
  905. width: 230rpx;
  906. }
  907. }
  908. .upload-picture{
  909. float: left;
  910. height: 100rpx;
  911. .upload-none{
  912. width: 100rpx;
  913. height: 100rpx;
  914. text-align: center;
  915. line-height: 100rpx;
  916. color: #999999;
  917. border: 1px solid #999999;
  918. border-radius: 10rpx;
  919. margin: 0 20rpx;
  920. .iconfont{
  921. font-size: $font-size-28;
  922. }
  923. }
  924. .upload-image{
  925. width: 100rpx;
  926. height: 100rpx;
  927. border-radius: 10rpx;
  928. margin: 0 20rpx;
  929. position: relative;
  930. image{
  931. width: 100rpx;
  932. height: 100rpx;
  933. border-radius: 10rpx;
  934. }
  935. .upload-del{
  936. width: 40rpx;
  937. height: 40rpx;
  938. position: absolute;
  939. top: -20rpx;
  940. right: -20rpx;
  941. line-height: 40rpx;
  942. text-align: center;
  943. .iconfont{
  944. font-size: $font-size-32;
  945. color: #999999;
  946. }
  947. }
  948. }
  949. }
  950. }
  951. .register-input{
  952. width: 654rpx;
  953. height: 40rpx;
  954. padding: 24rpx;
  955. margin: 0 auto;
  956. margin-bottom: 60rpx;
  957. background: #F7F7F7;
  958. border-radius: 14rpx;
  959. .input{
  960. width: 100%;
  961. height: 100%;
  962. background: #F7F7F7;
  963. font-size: $font-size-28;
  964. line-height: 40rpx;
  965. color: #333333;
  966. border-radius: 14rpx;
  967. }
  968. }
  969. .register-fiexd{
  970. width: 100%;
  971. height: auto;
  972. padding: 20rpx 0;
  973. position: fixed;
  974. bottom: 0;
  975. left: 0;
  976. z-index: 99;
  977. background: #FFFFFF;
  978. .register-agree{
  979. display: flex;
  980. flex-direction: column;
  981. align-items: center;
  982. margin: 32rpx 0;
  983. .agree-text{
  984. .checkbox{
  985. float: left;
  986. margin: 4rpx 6rpx 0 0;
  987. color: #999999;
  988. font-size: $font-size-32;
  989. &.icon-gouxuan{
  990. color: $color-system;
  991. }
  992. }
  993. font-size: 20rpx;
  994. line-height: 44rpx;
  995. color: #999999;
  996. text{
  997. color:#0091FF;
  998. }
  999. }
  1000. }
  1001. }
  1002. .register-btn{
  1003. width: 702rpx;
  1004. height: 88rpx;
  1005. border-radius: 14rpx;
  1006. font-size: $font-size-28;
  1007. line-height: 88rpx;
  1008. color: #FFFFFF;
  1009. margin: 0 auto;
  1010. text-align: center;
  1011. background: $btn-confirm;
  1012. margin-top: 96rpx;
  1013. &.none{
  1014. background: #FFFFFF;
  1015. color: $text-color;
  1016. margin-top: 0;
  1017. }
  1018. &.sub{
  1019. margin-top: 0;
  1020. }
  1021. }
  1022. }
  1023. }
  1024. </style>