apply.vue 34 KB

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