apply.vue 29 KB

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