apply.vue 29 KB

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