apply.vue 34 KB

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