information.vue 29 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022
  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 values = e.detail.value
  555. let arr = []
  556. list.forEach(item => {
  557. if(values.indexOf(item.value) >= 0){
  558. this.$set(item,'checked',true)
  559. arr.push(item.name)
  560. }else{
  561. this.$set(item,'checked',false)
  562. }
  563. })
  564. return arr.join('/')
  565. },
  566. agreeCheck() {
  567. this.isCheck = !this.isCheck
  568. if(this.isCheck){
  569. this.isAgreed = 1
  570. }else{
  571. this.isAgreed = 0
  572. }
  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. if(this.isPreviewImage){
  604. this.isPreviewImage = false
  605. return
  606. }
  607. }
  608. }
  609. </script>
  610. <style lang="scss">
  611. .register{
  612. width: 100%;
  613. height: auto;
  614. border-top: 1px solid #F7F7F7;
  615. .model-warp.none{
  616. display: none;
  617. }
  618. .model-warp.show{
  619. display: block;
  620. }
  621. .register-main{
  622. width: 100%;
  623. height: auto;
  624. &.detailed{
  625. padding-bottom: 300rpx;
  626. }
  627. &.first{
  628. padding-top: 40rpx;
  629. }
  630. .register-tips{
  631. display: flex;
  632. flex-direction: column;
  633. align-items: center;
  634. line-height: 44rpx;
  635. font-size: $font-size-24;
  636. color: #FF0000;
  637. margin-bottom: 40rpx;
  638. .iconfont{
  639. font-size: $font-size-24;
  640. }
  641. }
  642. .register-row{
  643. width: 702rpx;
  644. height: auto;
  645. padding: 0 24rpx;
  646. margin-bottom: 20rpx;
  647. .register-title{
  648. line-height: 60rpx;
  649. font-size: $font-size-32;
  650. color: $text-color;
  651. text-align: left;
  652. padding-left: 20rpx;
  653. .txt{
  654. font-size: $font-size-26;
  655. font-weight: normal;
  656. }
  657. }
  658. .row-btn{
  659. position: absolute;
  660. right: 24rpx;
  661. top: 0;
  662. line-height: 88rpx;
  663. text-align: center;
  664. font-size: $font-size-28;
  665. color: $color-system;
  666. }
  667. .register-from{
  668. width: 654rpx;
  669. height: 40rpx;
  670. padding: 24rpx;
  671. background: $sub-bg-color;
  672. border-radius: 14rpx;
  673. position: relative;
  674. .label{
  675. text-align: left;
  676. font-size: $font-size-28;
  677. color: #666666;
  678. line-height: 40rpx;
  679. float: left;
  680. }
  681. .row-input{
  682. width: 440rpx;
  683. padding-left:10rpx;
  684. font-size: $font-size-28;
  685. color: $text-color;
  686. line-height: 40rpx;
  687. float: left;
  688. height: 40rpx;
  689. &.none{
  690. color: #999999;
  691. }
  692. &.picker{
  693. text-align: left;
  694. color: #999999;
  695. }
  696. &.keshi{
  697. width: 550rpx;
  698. }
  699. }
  700. &.code{
  701. width: 410rpx;
  702. float: left;
  703. margin-right: 20rpx;
  704. .row-input{
  705. width: 390rpx;
  706. }
  707. }
  708. &.btn{
  709. width: 224rpx;
  710. height: 88rpx;
  711. float: left;
  712. background: $btn-confirm;
  713. padding: 0;
  714. .row-input{
  715. width: 224rpx;
  716. height: 88rpx;
  717. line-height: 88rpx;
  718. padding: 0;
  719. color: #FFFFFF;
  720. background: $btn-confirm;
  721. text-align: center;
  722. border-radius: 14rpx;
  723. &.other{
  724. width: 224rpx;
  725. background: #F7F7F7;
  726. margin-right: 20rpx;
  727. }
  728. &.none{
  729. background: #F7F7F7;
  730. }
  731. }
  732. &.disabled{
  733. background: #F7F7F7;
  734. .row-input{
  735. background: #F7F7F7;
  736. color: #999999;
  737. }
  738. }
  739. }
  740. &.picker{
  741. padding: 0 24rpx;
  742. width: 654rpx;
  743. height: 88rpx;
  744. line-height: 88rpx;
  745. .label{
  746. line-height: 88rpx;
  747. }
  748. .row-input{
  749. width: 470rpx;
  750. height: 88rpx;
  751. line-height: 88rpx;
  752. padding-left: 30rpx;
  753. }
  754. }
  755. &.radio{
  756. padding: 0 24rpx;
  757. width: 654rpx;
  758. height: 288rpx;
  759. .row-input{
  760. width: 100%;
  761. height: 88rpx;
  762. line-height: 88rpx;
  763. padding-left: 0;
  764. }
  765. .row-radio{
  766. float: left;
  767. transform: scale(0.8);
  768. }
  769. .row-text{
  770. width: 100rpx;
  771. text-align: center;
  772. float: left;
  773. }
  774. }
  775. &.group{
  776. padding: 0 24rpx;
  777. width: 654rpx;
  778. height: auto;
  779. background: #FFFFFF;
  780. margin-top: 30rpx;
  781. .label{
  782. line-height: 70rpx;
  783. }
  784. .row-input{
  785. width: 100%;
  786. height: 88rpx;
  787. line-height: 88rpx;
  788. padding-left: 0;
  789. }
  790. .row-radio{
  791. float: left;
  792. }
  793. .row-text{
  794. width: 100rpx;
  795. text-align: center;
  796. float: left;
  797. }
  798. }
  799. &.btn{
  800. margin-top: 0;
  801. }
  802. .content-class {
  803. margin: 20rpx auto;
  804. display: flex;
  805. flex-flow: row wrap;
  806. justify-content: space-between;
  807. &.btn{
  808. margin: 0 auto;
  809. margin-left: 116rpx;
  810. }
  811. .row-input{
  812. display: flex;
  813. width: 220rpx;
  814. height: 40rpx;
  815. padding: 24rpx;
  816. text-align: left;
  817. border-radius: 10rpx;
  818. font-size: $font-size-28;
  819. color: $text-color;
  820. }
  821. .confirm-btn{
  822. width: 200rpx;
  823. height: 88rpx;
  824. border-radius: 10rpx;
  825. line-height: 88rpx;
  826. text-align: center;
  827. &.none{
  828. color: #FFFFFF;
  829. background: $btn-confirm;
  830. }
  831. &.disabled{
  832. color: #999999;
  833. }
  834. }
  835. .item {
  836. width: 155rpx;
  837. height: 60rpx;
  838. font-size:$font-size-28;
  839. line-height: 60rpx;
  840. border-radius:10rpx;
  841. margin: 10rpx;
  842. text-align: center;
  843. box-sizing: border-box;
  844. border: 1rpx solid #EFEFEF;
  845. checkbox {
  846. display: none;
  847. }
  848. }
  849. .on {
  850. border-color: $color-system;
  851. color:$color-system;
  852. }
  853. }
  854. }
  855. .icon-xiayibu{
  856. width: 88rpx;
  857. height: 88rpx;
  858. position: absolute;
  859. right: 0;
  860. top: 0;
  861. line-height: 88rpx;
  862. text-align: center;
  863. }
  864. &.text-textarea{
  865. background: #FFFFFF;
  866. .textarea{
  867. width: 654rpx;
  868. height: 180rpx;
  869. background: #F7F7F7;
  870. padding: 24rpx;
  871. font-size: $font-size-28;
  872. color: $text-color;
  873. z-index: 1;
  874. border-radius: 14rpx;
  875. }
  876. .textarea.hide{
  877. opacity: 0;
  878. }
  879. .textarea.show{
  880. color: #999999;
  881. }
  882. }
  883. }
  884. .register-picture{
  885. height: 102rpx;
  886. margin: 30rpx 0;
  887. width: 42%;
  888. float: left;
  889. &.zz{
  890. width: 100%;
  891. }
  892. .label{
  893. float: left;
  894. font-size: $font-size-28;
  895. color: $text-color;
  896. line-height: 102rpx;
  897. width: 150rpx;
  898. text-align: right;
  899. &.zz{
  900. width: 230rpx;
  901. }
  902. }
  903. .upload-picture{
  904. float: left;
  905. height: 100rpx;
  906. .upload-none{
  907. width: 100rpx;
  908. height: 100rpx;
  909. text-align: center;
  910. line-height: 100rpx;
  911. color: #999999;
  912. border: 1px solid #999999;
  913. border-radius: 10rpx;
  914. margin: 0 20rpx;
  915. .iconfont{
  916. font-size: $font-size-28;
  917. }
  918. }
  919. .upload-image{
  920. width: 100rpx;
  921. height: 100rpx;
  922. border-radius: 10rpx;
  923. margin: 0 20rpx;
  924. position: relative;
  925. image{
  926. width: 100rpx;
  927. height: 100rpx;
  928. border-radius: 10rpx;
  929. }
  930. .upload-del{
  931. width: 40rpx;
  932. height: 40rpx;
  933. position: absolute;
  934. top: -20rpx;
  935. right: -20rpx;
  936. line-height: 40rpx;
  937. text-align: center;
  938. .iconfont{
  939. font-size: $font-size-32;
  940. color: #999999;
  941. }
  942. }
  943. }
  944. }
  945. }
  946. .register-input{
  947. width: 654rpx;
  948. height: 40rpx;
  949. padding: 24rpx;
  950. margin: 0 auto;
  951. margin-bottom: 60rpx;
  952. background: #F7F7F7;
  953. border-radius: 14rpx;
  954. .input{
  955. width: 100%;
  956. height: 100%;
  957. background: #F7F7F7;
  958. font-size: $font-size-28;
  959. line-height: 40rpx;
  960. color: #333333;
  961. border-radius: 14rpx;
  962. }
  963. }
  964. .register-fiexd{
  965. width: 100%;
  966. height: auto;
  967. padding: 20rpx 0;
  968. position: fixed;
  969. bottom: 0;
  970. left: 0;
  971. z-index: 99;
  972. background: #FFFFFF;
  973. .register-agree{
  974. display: flex;
  975. flex-direction: column;
  976. align-items: center;
  977. margin: 32rpx 0;
  978. .agree-text{
  979. .checkbox{
  980. float: left;
  981. margin: 4rpx 6rpx 0 0;
  982. color: #999999;
  983. font-size: $font-size-32;
  984. &.icon-gouxuan{
  985. color: $color-system;
  986. }
  987. }
  988. font-size: 20rpx;
  989. line-height: 44rpx;
  990. color: #999999;
  991. text{
  992. color:#0091FF;
  993. }
  994. }
  995. }
  996. }
  997. .register-btn{
  998. width: 702rpx;
  999. height: 88rpx;
  1000. border-radius: 14rpx;
  1001. font-size: $font-size-28;
  1002. line-height: 88rpx;
  1003. color: #FFFFFF;
  1004. margin: 0 auto;
  1005. text-align: center;
  1006. background: $btn-confirm;
  1007. margin-top: 96rpx;
  1008. &.none{
  1009. background: #FFFFFF;
  1010. color: $text-color;
  1011. margin-top: 0;
  1012. }
  1013. &.sub{
  1014. margin-top: 0;
  1015. }
  1016. }
  1017. }
  1018. }
  1019. </style>