apply.vue 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177
  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. }
  417. //机构类型
  418. switch(this.secondClubType){
  419. case '1':this.current = 0;break;
  420. case '2':this.current = 1;this.isDepartment=true;break;
  421. case '3':this.current = 2;this.isDepartment=true;break;
  422. }
  423. }).catch(error =>{
  424. this.$util.msg(error.msg,2000)
  425. })
  426. },
  427. organizationUpdateInfo(){//普通机构修改资料
  428. this.clubUpgradeApi()
  429. },
  430. organizationUpgradeInfo(){//普通机构提交审核
  431. if(this.isUpgrade){
  432. this.clubUpgradeApi()
  433. }else{
  434. let params = {
  435. userID:this.userID,
  436. clubID:this.clubID, //会所ID
  437. linkMan1:this.clubContact,
  438. fax:this.clubFax,
  439. contractPhone:this.clubTelePhone,
  440. info : this.companyPprofile,
  441. }
  442. organizationUpdate(params).then(response =>{
  443. this.$util.msg('修改成功',2000,true,'success')
  444. setTimeout(()=>{
  445. uni.navigateBack({delta: 1})
  446. },2000)
  447. }).catch(error =>{
  448. this.$util.msg(error.msg,2000);
  449. })
  450. }
  451. },
  452. clubUpgradeApi(){
  453. if(this.isMainproCheck){
  454. let mainproList = []
  455. if(this.firstClubType == '1'){
  456. this.mentuzCampList.forEach(item =>{
  457. mainproList.push(item.name)
  458. })
  459. }else{
  460. this.medicaCampList.forEach(item =>{
  461. mainproList.push(item.name)
  462. })
  463. }
  464. this.mainpro = mainproList.join('/')
  465. }
  466. if( this.registerEmail == ''){
  467. this.$util.msg('请输入邮箱地址',2000);
  468. return
  469. }
  470. if( !this.$reg.isEmail(this.registerEmail)){
  471. this.$util.msg('请输入正确的邮箱地址',2000);
  472. return
  473. }
  474. if( this.clubName == ''){
  475. this.$util.msg('请输入机构名称',2000);
  476. return
  477. }
  478. if( this.addressData.townID == ''){
  479. this.$util.msg('请选择机构地址',2000);
  480. return
  481. }
  482. if( this.addressData.addressDetail == ''){
  483. this.$util.msg('请填写机构详细地址',2000);
  484. return
  485. }
  486. if( this.socialCreditCode == ''){
  487. this.$util.msg('请填写社会统一社会信用代码',2000);
  488. return
  489. }
  490. if( this.uploadBusinessImage == ''){
  491. this.$util.msg('请上传您的营业执照',2000);
  492. return
  493. }
  494. console.log(this.isOrganizationType)
  495. if(this.isOrganizationType!=0){
  496. if(this.mainpro == ''){
  497. this.$util.msg('请选择住机构主营内容',2000);
  498. return
  499. }
  500. }
  501. let params = {
  502. userID:this.userID,
  503. clubID:this.clubID, //会所ID
  504. linkMan1:this.clubContact,
  505. contractEmail1:this.registerEmail,
  506. name:this.clubName,
  507. sname:this.abbreviation,
  508. provinceID:this.addressData.provinceID,
  509. cityID:this.addressData.cityID,
  510. townID:this.addressData.townID,
  511. address:this.addressData.addressDetail,
  512. socialCreditCode:this.socialCreditCode,
  513. businessLicenseImage:this.uploadBusinessImage,
  514. headpic:this.uploadMentuzImage,
  515. firstClubType:this.isOrganizationType, //机构类型分类 医美:0和生美:1
  516. secondClubType:this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
  517. department:this.department, //科室
  518. medicalPracticeLicenseImg:this.uploadMedicalImage,//资质图片
  519. mainpro:this.mainpro,
  520. fax:this.clubFax,
  521. contractPhone:this.clubTelePhone,
  522. info : this.companyPprofile,
  523. }
  524. organizationRegister(params).then(response =>{
  525. this.$util.msg('您的升级申请已提交审核',2000);
  526. setTimeout(()=>{
  527. uni.navigateBack({delta: 1})
  528. },2000)
  529. }).catch(error =>{
  530. this.$util.msg(error.msg,2000);
  531. })
  532. },
  533. // 三级联动选择
  534. showMulLinkageThreePicker() {
  535. this.isShowInput = true
  536. this.$refs.mpvueCityPicker.show()
  537. },
  538. onConfirm(e) {
  539. this.addressData.address = e.name;
  540. this.addressData.townID = e.townCode;
  541. this.addressData.cityID = e.cityCode;
  542. this.addressData.provinceID = e.provinceCode;
  543. },
  544. onTextareaInput(e){
  545. this.addressData.addressDetail = e.detail.value;
  546. },
  547. chooseBusinessImage() {//营业执照图片上传
  548. uploadFileImage().then(res =>{
  549. this.uploadBusinessImage = JSON.parse(res.data).data
  550. })
  551. },
  552. chooseMentuzImage() {//门头照图片上传
  553. uploadFileImage().then(res =>{
  554. this.uploadMentuzImage = JSON.parse(res.data).data
  555. })
  556. },
  557. chooseMedicalImage() {//资质照图片上传
  558. uploadFileImage().then(res =>{
  559. this.uploadMedicalImage = JSON.parse(res.data).data
  560. })
  561. },
  562. viewBusinessImage(e) {
  563. this.myPreviewImageFn(this.uploadBusinessImage)
  564. },
  565. viewMentuzImage(e) {
  566. this.myPreviewImageFn(this.uploadMentuzImage)
  567. },
  568. viewMedicalImage(e) {
  569. this.myPreviewImageFn(this.uploadMedicalImage)
  570. },
  571. myPreviewImageFn(url){
  572. this.isPreviewImage = true
  573. let mentuzArray = []
  574. mentuzArray.push(url)
  575. uni.previewImage({
  576. urls: mentuzArray,
  577. current: 0
  578. });
  579. },
  580. delBusinessImage(){
  581. this.$util.modal('','确定删除营业执照图片吗?','确定','取消',true,() =>{
  582. this.uploadBusinessImage = ''
  583. })
  584. },
  585. delMentuzImage(){
  586. this.$util.modal('','确定删除门头照图片吗?','确定','取消',true,() =>{
  587. this.uploadMentuzImage = ''
  588. })
  589. },
  590. delMedicalImage(){
  591. this.$util.modal('','确定删除资质图片吗?','确定','取消',true,() =>{
  592. this.uploadMedicalImage = ''
  593. })
  594. },
  595. bindPickerChange() {
  596. let self = this
  597. uni.showActionSheet({
  598. title:'标题',
  599. itemList: ['医美', '生美'],
  600. success: (e) => {
  601. self.isOrganizationType = e.tapIndex+1
  602. switch(e.tapIndex){
  603. case 0:
  604. this.organizationTypeText = '医美'
  605. break;
  606. case 1:
  607. this.organizationTypeText = '生美'
  608. break;
  609. }
  610. }
  611. })
  612. },
  613. bindPickerChange2(e) {
  614. this.typtIndex = e.target.value
  615. this.isOrganizationType = e.target.value
  616. },
  617. radioChange(e) {
  618. this.secondClubType = e.target.value;
  619. if( this.secondClubType == '2' || this.secondClubType == '3'){
  620. this.isDepartment = true
  621. }else{
  622. this.isDepartment = false
  623. }
  624. for (let i = 0; i < this.beautyList.length; i++) {
  625. if (this.beautyList[i].value === this.secondClubType) {
  626. this.current = i;
  627. break;
  628. }
  629. }
  630. },
  631. chooseMaleLike(e){
  632. this.isMainproCheck = true
  633. this.mainpro = this.checkLikes(e,this.mentuzCampList)
  634. },
  635. chooseMaleLikes(e){
  636. this.isMainproCheck = true
  637. this.mainpro = this.checkLikes(e,this.medicaCampList)
  638. },
  639. checkLikes(e,list){
  640. let values = e.detail.value
  641. let arr = []
  642. list.forEach(item => {
  643. if(values.indexOf(item.value) >= 0){
  644. this.$set(item,'checked',true)
  645. arr.push(item.name)
  646. }else{
  647. this.$set(item,'checked',false)
  648. }
  649. })
  650. return arr.join('/')
  651. },
  652. onBlurInput(e){//
  653. if(e.detail.value ===''){
  654. this.isDisabled = true
  655. }else{
  656. this.isDisabled = false
  657. }
  658. },
  659. showAustomItem() {
  660. this.isShowAustomItem = !this.isShowAustomItem
  661. },
  662. setNewMainpro(arr){//回显处理主营内容
  663. let _ARRAY = []
  664. arr.split('/').forEach((item,index) =>{
  665. let _OBJ = {value:(index+1).toString(),name:item,checked:true}
  666. _ARRAY.push(_OBJ)
  667. })
  668. return _ARRAY
  669. },
  670. addCustomItem(){
  671. if(this.isOrganizationType == 1){
  672. let item = {value:`${this.mentuzCampList.length+1}`,name:this.customItemValue,checked:true}
  673. this.mentuzCampList.push(item)
  674. }else{
  675. let item = {value:`${this.medicaCampList.length+1}`,name:this.customItemValue,checked:true}
  676. this.medicaCampList.push(item)
  677. }
  678. },
  679. showUpgrade(){
  680. this.isUpgrade = true
  681. this.isShowUpgrade = true
  682. this.isDownUpgrade = false
  683. this.registerBtnText = '提交审核'
  684. },
  685. hideUpgrade(){
  686. this.$util.modal('提示','收起后,您填写的升级信息将会被清空确定收起吗?','确定','取消',true,() =>{
  687. this.isUpgrade = false
  688. this.isShowUpgrade = false
  689. this.isDownUpgrade = true
  690. this.registerBtnText = '确定'
  691. })
  692. }
  693. },
  694. onShow() {
  695. if(this.isPreviewImage){
  696. this.isPreviewImage = false
  697. return
  698. }
  699. }
  700. }
  701. </script>
  702. <style lang="scss">
  703. .register{
  704. width: 100%;
  705. height: auto;
  706. border-top: 1px solid #F7F7F7;
  707. background: #EFEFEF;
  708. .register-main{
  709. width: 100%;
  710. height: auto;
  711. background: #FFFFFF;
  712. &.detailed{
  713. padding-bottom: 200rpx;
  714. }
  715. &.first{
  716. padding-top: 30rpx;
  717. }
  718. .register-tips{
  719. display: flex;
  720. flex-direction: column;
  721. align-items: center;
  722. line-height: 44rpx;
  723. font-size: $font-size-24;
  724. color: #FF0000;
  725. margin-bottom: 40rpx;
  726. .iconfont{
  727. font-size: $font-size-24;
  728. }
  729. }
  730. .register-row{
  731. width: 702rpx;
  732. height: auto;
  733. padding: 0 24rpx;
  734. margin-bottom: 20rpx;
  735. &.none{
  736. margin-bottom: 0;
  737. }
  738. .error-title{
  739. line-height: 40rpx;
  740. font-size: $font-size-28;
  741. color: $text-color;
  742. text-align: left;
  743. }
  744. .error-main{
  745. padding: 10rpx 0;
  746. .error-item{
  747. padding:0 20rpx;
  748. margin:10rpx;
  749. background: #F53636;
  750. height: 52rpx;
  751. line-height: 52rpx;
  752. border-radius: 26rpx;
  753. font-size: $font-size-26;
  754. color: #FFFFFF;
  755. text-align: center;
  756. display: inline-block;
  757. }
  758. }
  759. .register-txt{
  760. line-height: 44rpx;
  761. font-size: $font-size-26;
  762. color: $text-color;
  763. text-align: left;
  764. &.first{
  765. margin-top: 20rpx;
  766. }
  767. }
  768. .register-bet{
  769. width: 100%;
  770. display: flex;
  771. line-height: 60rpx;
  772. height: 60rpx;
  773. align-items: center;
  774. flex-direction: column;
  775. font-size: $font-size-28;
  776. color: $color-system;
  777. margin-top: 40rpx;
  778. text{
  779. margin: 0 5rpx;
  780. }
  781. }
  782. .register-tip{
  783. line-height: 64rpx;
  784. font-size: $font-size-24;
  785. color: #CECECE;
  786. text-align: left;
  787. }
  788. .register-title{
  789. font-size: $font-size-32;
  790. color: $text-color;
  791. text{
  792. font-size: $font-size-24;
  793. }
  794. }
  795. .row-btn{
  796. position: absolute;
  797. right: 24rpx;
  798. top: 0;
  799. line-height: 88rpx;
  800. text-align: center;
  801. font-size: $font-size-28;
  802. color: $color-system;
  803. }
  804. .register-from{
  805. width: 654rpx;
  806. height: 40rpx;
  807. padding: 24rpx;
  808. background: $sub-bg-color;
  809. border-radius: 14rpx;
  810. position: relative;
  811. .label{
  812. text-align: left;
  813. font-size: $font-size-28;
  814. color: #666666;
  815. line-height: 40rpx;
  816. float: left;
  817. }
  818. .row-input{
  819. width: 440rpx;
  820. padding-left:10rpx;
  821. font-size: $font-size-28;
  822. color: $text-color;
  823. line-height: 40rpx;
  824. float: left;
  825. height: 40rpx;
  826. &.none{
  827. color: #999999;
  828. }
  829. &.picker{
  830. text-align: left;
  831. color: #999999;
  832. }
  833. &.keshi{
  834. width: 550rpx;
  835. }
  836. }
  837. &.code{
  838. width: 410rpx;
  839. float: left;
  840. margin-right: 20rpx;
  841. .row-input{
  842. width: 390rpx;
  843. }
  844. }
  845. &.btn{
  846. width: 224rpx;
  847. height: 88rpx;
  848. float: left;
  849. background: $btn-confirm;
  850. padding: 0;
  851. .row-input{
  852. width: 224rpx;
  853. height: 88rpx;
  854. line-height: 88rpx;
  855. padding: 0;
  856. color: #FFFFFF;
  857. background: $btn-confirm;
  858. text-align: center;
  859. border-radius: 14rpx;
  860. &.other{
  861. width: 224rpx;
  862. background: #F7F7F7;
  863. margin-right: 20rpx;
  864. }
  865. &.none{
  866. background: #F7F7F7;
  867. }
  868. }
  869. &.disabled{
  870. background: #F7F7F7;
  871. .row-input{
  872. background: #F7F7F7;
  873. color: #999999;
  874. }
  875. }
  876. }
  877. &.picker{
  878. padding: 0 24rpx;
  879. width: 654rpx;
  880. height: 88rpx;
  881. line-height: 88rpx;
  882. .label{
  883. line-height: 88rpx;
  884. }
  885. .row-input{
  886. width: 470rpx;
  887. height: 88rpx;
  888. line-height: 88rpx;
  889. padding-left: 30rpx;
  890. }
  891. }
  892. &.radio{
  893. padding: 0 24rpx;
  894. width: 654rpx;
  895. height: 288rpx;
  896. .row-input{
  897. width: 100%;
  898. height: 88rpx;
  899. line-height: 88rpx;
  900. padding-left: 0;
  901. }
  902. .row-radio{
  903. float: left;
  904. transform: scale(0.8);
  905. }
  906. .row-text{
  907. width: 100rpx;
  908. text-align: center;
  909. float: left;
  910. }
  911. }
  912. &.group{
  913. padding: 0 24rpx;
  914. width: 654rpx;
  915. height: auto;
  916. background: #FFFFFF;
  917. margin-top: 30rpx;
  918. .label{
  919. line-height: 76rpx;
  920. }
  921. .row-input{
  922. width: 100%;
  923. height: 88rpx;
  924. line-height: 88rpx;
  925. padding-left: 0;
  926. }
  927. .row-radio{
  928. float: left;
  929. }
  930. .row-text{
  931. width: 100rpx;
  932. text-align: center;
  933. float: left;
  934. }
  935. }
  936. &.btn{
  937. margin-top: 0;
  938. }
  939. .content-class {
  940. margin: 20rpx auto;
  941. display: flex;
  942. flex-flow: row wrap;
  943. justify-content: space-between;
  944. align-items: center;
  945. &.btn{
  946. margin: 0 auto;
  947. margin-left: 116rpx;
  948. }
  949. .row-input{
  950. display: flex;
  951. width: 220rpx;
  952. height: 40rpx;
  953. padding: 24rpx;
  954. text-align: left;
  955. border-radius: 10rpx;
  956. font-size: $font-size-28;
  957. color: $text-color;
  958. }
  959. .confirm-btn{
  960. width: 200rpx;
  961. height: 88rpx;
  962. border-radius: 10rpx;
  963. line-height: 88rpx;
  964. text-align: center;
  965. &.none{
  966. color: #FFFFFF;
  967. background: $btn-confirm;
  968. }
  969. &.disabled{
  970. color: #999999;
  971. }
  972. }
  973. .item {
  974. width: 155rpx;
  975. height: 60rpx;
  976. font-size:$font-size-28;
  977. line-height: 60rpx;
  978. border-radius:10rpx;
  979. margin: 10rpx;
  980. text-align: center;
  981. box-sizing: border-box;
  982. border: 1rpx solid #EFEFEF;
  983. checkbox {
  984. display: none;
  985. }
  986. }
  987. .on {
  988. border-color: $color-system;
  989. color:$color-system;
  990. }
  991. }
  992. }
  993. .icon-xiayibu{
  994. width: 88rpx;
  995. height: 88rpx;
  996. position: absolute;
  997. right: 0;
  998. top: 0;
  999. line-height: 88rpx;
  1000. text-align: center;
  1001. }
  1002. &.text-textarea{
  1003. background: #FFFFFF;
  1004. .textarea{
  1005. width: 654rpx;
  1006. height: 180rpx;
  1007. background: #F7F7F7;
  1008. padding: 24rpx;
  1009. font-size: $font-size-28;
  1010. color: $text-color;
  1011. z-index: 1;
  1012. border-radius: 14rpx;
  1013. }
  1014. .textarea.hide{
  1015. opacity: 0;
  1016. }
  1017. .textarea.show{
  1018. color: #999999;
  1019. }
  1020. }
  1021. }
  1022. .register-picture{
  1023. height: 102rpx;
  1024. margin: 30rpx 0;
  1025. width: 42%;
  1026. float: left;
  1027. &.zz{
  1028. width: 100%;
  1029. }
  1030. .label{
  1031. float: left;
  1032. font-size: $font-size-28;
  1033. color: $text-color;
  1034. line-height: 102rpx;
  1035. width: 150rpx;
  1036. text-align: right;
  1037. &.zz{
  1038. width: 230rpx;
  1039. }
  1040. }
  1041. .upload-picture{
  1042. float: left;
  1043. height: 100rpx;
  1044. .upload-none{
  1045. width: 100rpx;
  1046. height: 100rpx;
  1047. text-align: center;
  1048. line-height: 100rpx;
  1049. color: #999999;
  1050. border: 1px solid #999999;
  1051. border-radius: 10rpx;
  1052. margin: 0 20rpx;
  1053. .iconfont{
  1054. font-size: $font-size-28;
  1055. }
  1056. }
  1057. .upload-image{
  1058. width: 100rpx;
  1059. height: 100rpx;
  1060. border-radius: 10rpx;
  1061. margin: 0 20rpx;
  1062. position: relative;
  1063. image{
  1064. width: 100rpx;
  1065. height: 100rpx;
  1066. border-radius: 10rpx;
  1067. }
  1068. .upload-del{
  1069. width: 40rpx;
  1070. height: 40rpx;
  1071. position: absolute;
  1072. top: -20rpx;
  1073. right: -20rpx;
  1074. line-height: 40rpx;
  1075. text-align: center;
  1076. .iconfont{
  1077. font-size: $font-size-32;
  1078. color: #999999;
  1079. }
  1080. }
  1081. }
  1082. }
  1083. }
  1084. .register-input{
  1085. width: 654rpx;
  1086. height: 40rpx;
  1087. padding: 24rpx;
  1088. margin: 0 auto;
  1089. margin-bottom: 60rpx;
  1090. background: #F7F7F7;
  1091. border-radius: 14rpx;
  1092. .input{
  1093. width: 100%;
  1094. height: 100%;
  1095. background: #F7F7F7;
  1096. font-size: $font-size-28;
  1097. line-height: 40rpx;
  1098. color: #333333;
  1099. border-radius: 14rpx;
  1100. }
  1101. }
  1102. .register-fiexd{
  1103. width: 100%;
  1104. height: auto;
  1105. padding: 20rpx 0;
  1106. position: fixed;
  1107. bottom: 0;
  1108. left: 0;
  1109. z-index: 99;
  1110. background: #FFFFFF;
  1111. .register-bet{
  1112. width: 100%;
  1113. display: flex;
  1114. line-height: 60rpx;
  1115. height: 60rpx;
  1116. align-items: center;
  1117. flex-direction: column;
  1118. font-size: $font-size-28;
  1119. color: $color-system;
  1120. margin-bottom: 20rpx;
  1121. .icon-xiangxiajiantou{
  1122. transform:rotate(180deg);
  1123. }
  1124. text{
  1125. margin: 0 5rpx;
  1126. }
  1127. }
  1128. .register-agree{
  1129. display: flex;
  1130. flex-direction: column;
  1131. align-items: center;
  1132. margin: 32rpx 0;
  1133. .agree-text{
  1134. .checkbox{
  1135. float: left;
  1136. margin: 4rpx 6rpx 0 0;
  1137. color: #999999;
  1138. font-size: $font-size-32;
  1139. &.icon-gouxuan{
  1140. color: $color-system;
  1141. }
  1142. }
  1143. font-size: 20rpx;
  1144. line-height: 44rpx;
  1145. color: #999999;
  1146. text{
  1147. color:#0091FF;
  1148. }
  1149. }
  1150. }
  1151. }
  1152. .register-btn{
  1153. width: 702rpx;
  1154. height: 88rpx;
  1155. border-radius: 14rpx;
  1156. font-size: $font-size-28;
  1157. line-height: 88rpx;
  1158. color: #FFFFFF;
  1159. margin: 0 auto;
  1160. text-align: center;
  1161. background: $btn-confirm;
  1162. margin-top: 96rpx;
  1163. &.none{
  1164. background: #FFFFFF;
  1165. color: $text-color;
  1166. margin-top: 0;
  1167. }
  1168. &.sub{
  1169. margin-top: 0;
  1170. }
  1171. }
  1172. }
  1173. }
  1174. </style>