apply.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032
  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.uploadBusinessImage == ''){
  396. this.$util.msg('请上传您的营业执照',2000);
  397. return
  398. }
  399. if(this.isOrganizationType!=0){
  400. if(this.mainpro == ''){
  401. this.$util.msg('请选择住机构主营内容',2000);
  402. return
  403. }
  404. }
  405. let params ={
  406. userID:this.userID,
  407. clubID:this.clubID, //会所ID
  408. contractEmail1:this.registerEmail,
  409. name:this.clubName,
  410. sname:this.abbreviation,
  411. provinceID:this.addressData.provinceID,
  412. cityID:this.addressData.cityID,
  413. townID:this.addressData.townID,
  414. address:this.addressData.addressDetail,
  415. socialCreditCode:this.socialCreditCode,
  416. businessLicenseImage:this.uploadBusinessImage,
  417. headpic:this.uploadMentuzImage,
  418. firstClubType:this.isOrganizationType, //机构类型分类 医美:1和生美:2
  419. secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
  420. department:this.department, //科室
  421. medicalPracticeLicenseImg:this.uploadMedicalImage,//资质图片
  422. mainpro:this.mainpro,
  423. }
  424. organizationRegister(params).then(response =>{
  425. this.$util.msg('您的升级申请已提交审核',2000);
  426. setTimeout(()=>{
  427. uni.navigateBack();
  428. },2000)
  429. }).catch(error =>{
  430. this.$util.msg(error.msg,2000);
  431. })
  432. },
  433. // 三级联动选择
  434. showMulLinkageThreePicker() {
  435. this.isShowInput = true
  436. this.$refs.mpvueCityPicker.show()
  437. },
  438. onConfirm(e) {
  439. this.addressData.address = e.name;
  440. this.addressData.townID = e.townCode;
  441. this.addressData.cityID = e.cityCode;
  442. this.addressData.provinceID = e.provinceCode;
  443. },
  444. onTextareaInput(e){
  445. this.addressData.addressDetail = e.detail.value;
  446. },
  447. showTextareaFocus(){//文本框获取焦点
  448. this.isShowInput = false
  449. this.textareaFocus = true
  450. },
  451. hideTextareaFocus(){//文本框失去焦点
  452. this.isShowInput = true
  453. this.textareaFocus = false
  454. },
  455. chooseBusinessImage() {//营业执照图片上传
  456. uploadFileImage().then(res =>{
  457. this.uploadBusinessImage = JSON.parse(res.data).data
  458. })
  459. },
  460. chooseMentuzImage() {//门头照图片上传
  461. uploadFileImage().then(res =>{
  462. this.uploadMentuzImage = JSON.parse(res.data).data
  463. })
  464. },
  465. chooseMedicalImage() {//资质照图片上传
  466. uploadFileImage().then(res =>{
  467. this.uploadMedicalImage = JSON.parse(res.data).data
  468. })
  469. },
  470. viewBusinessImage(e) {
  471. this.myPreviewImageFn(this.uploadBusinessImage)
  472. },
  473. viewMentuzImage(e) {
  474. this.myPreviewImageFn(this.uploadMentuzImage)
  475. },
  476. viewMedicalImage(e) {
  477. this.myPreviewImageFn(this.uploadMedicalImage)
  478. },
  479. myPreviewImageFn(url){
  480. this.isPreviewImage = true
  481. let mentuzArray = []
  482. mentuzArray.push(url)
  483. uni.previewImage({
  484. urls: mentuzArray,
  485. current: 0
  486. });
  487. },
  488. delBusinessImage(){
  489. this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
  490. this.uploadBusinessImage = ''
  491. })
  492. },
  493. delMentuzImage(){
  494. this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
  495. this.uploadMentuzImage = ''
  496. })
  497. },
  498. delMedicalImage(){
  499. this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
  500. this.uploadMedicalImage = ''
  501. })
  502. },
  503. bindPickerChange() {
  504. let self = this
  505. uni.showActionSheet({
  506. title:'标题',
  507. itemList: ['医美', '生美'],
  508. success: (e) => {
  509. self.isOrganizationType = e.tapIndex+1
  510. switch(e.tapIndex){
  511. case 0:
  512. this.organizationTypeText = '医美'
  513. break;
  514. case 1:
  515. this.organizationTypeText = '生美'
  516. break;
  517. }
  518. }
  519. })
  520. },
  521. bindPickerChange2(e) {
  522. this.typtIndex = e.target.value
  523. this.isOrganizationType = e.target.value
  524. },
  525. radioChange(e) {
  526. this.secondClubType = e.target.value;
  527. if( this.secondClubType == '2' || this.secondClubType == '3'){
  528. this.isDepartment = true
  529. }else{
  530. this.isDepartment = false
  531. }
  532. for (let i = 0; i < this.beautyList.length; i++) {
  533. if (this.beautyList[i].value === this.secondClubType) {
  534. this.current = i;
  535. break;
  536. }
  537. }
  538. },
  539. chooseMaleLike(e){
  540. this.isMainproCheck = true
  541. this.mainpro = this.checkLikes(e,this.mentuzCampList)
  542. },
  543. chooseMaleLikes(e){
  544. this.isMainproCheck = true
  545. this.mainpro = this.checkLikes(e,this.medicaCampList)
  546. },
  547. checkLikes(e,list){
  548. let values = e.detail.value
  549. let arr = []
  550. list.forEach(item => {
  551. if(values.indexOf(item.value) >= 0){
  552. this.$set(item,'checked',true)
  553. arr.push(item.name)
  554. }else{
  555. this.$set(item,'checked',false)
  556. }
  557. })
  558. return arr.join('/')
  559. },
  560. onBlurInput(e){//
  561. if(e.detail.value ===''){
  562. this.isDisabled = true
  563. }else{
  564. this.isDisabled = false
  565. }
  566. },
  567. showAustomItem() {
  568. this.isShowAustomItem = !this.isShowAustomItem
  569. },
  570. setNewMainpro(arr){//回显处理主营内容
  571. let _ARRAY = []
  572. arr.split('/').forEach((item,index) =>{
  573. let _OBJ = {value:(index+1).toString(),name:item,checked:true}
  574. _ARRAY.push(_OBJ)
  575. })
  576. return _ARRAY
  577. },
  578. addCustomItem(){
  579. if(this.isOrganizationType == 1){
  580. let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue,checked:true}
  581. this.mentuzCampList.push(item)
  582. }else{
  583. let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue,checked:true}
  584. this.medicaCampList.push(item)
  585. }
  586. },
  587. },
  588. onShow() {
  589. if(this.isPreviewImage){
  590. this.isPreviewImage = false
  591. return
  592. }
  593. }
  594. }
  595. </script>
  596. <style lang="scss">
  597. .register{
  598. width: 100%;
  599. height: auto;
  600. border-top: 1px solid #F7F7F7;
  601. background: #EFEFEF;
  602. .register-main{
  603. width: 100%;
  604. height: auto;
  605. background: #FFFFFF;
  606. padding: 20rpx 0;
  607. margin-bottom: 20rpx;
  608. &.detailed{
  609. padding-bottom: 300rpx;
  610. }
  611. &.first{
  612. padding-top: 110rpx;
  613. }
  614. .register-tips{
  615. display: flex;
  616. flex-direction: column;
  617. align-items: center;
  618. line-height: 44rpx;
  619. font-size: $font-size-24;
  620. color: #FF0000;
  621. margin-bottom: 40rpx;
  622. .iconfont{
  623. font-size: $font-size-24;
  624. }
  625. }
  626. .register-row{
  627. width: 702rpx;
  628. height: auto;
  629. padding: 0 24rpx;
  630. margin-bottom: 20rpx;
  631. &.none{
  632. margin-bottom: 0;
  633. }
  634. .error-title{
  635. line-height: 40rpx;
  636. font-size: $font-size-28;
  637. color: $text-color;
  638. text-align: left;
  639. }
  640. .error-main{
  641. padding: 10rpx 0;
  642. .error-item{
  643. padding:0 20rpx;
  644. margin:10rpx;
  645. background: #F53636;
  646. height: 52rpx;
  647. line-height: 52rpx;
  648. border-radius: 26rpx;
  649. font-size: $font-size-26;
  650. color: #FFFFFF;
  651. text-align: center;
  652. display: inline-block;
  653. }
  654. }
  655. .register-tip{
  656. line-height: 64rpx;
  657. font-size: $font-size-24;
  658. color: #CECECE;
  659. text-align: left;
  660. }
  661. .register-title{
  662. line-height: 44rpx;
  663. font-size: $font-size-24;
  664. color: $text-color;
  665. text-align: left;
  666. }
  667. .row-btn{
  668. position: absolute;
  669. right: 24rpx;
  670. top: 0;
  671. line-height: 88rpx;
  672. text-align: center;
  673. font-size: $font-size-28;
  674. color: $color-system;
  675. }
  676. .register-from{
  677. width: 100%;
  678. height: 88rpx;
  679. background: #FFFFFF;
  680. position: relative;
  681. border-bottom: 1px solid #e1e1e1;
  682. .label{
  683. text-align: left;
  684. font-size: $font-size-28;
  685. color: #666666;
  686. line-height: 88rpx;
  687. float: left;
  688. }
  689. .row-input{
  690. width: 440rpx;
  691. padding-left:10rpx;
  692. font-size: $font-size-28;
  693. color: $text-color;
  694. line-height: 88rpx;
  695. float: left;
  696. height: 88rpx;
  697. &.none{
  698. color: #999999;
  699. }
  700. &.picker{
  701. text-align: left;
  702. color: #333333;
  703. }
  704. &.keshi{
  705. width: 550rpx;
  706. }
  707. }
  708. &.code{
  709. width: 410rpx;
  710. float: left;
  711. margin-right: 20rpx;
  712. .row-input{
  713. width: 390rpx;
  714. }
  715. }
  716. &.btn{
  717. width: 224rpx;
  718. height: 88rpx;
  719. float: left;
  720. background: $btn-confirm;
  721. padding: 0;
  722. .row-input{
  723. width: 224rpx;
  724. height: 88rpx;
  725. line-height: 88rpx;
  726. padding: 0;
  727. color: #FFFFFF;
  728. background: $btn-confirm;
  729. text-align: center;
  730. border-radius: 14rpx;
  731. &.other{
  732. width: 224rpx;
  733. background: #F7F7F7;
  734. margin-right: 20rpx;
  735. }
  736. &.none{
  737. background: #F7F7F7;
  738. }
  739. }
  740. &.disabled{
  741. background: #F7F7F7;
  742. .row-input{
  743. background: #F7F7F7;
  744. color: #999999;
  745. }
  746. }
  747. }
  748. &.picker{
  749. width: 100%;
  750. height: 88rpx;
  751. line-height: 88rpx;
  752. .label{
  753. line-height: 88rpx;
  754. }
  755. .row-input{
  756. width: 470rpx;
  757. height: 88rpx;
  758. line-height: 88rpx;
  759. padding-left: 30rpx;
  760. }
  761. }
  762. &.radio{
  763. width: 654rpx;
  764. height: 288rpx;
  765. .row-input{
  766. width: 100%;
  767. height: 88rpx;
  768. line-height: 88rpx;
  769. padding-left: 0;
  770. }
  771. .row-radio{
  772. float: left;
  773. transform: scale(0.8);
  774. }
  775. .row-text{
  776. width: 100rpx;
  777. text-align: center;
  778. float: left;
  779. }
  780. }
  781. &.group{
  782. width: 654rpx;
  783. height: auto;
  784. background: #FFFFFF;
  785. margin-top: 30rpx;
  786. .label{
  787. line-height: 76rpx;
  788. }
  789. .row-input{
  790. width: 100%;
  791. height: 88rpx;
  792. line-height: 88rpx;
  793. padding-left: 0;
  794. }
  795. .row-radio{
  796. float: left;
  797. }
  798. .row-text{
  799. width: 100rpx;
  800. text-align: center;
  801. float: left;
  802. }
  803. }
  804. &.btn{
  805. margin-top: 0;
  806. }
  807. .content-class {
  808. margin: 20rpx auto;
  809. display: flex;
  810. flex-flow: row wrap;
  811. justify-content: space-between;
  812. align-items: center;
  813. &.btn{
  814. margin: 0 auto;
  815. margin-left: 116rpx;
  816. }
  817. .row-input{
  818. display: flex;
  819. width: 220rpx;
  820. height: 40rpx;
  821. padding: 24rpx;
  822. text-align: left;
  823. border-radius: 10rpx;
  824. font-size: $font-size-28;
  825. color: $text-color;
  826. }
  827. .confirm-btn{
  828. width: 200rpx;
  829. height: 88rpx;
  830. border-radius: 10rpx;
  831. line-height: 88rpx;
  832. text-align: center;
  833. &.other{
  834. width: 213rpx;
  835. }
  836. &.none{
  837. color: #FFFFFF;
  838. background: $btn-confirm;
  839. }
  840. &.disabled{
  841. color: #999999;
  842. }
  843. }
  844. .item {
  845. width: 155rpx;
  846. height: 60rpx;
  847. font-size:$font-size-28;
  848. line-height: 60rpx;
  849. border-radius:10rpx;
  850. margin: 10rpx;
  851. text-align: center;
  852. box-sizing: border-box;
  853. border: 1rpx solid #EFEFEF;
  854. float: left;
  855. checkbox {
  856. display: none;
  857. }
  858. }
  859. .on {
  860. border-color: $color-system;
  861. color:$color-system;
  862. }
  863. }
  864. }
  865. .icon-xiayibu{
  866. width: 88rpx;
  867. height: 88rpx;
  868. position: absolute;
  869. right: 0;
  870. top: 0;
  871. line-height: 88rpx;
  872. text-align: center;
  873. }
  874. &.text-textarea{
  875. background: #FFFFFF;
  876. .textarea{
  877. width: 100%;
  878. height: 120rpx;
  879. background: #FFFFFF;
  880. padding: 24rpx 0;
  881. font-size: $font-size-28;
  882. color: $text-color;
  883. z-index: 1;
  884. border-bottom: 1px solid #E1E1E1;
  885. }
  886. .textarea.hide{
  887. opacity: 0;
  888. }
  889. .textarea.show{
  890. color: #999999;
  891. }
  892. }
  893. }
  894. .register-picture{
  895. height: 102rpx;
  896. margin: 30rpx 0;
  897. width: 42%;
  898. float: left;
  899. &.zz{
  900. width: 100%;
  901. }
  902. .label{
  903. float: left;
  904. font-size: $font-size-28;
  905. color: $text-color;
  906. line-height: 102rpx;
  907. width: 150rpx;
  908. text-align: left;
  909. &.zz{
  910. width: 230rpx;
  911. }
  912. }
  913. .upload-picture{
  914. float: left;
  915. height: 100rpx;
  916. .upload-none{
  917. width: 100rpx;
  918. height: 100rpx;
  919. text-align: center;
  920. line-height: 100rpx;
  921. color: #999999;
  922. border: 1px solid #999999;
  923. border-radius: 10rpx;
  924. margin: 0 20rpx;
  925. .iconfont{
  926. font-size: $font-size-28;
  927. }
  928. }
  929. .upload-image{
  930. width: 100rpx;
  931. height: 100rpx;
  932. border-radius: 10rpx;
  933. margin: 0 20rpx;
  934. position: relative;
  935. image{
  936. width: 100rpx;
  937. height: 100rpx;
  938. border-radius: 10rpx;
  939. }
  940. .upload-del{
  941. width: 40rpx;
  942. height: 40rpx;
  943. position: absolute;
  944. top: -20rpx;
  945. right: -20rpx;
  946. line-height: 40rpx;
  947. text-align: center;
  948. .iconfont{
  949. font-size: $font-size-32;
  950. color: #999999;
  951. }
  952. }
  953. }
  954. }
  955. }
  956. .register-input{
  957. width: 654rpx;
  958. height: 40rpx;
  959. padding: 24rpx;
  960. margin: 0 auto;
  961. margin-bottom: 60rpx;
  962. background: #F7F7F7;
  963. border-radius: 14rpx;
  964. .input{
  965. width: 100%;
  966. height: 100%;
  967. background: #F7F7F7;
  968. font-size: $font-size-28;
  969. line-height: 40rpx;
  970. color: #333333;
  971. border-radius: 14rpx;
  972. }
  973. }
  974. .register-fiexd{
  975. width: 100%;
  976. height: auto;
  977. padding: 20rpx 0;
  978. position: fixed;
  979. bottom: 0;
  980. left: 0;
  981. z-index: 99;
  982. background: #FFFFFF;
  983. .register-agree{
  984. display: flex;
  985. flex-direction: column;
  986. align-items: center;
  987. margin: 32rpx 0;
  988. .agree-text{
  989. .checkbox{
  990. float: left;
  991. margin: 4rpx 6rpx 0 0;
  992. color: #999999;
  993. font-size: $font-size-32;
  994. &.icon-gouxuan{
  995. color: $color-system;
  996. }
  997. }
  998. font-size: 20rpx;
  999. line-height: 44rpx;
  1000. color: #999999;
  1001. text{
  1002. color:#0091FF;
  1003. }
  1004. }
  1005. }
  1006. }
  1007. .register-btn{
  1008. width: 600rpx;
  1009. height: 88rpx;
  1010. border-radius: 44rpx;
  1011. font-size: $font-size-28;
  1012. line-height: 88rpx;
  1013. color: #FFFFFF;
  1014. margin: 0 auto;
  1015. text-align: center;
  1016. background: $btn-confirm;
  1017. margin-top: 96rpx;
  1018. &.none{
  1019. background: #FFFFFF;
  1020. color: $text-color;
  1021. margin-top: 0;
  1022. }
  1023. &.sub{
  1024. margin-top: 0;
  1025. }
  1026. }
  1027. }
  1028. }
  1029. </style>