information.vue 30 KB

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