apply.vue 34 KB

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