information.vue 29 KB

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