information.vue 30 KB

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