apply.vue 34 KB

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