information.vue 29 KB

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