apply.vue 30 KB

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