information.vue 28 KB

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