apply.vue 30 KB

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