apply.vue 34 KB

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