apply.vue 29 KB

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