apply.vue 29 KB

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