information.vue 29 KB

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