information.vue 29 KB

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