apply.vue 29 KB

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