apply.vue 29 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019
  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. uni.navigateBack();
  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 values = e.detail.value
  535. let arr = []
  536. list.forEach(item => {
  537. if(values.indexOf(item.value) >= 0){
  538. this.$set(item,'checked',true)
  539. arr.push(item.name)
  540. }else{
  541. this.$set(item,'checked',false)
  542. }
  543. })
  544. return arr.join('/')
  545. },
  546. onBlurInput(e){//
  547. if(e.detail.value ===''){
  548. this.isDisabled = true
  549. }else{
  550. this.isDisabled = false
  551. }
  552. },
  553. showAustomItem() {
  554. this.isShowAustomItem = !this.isShowAustomItem
  555. },
  556. setNewMainpro(arr){//回显处理主营内容
  557. let _ARRAY = []
  558. arr.split('/').forEach((item,index) =>{
  559. let _OBJ = {value:(index+1).toString(),name:item,checked:true}
  560. _ARRAY.push(_OBJ)
  561. })
  562. return _ARRAY
  563. },
  564. addCustomItem(){
  565. if(this.isOrganizationType == 1){
  566. let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue,checked:true}
  567. this.mentuzCampList.push(item)
  568. }else{
  569. let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue,checked:true}
  570. this.medicaCampList.push(item)
  571. }
  572. },
  573. },
  574. onShow() {
  575. if(this.isPreviewImage){
  576. this.isPreviewImage = false
  577. return
  578. }
  579. }
  580. }
  581. </script>
  582. <style lang="scss">
  583. .register{
  584. width: 100%;
  585. height: auto;
  586. border-top: 1px solid #F7F7F7;
  587. background: #EFEFEF;
  588. .register-main{
  589. width: 100%;
  590. height: auto;
  591. background: #FFFFFF;
  592. padding: 20rpx 0;
  593. margin-bottom: 20rpx;
  594. &.detailed{
  595. padding-bottom: 300rpx;
  596. }
  597. &.first{
  598. padding-top: 110rpx;
  599. }
  600. .register-tips{
  601. display: flex;
  602. flex-direction: column;
  603. align-items: center;
  604. line-height: 44rpx;
  605. font-size: $font-size-24;
  606. color: #FF0000;
  607. margin-bottom: 40rpx;
  608. .iconfont{
  609. font-size: $font-size-24;
  610. }
  611. }
  612. .register-row{
  613. width: 702rpx;
  614. height: auto;
  615. padding: 0 24rpx;
  616. margin-bottom: 20rpx;
  617. &.none{
  618. margin-bottom: 0;
  619. }
  620. .error-title{
  621. line-height: 40rpx;
  622. font-size: $font-size-28;
  623. color: $text-color;
  624. text-align: left;
  625. }
  626. .error-main{
  627. padding: 10rpx 0;
  628. .error-item{
  629. padding:0 20rpx;
  630. margin:10rpx;
  631. background: #F53636;
  632. height: 52rpx;
  633. line-height: 52rpx;
  634. border-radius: 26rpx;
  635. font-size: $font-size-26;
  636. color: #FFFFFF;
  637. text-align: center;
  638. display: inline-block;
  639. }
  640. }
  641. .register-tip{
  642. line-height: 64rpx;
  643. font-size: $font-size-24;
  644. color: #CECECE;
  645. text-align: left;
  646. }
  647. .register-title{
  648. line-height: 44rpx;
  649. font-size: $font-size-24;
  650. color: $text-color;
  651. text-align: left;
  652. }
  653. .row-btn{
  654. position: absolute;
  655. right: 24rpx;
  656. top: 0;
  657. line-height: 88rpx;
  658. text-align: center;
  659. font-size: $font-size-28;
  660. color: $color-system;
  661. }
  662. .register-from{
  663. width: 654rpx;
  664. height: 40rpx;
  665. padding: 24rpx;
  666. background: $sub-bg-color;
  667. border-radius: 14rpx;
  668. position: relative;
  669. .label{
  670. text-align: left;
  671. font-size: $font-size-28;
  672. color: #666666;
  673. line-height: 40rpx;
  674. float: left;
  675. }
  676. .row-input{
  677. width: 440rpx;
  678. padding-left:10rpx;
  679. font-size: $font-size-28;
  680. color: $text-color;
  681. line-height: 40rpx;
  682. float: left;
  683. height: 40rpx;
  684. &.none{
  685. color: #999999;
  686. }
  687. &.picker{
  688. text-align: left;
  689. color: #999999;
  690. }
  691. &.keshi{
  692. width: 550rpx;
  693. }
  694. }
  695. &.code{
  696. width: 410rpx;
  697. float: left;
  698. margin-right: 20rpx;
  699. .row-input{
  700. width: 390rpx;
  701. }
  702. }
  703. &.btn{
  704. width: 224rpx;
  705. height: 88rpx;
  706. float: left;
  707. background: $btn-confirm;
  708. padding: 0;
  709. .row-input{
  710. width: 224rpx;
  711. height: 88rpx;
  712. line-height: 88rpx;
  713. padding: 0;
  714. color: #FFFFFF;
  715. background: $btn-confirm;
  716. text-align: center;
  717. border-radius: 14rpx;
  718. &.other{
  719. width: 224rpx;
  720. background: #F7F7F7;
  721. margin-right: 20rpx;
  722. }
  723. &.none{
  724. background: #F7F7F7;
  725. }
  726. }
  727. &.disabled{
  728. background: #F7F7F7;
  729. .row-input{
  730. background: #F7F7F7;
  731. color: #999999;
  732. }
  733. }
  734. }
  735. &.picker{
  736. padding: 0 24rpx;
  737. width: 654rpx;
  738. height: 88rpx;
  739. line-height: 88rpx;
  740. .label{
  741. line-height: 88rpx;
  742. }
  743. .row-input{
  744. width: 470rpx;
  745. height: 88rpx;
  746. line-height: 88rpx;
  747. padding-left: 30rpx;
  748. }
  749. }
  750. &.radio{
  751. padding: 0 24rpx;
  752. width: 654rpx;
  753. height: 288rpx;
  754. .row-input{
  755. width: 100%;
  756. height: 88rpx;
  757. line-height: 88rpx;
  758. padding-left: 0;
  759. }
  760. .row-radio{
  761. float: left;
  762. transform: scale(0.8);
  763. }
  764. .row-text{
  765. width: 100rpx;
  766. text-align: center;
  767. float: left;
  768. }
  769. }
  770. &.group{
  771. padding: 0 24rpx;
  772. width: 654rpx;
  773. height: auto;
  774. background: #FFFFFF;
  775. margin-top: 30rpx;
  776. .label{
  777. line-height: 76rpx;
  778. }
  779. .row-input{
  780. width: 100%;
  781. height: 88rpx;
  782. line-height: 88rpx;
  783. padding-left: 0;
  784. }
  785. .row-radio{
  786. float: left;
  787. }
  788. .row-text{
  789. width: 100rpx;
  790. text-align: center;
  791. float: left;
  792. }
  793. }
  794. &.btn{
  795. margin-top: 0;
  796. }
  797. .content-class {
  798. margin: 20rpx auto;
  799. display: flex;
  800. flex-flow: row wrap;
  801. justify-content: space-between;
  802. align-items: center;
  803. &.btn{
  804. margin: 0 auto;
  805. margin-left: 116rpx;
  806. }
  807. .row-input{
  808. display: flex;
  809. width: 220rpx;
  810. height: 40rpx;
  811. padding: 24rpx;
  812. text-align: left;
  813. border-radius: 10rpx;
  814. font-size: $font-size-28;
  815. color: $text-color;
  816. }
  817. .confirm-btn{
  818. width: 200rpx;
  819. height: 88rpx;
  820. border-radius: 10rpx;
  821. line-height: 88rpx;
  822. text-align: center;
  823. &.none{
  824. color: #FFFFFF;
  825. background: $btn-confirm;
  826. }
  827. &.disabled{
  828. color: #999999;
  829. }
  830. }
  831. .item {
  832. width: 155rpx;
  833. height: 60rpx;
  834. font-size:$font-size-28;
  835. line-height: 60rpx;
  836. border-radius:10rpx;
  837. margin: 10rpx;
  838. text-align: center;
  839. box-sizing: border-box;
  840. border: 1rpx solid #EFEFEF;
  841. checkbox {
  842. display: none;
  843. }
  844. }
  845. .on {
  846. border-color: $color-system;
  847. color:$color-system;
  848. }
  849. }
  850. }
  851. .icon-xiayibu{
  852. width: 88rpx;
  853. height: 88rpx;
  854. position: absolute;
  855. right: 0;
  856. top: 0;
  857. line-height: 88rpx;
  858. text-align: center;
  859. }
  860. &.text-textarea{
  861. background: #FFFFFF;
  862. .textarea{
  863. width: 654rpx;
  864. height: 180rpx;
  865. background: #F7F7F7;
  866. padding: 24rpx;
  867. font-size: $font-size-28;
  868. color: $text-color;
  869. z-index: 1;
  870. border-radius: 14rpx;
  871. }
  872. .textarea.hide{
  873. opacity: 0;
  874. }
  875. .textarea.show{
  876. color: #999999;
  877. }
  878. }
  879. }
  880. .register-picture{
  881. height: 102rpx;
  882. margin: 30rpx 0;
  883. width: 42%;
  884. float: left;
  885. &.zz{
  886. width: 100%;
  887. }
  888. .label{
  889. float: left;
  890. font-size: $font-size-28;
  891. color: $text-color;
  892. line-height: 102rpx;
  893. width: 150rpx;
  894. text-align: right;
  895. &.zz{
  896. width: 230rpx;
  897. }
  898. }
  899. .upload-picture{
  900. float: left;
  901. height: 100rpx;
  902. .upload-none{
  903. width: 100rpx;
  904. height: 100rpx;
  905. text-align: center;
  906. line-height: 100rpx;
  907. color: #999999;
  908. border: 1px solid #999999;
  909. border-radius: 10rpx;
  910. margin: 0 20rpx;
  911. .iconfont{
  912. font-size: $font-size-28;
  913. }
  914. }
  915. .upload-image{
  916. width: 100rpx;
  917. height: 100rpx;
  918. border-radius: 10rpx;
  919. margin: 0 20rpx;
  920. position: relative;
  921. image{
  922. width: 100rpx;
  923. height: 100rpx;
  924. border-radius: 10rpx;
  925. }
  926. .upload-del{
  927. width: 40rpx;
  928. height: 40rpx;
  929. position: absolute;
  930. top: -20rpx;
  931. right: -20rpx;
  932. line-height: 40rpx;
  933. text-align: center;
  934. .iconfont{
  935. font-size: $font-size-32;
  936. color: #999999;
  937. }
  938. }
  939. }
  940. }
  941. }
  942. .register-input{
  943. width: 654rpx;
  944. height: 40rpx;
  945. padding: 24rpx;
  946. margin: 0 auto;
  947. margin-bottom: 60rpx;
  948. background: #F7F7F7;
  949. border-radius: 14rpx;
  950. .input{
  951. width: 100%;
  952. height: 100%;
  953. background: #F7F7F7;
  954. font-size: $font-size-28;
  955. line-height: 40rpx;
  956. color: #333333;
  957. border-radius: 14rpx;
  958. }
  959. }
  960. .register-fiexd{
  961. width: 100%;
  962. height: auto;
  963. padding: 20rpx 0;
  964. position: fixed;
  965. bottom: 0;
  966. left: 0;
  967. z-index: 99;
  968. background: #FFFFFF;
  969. .register-agree{
  970. display: flex;
  971. flex-direction: column;
  972. align-items: center;
  973. margin: 32rpx 0;
  974. .agree-text{
  975. .checkbox{
  976. float: left;
  977. margin: 4rpx 6rpx 0 0;
  978. color: #999999;
  979. font-size: $font-size-32;
  980. &.icon-gouxuan{
  981. color: $color-system;
  982. }
  983. }
  984. font-size: 20rpx;
  985. line-height: 44rpx;
  986. color: #999999;
  987. text{
  988. color:#0091FF;
  989. }
  990. }
  991. }
  992. }
  993. .register-btn{
  994. width: 702rpx;
  995. height: 88rpx;
  996. border-radius: 14rpx;
  997. font-size: $font-size-28;
  998. line-height: 88rpx;
  999. color: #FFFFFF;
  1000. margin: 0 auto;
  1001. text-align: center;
  1002. background: $btn-confirm;
  1003. margin-top: 96rpx;
  1004. &.none{
  1005. background: #FFFFFF;
  1006. color: $text-color;
  1007. margin-top: 0;
  1008. }
  1009. &.sub{
  1010. margin-top: 0;
  1011. }
  1012. }
  1013. }
  1014. }
  1015. </style>