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="16"/>
  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. },
  260. CustomBar:this.CustomBar,// 顶部导航栏高度
  261. isPreviewImage:false, //预览图片开关
  262. userID:'', //机构的userID
  263. clubID:'', //会所ID
  264. mobile:'', //联系人手机号
  265. userIdentity:'', //机构用户类型
  266. email:'', //邮箱
  267. clubName:'', //机构名称
  268. abbreviation:'', //机构简称
  269. clubContact:'', //联系人
  270. socialCreditCode:'', //统一社会信用代码
  271. isAgreed:1, //是否勾选协议
  272. isDisabled:true,
  273. isShowInput:false,
  274. isCheck:true, //是否勾选协议
  275. uploadBusinessImage:'', //营业执照图片
  276. uploadMentuzImage:'', //门头照图片
  277. uploadMedicalImage:'', //资质照图片
  278. department:'', //科室
  279. isDepartment:false, //是否显示科室
  280. secondClubType:'', //机构类型二级分类
  281. mainpro:'', //主营内容
  282. clubTelePhone:'', //固定电话
  283. clubFax:'', //传真
  284. companyPprofile:'', //公司简介
  285. firstClubType:'', //机构类型
  286. isOrganizationType:0,
  287. organizationTypeText:'请选择机构类型',
  288. beautyList:beautyList,
  289. mentuzCampNullList:mentuzCampNullList,
  290. medicaCampNullList:medicaCampNullList,
  291. mentuzCampList:[],
  292. medicaCampList:[],
  293. typtIndex:0,
  294. organizationType:0,
  295. current:0,
  296. isShowAustomItem:false, //是否显示其他添加
  297. customItemValue:'', //自定义项目
  298. isMainproCheck:false,
  299. addressData:{
  300. address:'请选择机构所在地区',
  301. townID:'', //区ID
  302. cityID:'', //市ID
  303. provinceID:'', //省ID
  304. addressDetail: '', //地址详情
  305. },
  306. }
  307. },
  308. onLoad(option) {
  309. console.log(option)
  310. this.userID = option.userID
  311. this.organizationInfo()
  312. },
  313. methods:{
  314. hanldNavigateBack(){
  315. this.$util.modal('','确定放弃本次修改吗?','确定','取消',true,() =>{
  316. uni.navigateBack({
  317. delta: 1
  318. });
  319. })
  320. },
  321. organizationInfo(){
  322. organizationUpdateModifyInfo({userID:this.userID}).then(response =>{
  323. let organizationClub = response.data.club
  324. let organizationUser = response.data.user
  325. this.clubID = organizationUser.clubID
  326. this.userIdentity = organizationUser.userIdentity
  327. this.clubContact = organizationClub.linkMan1
  328. this.mobile = organizationUser.bindMobile
  329. this.clubTelePhone = organizationClub.contractPhone ? organizationClub.contractPhone : ''
  330. this.clubFax = organizationClub.fax ? organizationClub.fax : ''
  331. this.companyPprofile = organizationClub.info ? organizationClub.info : ''
  332. this.email = organizationUser.email
  333. this.clubName = organizationClub.name
  334. this.abbreviation = organizationClub.sname
  335. if( organizationClub.provinceID == null ){
  336. this.addressData.provinceID = ''
  337. }else{
  338. this.addressData.provinceID = organizationClub.provinceID
  339. }
  340. if( organizationClub.cityID == null ){
  341. this.addressData.cityID = ''
  342. }else{
  343. this.addressData.cityID = organizationClub.cityID
  344. }
  345. if( organizationClub.townID == null ){
  346. this.addressData.townID = ''
  347. }else{
  348. this.addressData.townID = organizationClub.townID
  349. }
  350. this.addressData.addressDetail = organizationClub.address ? organizationClub.address : ''
  351. this.socialCreditCode = organizationClub.socialCreditCode
  352. this.firstClubType = organizationClub.firstClubType
  353. this.secondClubType = organizationClub.secondClubType
  354. this.addressData.address = organizationClub.provincialAddress ? organizationClub.provincialAddress : ''
  355. this.uploadBusinessImage = organizationClub.businessLicenseImage
  356. this.uploadMedicalImage = organizationClub.medicalPracticeLicenseImg
  357. this.uploadMentuzImage = organizationClub.headpic
  358. this.department = organizationClub.department
  359. //机构类型&&主营项目
  360. switch(this.firstClubType){
  361. case '1':
  362. this.organizationTypeText = '医美'
  363. this.isOrganizationType = 1
  364. break;
  365. case '2':
  366. this.organizationTypeText = '生美'
  367. this.isOrganizationType = 2
  368. break;
  369. case null:
  370. this.organizationTypeText = '请选择机构类型'
  371. this.isOrganizationType = 0
  372. break;
  373. }
  374. if(organizationClub.mainpro == "" || organizationClub.mainpro == null){
  375. this.mentuzCampList = this.mentuzCampNullList
  376. this.medicaCampList = this.medicaCampNullList
  377. }else{
  378. if(this.firstClubType == '1'){
  379. this.mentuzCampList = this.setNewMainpro(organizationClub.mainpro)
  380. this.medicaCampList = this.medicaCampNullList
  381. }else{
  382. this.medicaCampList = this.setNewMainpro(organizationClub.mainpro)
  383. this.mentuzCampList = this.mentuzCampNullList
  384. }
  385. }
  386. //机构类型
  387. switch(this.secondClubType){
  388. case '1':this.current = 0;break;
  389. case '2':this.current = 1;this.isDepartment=true;break;
  390. case '3':this.current = 2;this.isDepartment=true;break;
  391. }
  392. }).catch(error =>{
  393. this.$util.msg(error.msg,2000)
  394. })
  395. },
  396. organizationUpdateInfo(){//提交审核
  397. if(!this.isMainproCheck){
  398. let mainproList = []
  399. if(this.firstClubType == '1'){
  400. this.mentuzCampList.forEach(item =>{
  401. mainproList.push(item.name)
  402. })
  403. }else{
  404. this.medicaCampList.forEach(item =>{
  405. mainproList.push(item.name)
  406. })
  407. }
  408. this.mainpro = mainproList.join('/')
  409. }
  410. let params = {
  411. userID:this.userID,
  412. clubID:this.clubID, //会所ID
  413. name:this.clubName,
  414. linkMan1:this.clubContact,
  415. sname:this.abbreviation,
  416. provinceID:this.addressData.provinceID,
  417. cityID:this.addressData.cityID,
  418. townID:this.addressData.townID,
  419. address:this.addressData.addressDetail,
  420. socialCreditCode:this.socialCreditCode,
  421. businessLicenseImage:this.uploadBusinessImage,
  422. headpic:this.uploadMentuzImage,
  423. firstClubType:this.isOrganizationType, //机构类型分类 医美:0和生美:1
  424. secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
  425. department:this.department, //科室
  426. medicalPracticeLicenseImg:this.uploadMedicalImage,//资质图片
  427. isAgreed:this.isAgreed, //是否勾选协议
  428. mainpro:this.mainpro,
  429. fax:this.clubFax,
  430. contractPhone:this.clubTelePhone,
  431. info : this.companyPprofile,
  432. }
  433. organizationUpdate(params).then(response =>{
  434. this.$util.msg('修改成功',2000,true,'success')
  435. setTimeout(()=>{
  436. uni.navigateBack({
  437. delta: 1
  438. });
  439. },2000)
  440. }).catch(error =>{
  441. this.$util.msg(error.msg,2000);
  442. })
  443. },
  444. // 三级联动选择
  445. showMulLinkageThreePicker() {
  446. this.isShowInput = true
  447. this.$refs.mpvueCityPicker.show()
  448. },
  449. onConfirm(e) {
  450. this.addressData.address = e.name;
  451. this.addressData.townID = e.townCode;
  452. this.addressData.cityID = e.cityCode;
  453. this.addressData.provinceID = e.provinceCode;
  454. },
  455. onTextareaInput(e){
  456. this.addressData.addressDetail = e.detail.value;
  457. },
  458. onTextareaInputInfo(e){
  459. this.companyPprofile = e.detail.value;
  460. },
  461. chooseBusinessImage() {//营业执照图片上传
  462. uploadFileImage().then(res =>{
  463. this.uploadBusinessImage = JSON.parse(res.data).data
  464. })
  465. },
  466. chooseMentuzImage() {//门头照图片上传
  467. uploadFileImage().then(res =>{
  468. this.uploadMentuzImage = JSON.parse(res.data).data
  469. })
  470. },
  471. chooseMedicalImage() {//资质照图片上传
  472. uploadFileImage().then(res =>{
  473. this.uploadMedicalImage = JSON.parse(res.data).data
  474. })
  475. },
  476. viewBusinessImage(e) {
  477. this.myPreviewImageFn(this.uploadBusinessImage)
  478. },
  479. viewMentuzImage(e) {
  480. this.myPreviewImageFn(this.uploadMentuzImage)
  481. },
  482. viewMedicalImage(e) {
  483. this.myPreviewImageFn(this.uploadMedicalImage)
  484. },
  485. myPreviewImageFn(url){
  486. this.isPreviewImage = true
  487. let mentuzArray = []
  488. mentuzArray.push(url)
  489. uni.previewImage({
  490. urls: mentuzArray,
  491. current: 0
  492. });
  493. },
  494. delBusinessImage(){
  495. this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
  496. this.uploadBusinessImage = ''
  497. })
  498. },
  499. delMentuzImage(){
  500. this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
  501. this.uploadMentuzImage = ''
  502. })
  503. },
  504. delMedicalImage(){
  505. this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
  506. this.uploadMedicalImage = ''
  507. })
  508. },
  509. bindPickerChange() {
  510. let self = this
  511. uni.showActionSheet({
  512. title:'标题',
  513. itemList: ['医美', '生美'],
  514. success: (e) => {
  515. self.isOrganizationType = e.tapIndex+1
  516. switch(e.tapIndex){
  517. case 0:
  518. this.organizationTypeText = '医美'
  519. break;
  520. case 1:
  521. this.organizationTypeText = '生美'
  522. break;
  523. }
  524. }
  525. })
  526. },
  527. bindPickerChange2(e) {
  528. this.typtIndex = e.target.value
  529. this.isOrganizationType = e.target.value
  530. },
  531. radioChange(e) {
  532. this.secondClubType = e.target.value;
  533. if( this.secondClubType == '2' || this.secondClubType == '3'){
  534. this.isDepartment = true
  535. }else{
  536. this.isDepartment = false
  537. }
  538. for (let i = 0; i < this.beautyList.length; i++) {
  539. if (this.beautyList[i].value === this.secondClubType) {
  540. this.current = i;
  541. break;
  542. }
  543. }
  544. },
  545. chooseMaleLike(e){
  546. this.isMainproCheck = true
  547. this.mainpro = this.checkLikes(e,this.mentuzCampList)
  548. },
  549. chooseMaleLikes(e){
  550. this.isMainproCheck = true
  551. this.mainpro = this.checkLikes(e,this.medicaCampList)
  552. },
  553. checkLikes(e,list){
  554. let items = list
  555. let values = e.detail.value
  556. let arr = []
  557. for (let i = 0, lenI = items.length; i < lenI; ++i) {
  558. const item = items[i]
  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,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>