apply.vue 29 KB

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