apply.vue 30 KB

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