information.vue 29 KB

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