apply.vue 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349
  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 title clearfix">
  5. <view class="register-row none clearfix">
  6. <view class="register-title first"
  7. ><text>补充以下详细信息即可升级为资质机构,享受更多更好的服务。</text></view
  8. >
  9. <view class="register-title"><text></text></view>
  10. </view>
  11. </view>
  12. <view class="register-main clearfix" v-if="clubStatus == 92">
  13. <view class="register-row none clearfix">
  14. <view class="error-title">审核未通过原因:</view>
  15. <view class="error-main">
  16. <text class="error-item" v-for="(item, index) in errorList" :key="index"> {{ item }} </text>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="register-main detailed clearfix">
  21. <view class="register-row none clearfix">
  22. <view class="register-from">
  23. <view class="label">邮箱</view>
  24. <input
  25. class="row-input"
  26. type="text"
  27. name="input"
  28. v-model="contractEmail"
  29. placeholder="请输入您的常用邮箱"
  30. placeholder-class="placeholder"
  31. maxlength="30"
  32. />
  33. </view>
  34. <view class="register-tip"><text>提示:邮箱可用作登录账号,请使用公司邮箱或法人邮箱</text></view>
  35. </view>
  36. <view class="register-row none clearfix">
  37. <view class="register-from">
  38. <view class="label">机构名称</view>
  39. <input
  40. class="row-input"
  41. type="text"
  42. v-model="clubName"
  43. placeholder="请输入您的机构名称"
  44. placeholder-class="placeholder"
  45. maxlength="30"
  46. />
  47. </view>
  48. <view class="register-tip"><text>示例:深圳市美丽人生医疗美容有限公司</text></view>
  49. </view>
  50. <view class="register-row none clearfix">
  51. <view class="register-from">
  52. <view class="label">机构简称</view>
  53. <input
  54. class="row-input"
  55. type="text"
  56. v-model="shortName"
  57. placeholder="请输入姓名或常用名"
  58. placeholder-class="placeholder"
  59. maxlength="10"
  60. />
  61. </view>
  62. <view class="register-tip"><text>示例:美丽人生</text></view>
  63. </view>
  64. <view class="register-row clearfix">
  65. <view class="register-from" @click="showMulLinkageThreePicker">
  66. <view class="label">机构地址</view>
  67. <text class="row-input" :class="addressData.address === '请选择机构所在地区' ? 'none' : ''">
  68. {{ addressData.address }}
  69. </text>
  70. <text class="iconfont icon-xiayibu"></text>
  71. </view>
  72. </view>
  73. <view class="register-row text-textarea clearfix">
  74. <view class="textarea show" v-if="isShowInput" @click="showTextareaFocus">{{
  75. addressData.addressDetail ? addressData.addressDetail : '详细地址:如道路、门牌号、小区等'
  76. }}</view>
  77. <textarea
  78. v-else
  79. class="textarea"
  80. type="text"
  81. v-model="addressData.addressDetail"
  82. placeholder="详细地址:如道路、门牌号、小区等"
  83. placeholder-class="placeholder"
  84. maxlength="25"
  85. @input="onTextareaInput"
  86. :focus="textareaFocus"
  87. @blur="hideTextareaFocus"
  88. :class="isShowInput ? '' : ''"
  89. />
  90. </view>
  91. <view class="register-row clearfix">
  92. <view class="register-from">
  93. <view class="label">营业执照编号</view>
  94. <input
  95. class="row-input code"
  96. type="text"
  97. v-model="socialCreditCode"
  98. placeholder="请填写社会统一信用代码"
  99. maxlength="18"
  100. />
  101. </view>
  102. </view>
  103. <view class="register-row clearfix">
  104. <view class="register-picture">
  105. <view class="label">营业执照</view>
  106. <view class="upload-picture">
  107. <view class="upload-none" v-if="businessLicense === ''" @click="chooseBusinessImage">
  108. <image src="https://static.caimei365.com/app/img/upload/club-zizhi.png"></image>
  109. </view>
  110. <view class="upload-image" v-else>
  111. <image :src="businessLicense" mode="" @click="viewBusinessImage"></image>
  112. <view class="upload-del" @click="delBusinessImage">
  113. <text class="iconfont icon-shanchu1"></text>
  114. </view>
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. <view class="register-row clearfix">
  120. <view class="register-picture">
  121. <view class="label">门头照</view>
  122. <view class="upload-picture">
  123. <view class="upload-none" v-if="shopPhoto === ''" @click="chooseMentuzImage">
  124. <image src="https://static.caimei365.com/app/img/upload/club-door.png"></image>
  125. </view>
  126. <view class="upload-image" v-else>
  127. <image :src="shopPhoto" mode="" @click="viewMentuzImage"></image>
  128. <view class="upload-del" @click="delMentuzImage">
  129. <text class="iconfont icon-shanchu1"></text>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. </view>
  135. <view class="register-row clearfix">
  136. <view class="register-from" @click="bindPickerChange">
  137. <view class="label">机构类型</view>
  138. <text class="row-input">
  139. {{ organizationTypeText }}
  140. </text>
  141. <text class="iconfont icon-xiayibu"></text>
  142. </view>
  143. </view>
  144. <view class="register-row none clearfix" v-if="isOrganizationType == 1">
  145. <view class="register-from noneborder second">
  146. <view
  147. class="secondTyperadio"
  148. v-for="(item, index) in beautyList"
  149. :key="item.value"
  150. @click="radioChange(item)"
  151. :class="item.value == secondClubType ? 'active' : ''"
  152. >
  153. <view class="secondRadio">{{ item.name }}</view>
  154. </view>
  155. </view>
  156. </view>
  157. <view class="register-row none clearfix" v-if="isOrganizationType == 2">
  158. <view class="register-from noneborder second">
  159. <view
  160. class="secondTyperadio"
  161. v-for="(item, index) in beautyLists"
  162. :key="item.value"
  163. @click="radioChange(item)"
  164. :class="item.value == secondClubType ? 'active' : ''"
  165. >
  166. <view class="secondRadio">{{ item.name }}</view>
  167. </view>
  168. </view>
  169. </view>
  170. <view class="register-row none clearfix" v-if="isOrganizationType == 1">
  171. <view class="register-picture zz">
  172. <view class="label zz">医疗执业许可证</view>
  173. <view class="upload-picture">
  174. <view class="upload-none" v-if="medicalPracticeLicense === ''" @click="chooseMedicalImage">
  175. <image src="https://static.caimei365.com/app/img/upload/club-zizhi.png"></image>
  176. </view>
  177. <view class="upload-image" v-else>
  178. <image :src="medicalPracticeLicense" mode="" @click="viewMedicalImage"></image>
  179. <view class="upload-del" @click="delMedicalImage">
  180. <text class="iconfont icon-shanchu1"></text>
  181. </view>
  182. </view>
  183. </view>
  184. </view>
  185. </view>
  186. <view class="register-row clearfix" v-if="isOrganizationType == 1 && isDepartment">
  187. <view class="register-from" style="height: auto;border: 0;">
  188. <view class="kes-title">科室</view>
  189. <input
  190. class="keshi"
  191. placeholder="请填写经营的科室,至少三个,用逗号隔开"
  192. placeholder-style="placeholder"
  193. v-model="department"
  194. maxlength="16"
  195. ></input>
  196. </view>
  197. </view>
  198. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  199. <view class="register-from group" style="height: auto;border: 0;">
  200. <view class="label">主营内容</view>
  201. </view>
  202. </view>
  203. <view class="register-row clearfix" v-if="isOrganizationType == 1">
  204. <view class="register-from group" style="height: auto;border: 0;">
  205. <view class="content-class">
  206. <checkbox-group @change="chooseMaleLike">
  207. <label
  208. class="item"
  209. v-for="(item, index) in mentuzCampList"
  210. :key="index"
  211. :class="{ on: item.checked }"
  212. >
  213. <checkbox class="item-checkbox" :value="item.value"></checkbox>
  214. <text class="item-text">{{ item.name }}</text>
  215. </label>
  216. </checkbox-group>
  217. </view>
  218. </view>
  219. <view class="register-from group btn" style="height: auto;border: 0;">
  220. <view class="content-class btn">
  221. <input
  222. class="row-input other"
  223. type="text"
  224. v-model="customItemValue"
  225. placeholder-style="placeholder"
  226. placeholder="请输入自定义主营内容"
  227. maxlength="5"
  228. />
  229. <button type="default" class="confirm-btn" @click.stop="addCustomItem">确认添加</button>
  230. </view>
  231. </view>
  232. </view>
  233. <view class="register-row clearfix" v-if="isOrganizationType == 2">
  234. <view class="register-from group" style="height: auto;border: 0;">
  235. <view class="label">主营内容</view>
  236. </view>
  237. </view>
  238. <view class="register-row clearfix" v-if="isOrganizationType == 2">
  239. <view class="register-from group" style="height: auto;border: 0;">
  240. <view class="content-class">
  241. <checkbox-group @change="chooseMaleLikes">
  242. <label
  243. class="item"
  244. v-for="(item, index) in medicaCampList"
  245. :key="index"
  246. :class="{ on: item.checked }"
  247. >
  248. <checkbox class="item-checkbox" :value="item.value" :checked="item.checked"></checkbox>
  249. <text class="item-text">{{ item.name }}</text>
  250. </label>
  251. </checkbox-group>
  252. </view>
  253. </view>
  254. <view class="register-from group btn" style="height: auto;border: 0;">
  255. <view class="content-class btn">
  256. <input
  257. class="row-input other"
  258. type="text"
  259. v-model="customItemValue"
  260. placeholder="请输入自定义主营内容"
  261. placeholder-style="placeholder"
  262. maxlength="5"
  263. />
  264. <button type="default" class="confirm-btn" @click.stop="addCustomItem">确认添加</button>
  265. </view>
  266. </view>
  267. </view>
  268. <view class="register-fiexd clearfix" :style="{ paddingBottom: isIphoneX ? '68rpx' : '36rpx' }">
  269. <view class="register-row ">
  270. <view class="register-btn sub" @click.stop="organizationUpdateInfo">确认升级并提交审核</view>
  271. </view>
  272. </view>
  273. <mpvue-city-picker
  274. :themeColor="themeColor"
  275. ref="mpvueCityPicker"
  276. :pickerValueDefault="cityPickerValueDefault"
  277. @onCancel="onCancel"
  278. @onConfirm="onConfirm"
  279. >
  280. </mpvue-city-picker>
  281. </view>
  282. <!-- 提交审核提示弹窗 -->
  283. <view class="tui-alert-box" v-if="isConfirmShow">
  284. <view class="tui-alert-content">
  285. <view class="tui-alert-main"
  286. >升级信息提交成功,审核通过后您的身份将成为资质机构,并且获得<text class="red">500</text
  287. >采美豆的奖励</view
  288. >
  289. <view class="tui-alert-btn" @click="handleClick">知道了</view>
  290. </view>
  291. </view>
  292. </view>
  293. </template>
  294. <script>
  295. import { mapMutations } from 'vuex'
  296. import mpvueCityPicker from '@/components/mpvue-citypicker/mpvueCityPicker.vue'
  297. import { beautyList, beautyLists, mentuzCampNullList, medicaCampNullList } from '@/common/json/data.json.js' //本地数据
  298. import { uploadFileImage } from '@/services/public.js'
  299. export default {
  300. components: {
  301. mpvueCityPicker
  302. },
  303. data() {
  304. return {
  305. nvabarData: {
  306. //顶部自定义导航
  307. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  308. showSearch: 0,
  309. title: '升级资质机构', // 导航栏 中间的标题
  310. haveBack: true,
  311. textLeft: this.$store.state.isIphone
  312. },
  313. isIphoneX: this.$store.state.isIphoneX,
  314. CustomBar: this.CustomBar, // 顶部导航栏高度
  315. errorList: [],
  316. tabCurrentIndex: 3,
  317. clubStatus: '', //审核状态
  318. isPreviewImage: false, //预览图片开关
  319. userId: '', //用户ID
  320. clubId: '', //会所ID
  321. contractEmail: '', //邮箱
  322. clubName: '', //机构名称
  323. shortName: '', //机构简称
  324. socialCreditCode: '', //统一社会信用代码
  325. isDisabled: true,
  326. isShowInput: true,
  327. textareaFocus: false,
  328. businessLicense:'', //营业执照图片
  329. shopPhoto: '', //门头照图片
  330. medicalPracticeLicense: '', //资质照图片
  331. department: '', //科室
  332. isDepartment: true, //是否显示科室
  333. secondClubType: '', //机构类型二级分类
  334. mainProduct: '', //主营内容
  335. firstClubType: 1, //机构类型
  336. isOrganizationType: 1,
  337. firstClubTypeCurrent:0,
  338. organizationTypeText: '请选择机构类型',
  339. beautyList: beautyList, //医美分类
  340. beautyLists: beautyLists, //生美分类
  341. mentuzCampNullList: mentuzCampNullList, //医美分类
  342. medicaCampNullList: medicaCampNullList, //生美分类
  343. mentuzCampList: [], //医美主营
  344. medicaCampList: [], //生美主营
  345. typtIndex: 0,
  346. organizationType: 0,
  347. isShowAustomItem: false, //是否显示其他添加
  348. customItemValue: '', //自定义项目
  349. isMainproCheck: false,
  350. isConfirmShow: false,
  351. isFirstAdds:true,
  352. addressData: {
  353. address: '请选择机构所在地区',
  354. townId: '', //区ID
  355. cityId: '', //市ID
  356. provinceId: '', //省ID
  357. addressDetail: '' //地址详情
  358. },
  359. typename: [
  360. { name: '医美', value: 1 },
  361. { name: '生美', value: 2 },
  362. { name: '项目公司', value: 3 },
  363. { name: '个人', value: 4 },
  364. { name: '其他', value: 5 },
  365. ]
  366. }
  367. },
  368. onLoad(option) {
  369. this.clubStatus = option.clubStatus
  370. this.organizationInfo()
  371. },
  372. methods: {
  373. hanldNavigateBack() {
  374. this.$util.modal('', '资料尚未提交审核,确定放弃升级吗?', '确定', '取消', true, () => {
  375. uni.navigateBack({
  376. delta: 1
  377. })
  378. })
  379. },
  380. organizationInfo() {
  381. this.$api.getStorage().then(resolve => {
  382. this.userId = resolve.userId ? resolve.userId : 0
  383. this.UserService.OrganizationUpdateModifyInfo({ userId: this.userId })
  384. .then(response => {
  385. let organizationClub = response.data.club
  386. let organizationUser = response.data.user
  387. if (organizationUser.auditNoteList != null) {
  388. this.errorList = organizationUser.auditNoteList
  389. }
  390. this.contractEmail = organizationClub.contractEmail
  391. this.clubId = organizationUser.clubId
  392. if (this.contractEmail) {
  393. this.isFirstAdds = false
  394. this.clubName = this.$reg.checkData(organizationClub.name)
  395. } else {
  396. this.isFirstAdds = true
  397. this.clubName = ''
  398. }
  399. this.shortName = this.$reg.checkData(organizationClub.shortName)
  400. if (organizationClub.provinceId == '' || organizationClub.provinceId == null) {
  401. this.addressData.provinceId = ''
  402. } else {
  403. this.addressData.provinceId = organizationClub.provinceId
  404. }
  405. if (organizationClub.cityId == '' || organizationClub.cityId === null) {
  406. this.addressData.cityId = ''
  407. } else {
  408. this.addressData.cityId = organizationClub.cityId
  409. }
  410. if (organizationClub.townId == '' || organizationClub.townId == null) {
  411. this.addressData.townId = ''
  412. } else {
  413. this.addressData.townId = organizationClub.townId
  414. }
  415. this.addressData.address = organizationClub.provincialAddress
  416. ? organizationClub.provincialAddress
  417. : '请选择机构所在地区'
  418. this.addressData.addressDetail = this.$reg.checkData(organizationClub.address)
  419. this.socialCreditCode = this.$reg.checkData(organizationClub.socialCreditCode)
  420. this.firstClubType = organizationClub.firstClubType
  421. this.secondClubType = this.$reg.checkData(organizationClub.secondClubType)
  422. this.businessLicense = this.$reg.checkData(organizationClub.businessLicense)
  423. this.shopPhoto = this.$reg.checkData(organizationClub.shopPhoto)
  424. this.medicalPracticeLicense = this.$reg.checkData(organizationClub.medicalPracticeLicense)
  425. this.department = this.$reg.checkData(organizationClub.department)
  426. //机构类型&&主营项目
  427. switch(this.firstClubType){
  428. case 1:
  429. this.organizationTypeText = '医美'
  430. this.isOrganizationType = 1
  431. break
  432. case 2:
  433. this.organizationTypeText = '生美'
  434. this.isOrganizationType = 2
  435. break
  436. case 3:
  437. this.organizationTypeText = '项目公司'
  438. this.isOrganizationType = 0
  439. break
  440. case 4:
  441. this.organizationTypeText = '个人'
  442. this.isOrganizationType = 0
  443. break
  444. case 5:
  445. this.organizationTypeText = '其他'
  446. this.isOrganizationType = 0
  447. break
  448. case null:
  449. this.organizationTypeText = '请选择机构类型'
  450. this.isOrganizationType = 0
  451. break
  452. }
  453. if (organizationClub.mainProduct == '' || organizationClub.mainProduct == null) {
  454. this.mentuzCampList = this.mentuzCampNullList
  455. this.medicaCampList = this.medicaCampNullList
  456. } else {
  457. if (this.firstClubType == 1) {
  458. this.mentuzCampList = this.setNewMainpro(organizationClub.mainProduct)
  459. this.medicaCampList = this.medicaCampNullList
  460. } else {
  461. this.medicaCampList = this.setNewMainpro(organizationClub.mainProduct)
  462. this.mentuzCampList = this.mentuzCampNullList
  463. }
  464. this.mainProduct = organizationClub.mainProduct
  465. }
  466. //机构类型
  467. switch (this.secondClubType) {
  468. case 1:
  469. this.isDepartment = false
  470. break
  471. case 2:
  472. this.isDepartment = true
  473. break
  474. case 3:
  475. this.isDepartment = true
  476. break
  477. }
  478. })
  479. .catch(error => {
  480. this.$util.msg(error.msg, 2000)
  481. })
  482. })
  483. },
  484. organizationUpdateInfo() {
  485. //提交审核
  486. if (this.isFirstAdds) {
  487. let mainproList = []
  488. if (this.isOrganizationType == 1) {
  489. this.mentuzCampList.forEach(item => {
  490. mainproList.push(item.name)
  491. })
  492. } else {
  493. this.medicaCampList.forEach(item => {
  494. mainproList.push(item.name)
  495. })
  496. }
  497. this.mainProduct = mainproList.join('/')
  498. }
  499. if (this.contractEmail == '') {
  500. this.$util.msg('请输入邮箱地址', 2000)
  501. return
  502. }
  503. if (!this.$reg.isEmail(this.contractEmail)) {
  504. this.$util.msg('请输入正确的邮箱地址', 2000)
  505. return
  506. }
  507. if (this.clubName == '') {
  508. this.$util.msg('请输入机构名称', 2000)
  509. return
  510. }
  511. if (this.addressData.townId == '') {
  512. this.$util.msg('请选择机构地址', 2000)
  513. return
  514. }
  515. if (this.addressData.addressDetail == '') {
  516. this.$util.msg('请填写机构详细地址', 2000)
  517. return
  518. }
  519. if (this.businessLicense == '') {
  520. this.$util.msg('请上传您的营业执照', 2000)
  521. return
  522. }
  523. if (this.isOrganizationType == 1){
  524. if (this.medicalPracticeLicense == '') {
  525. this.$util.msg('请上传您的资质许可证', 2000)
  526. return
  527. }
  528. }
  529. if (this.isOrganizationType == 1 || this.isOrganizationType == 2) {
  530. if(this.secondClubType == ''){
  531. this.$util.msg('选择机构类型', 2000)
  532. return
  533. }
  534. }
  535. if (this.isOrganizationType == 1 || this.isOrganizationType == 2) {
  536. if (this.mainProduct == '') {
  537. this.$util.msg('请选择机构主营内容', 2000)
  538. return
  539. }
  540. }
  541. let params = {
  542. userId: this.userId,
  543. clubId: this.clubId, //会所ID
  544. contractEmail: this.contractEmail,
  545. name: this.clubName,
  546. shortName: this.shortName,
  547. provinceId: this.addressData.provinceId,
  548. cityId: this.addressData.cityId,
  549. townId: this.addressData.townId,
  550. address: this.addressData.addressDetail,
  551. socialCreditCode: this.socialCreditCode,
  552. businessLicense: this.businessLicense,
  553. shopPhoto: this.shopPhoto,
  554. firstClubType: this.isOrganizationType, //机构类型分类 医美:1和生美:2
  555. secondClubType: this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
  556. department: this.department, //科室
  557. medicalPracticeLicense: this.medicalPracticeLicense, //资质图片
  558. mainProduct: this.mainProduct
  559. }
  560. // 友盟埋点普通机构确认升级点击事件
  561. if (process.env.NODE_ENV != 'development') {
  562. this.$uma.trackEvent('Um_Event_ConfirmClubUpgrade', {
  563. Um_Key_ClubName: `${this.clubName}`,
  564. Um_Key_PageName: '普通机构确认升级',
  565. Um_Key_SourcePage: '升级页面'
  566. })
  567. }
  568. this.UserService.OrganizationRegister(params)
  569. .then(response => {
  570. this.isConfirmShow = true
  571. })
  572. .catch(error => {
  573. this.$util.msg(error.msg, 2000)
  574. })
  575. },
  576. handleClick() {
  577. //隐藏提示弹窗
  578. this.isConfirmShow = false
  579. setTimeout(() => {
  580. uni.navigateBack()
  581. }, 2000)
  582. },
  583. // 三级联动选择
  584. showMulLinkageThreePicker() {
  585. this.isShowInput = true
  586. this.$refs.mpvueCityPicker.show()
  587. },
  588. onConfirm(e) {
  589. this.addressData.address = e.name
  590. this.addressData.townId = e.townCode
  591. this.addressData.cityId = e.cityCode
  592. this.addressData.provinceId = e.provinceCode
  593. },
  594. onTextareaInput(e) {
  595. this.addressData.addressDetail = e.detail.value
  596. },
  597. showTextareaFocus() {
  598. //文本框获取焦点
  599. this.isShowInput = false
  600. this.textareaFocus = true
  601. },
  602. hideTextareaFocus() {
  603. //文本框失去焦点
  604. this.isShowInput = true
  605. this.textareaFocus = false
  606. },
  607. chooseBusinessImage() {
  608. //营业执照图片上传
  609. uploadFileImage().then(res => {
  610. this.businessLicense = JSON.parse(res.data).data
  611. })
  612. },
  613. chooseMentuzImage() {
  614. //门头照图片上传
  615. uploadFileImage().then(res => {
  616. this.shopPhoto = JSON.parse(res.data).data
  617. })
  618. },
  619. chooseMedicalImage() {
  620. //资质照图片上传
  621. uploadFileImage().then(res => {
  622. this.medicalPracticeLicense = JSON.parse(res.data).data
  623. })
  624. },
  625. viewBusinessImage(e) {
  626. this.myPreviewImageFn(this.businessLicense)
  627. },
  628. viewMentuzImage(e) {
  629. this.myPreviewImageFn(this.shopPhoto)
  630. },
  631. viewMedicalImage(e) {
  632. this.myPreviewImageFn(this.medicalPracticeLicense)
  633. },
  634. myPreviewImageFn(url) {
  635. this.isPreviewImage = true
  636. let mentuzArray = []
  637. mentuzArray.push(url)
  638. uni.previewImage({
  639. urls: mentuzArray,
  640. current: 0
  641. })
  642. },
  643. delBusinessImage() {
  644. this.$util.modal('', '确定删除营业执照图片吗?', '确定', '取消', true, () => {
  645. this.businessLicense = ''
  646. })
  647. },
  648. delMentuzImage() {
  649. this.$util.modal('', '确定删除门头照图片吗?', '确定', '取消', true, () => {
  650. this.shopPhoto = ''
  651. })
  652. },
  653. delMedicalImage() {
  654. this.$util.modal('', '确定删除资质图片吗?', '确定', '取消', true, () => {
  655. this.medicalPracticeLicense = ''
  656. })
  657. },
  658. bindPickerChange() {
  659. let self = this
  660. uni.showActionSheet({
  661. title:'标题',
  662. itemList: ['医美', '生美','项目公司','个人','其他'],
  663. success: (e) => {
  664. self.isOrganizationType = e.tapIndex+1
  665. switch(e.tapIndex){
  666. case 0:
  667. this.organizationTypeText = '医美'
  668. break
  669. case 1:
  670. this.organizationTypeText = '生美'
  671. break
  672. case 2:
  673. this.organizationTypeText = '项目公司'
  674. break
  675. case 3:
  676. this.organizationTypeText = '个人'
  677. break
  678. case 4:
  679. this.organizationTypeText = '其他'
  680. break
  681. }
  682. }
  683. })
  684. },
  685. bindPickerChange2(e) {
  686. this.typtIndex = e.target.value
  687. this.isOrganizationType = e.target.value
  688. },
  689. radioChange(item) {
  690. this.secondClubType = item.value
  691. if (this.secondClubType == 2 || this.secondClubType == 3) {
  692. this.isDepartment = true
  693. } else {
  694. this.isDepartment = false
  695. }
  696. },
  697. chooseMaleLike(e) {
  698. this.mainProduct = this.checkLikes(e, this.mentuzCampList)
  699. },
  700. chooseMaleLikes(e) {
  701. this.mainProduct = this.checkLikes(e, this.medicaCampList)
  702. },
  703. checkLikes(e, list) {
  704. let values = e.detail.value
  705. let arr = []
  706. list.forEach(item => {
  707. if (values.indexOf(item.value) >= 0) {
  708. this.$set(item, 'checked', true)
  709. arr.push(item.name)
  710. } else {
  711. this.$set(item, 'checked', false)
  712. }
  713. })
  714. return arr.join('/')
  715. },
  716. // onBlurInput(e){//
  717. // if(e.detail.value ===''){
  718. // this.isDisabled = true
  719. // }else{
  720. // this.isDisabled = false
  721. // }
  722. // },
  723. showAustomItem() {
  724. this.isShowAustomItem = !this.isShowAustomItem
  725. },
  726. setNewMainpro(arr) {
  727. //回显处理主营内容
  728. let _ARRAY = []
  729. arr.split('/').forEach((item, index) => {
  730. let _OBJ = { value: (index + 1).toString(), name: item, checked: true }
  731. _ARRAY.push(_OBJ)
  732. })
  733. return _ARRAY
  734. },
  735. addCustomItem() {
  736. if (this.customItemValue == '') {
  737. this.$util.msg('请输入自定义主营内容', 2000)
  738. } else {
  739. if (this.isOrganizationType == 1) {
  740. let item = { value: `${this.mentuzCampList.length + 1}`, name: this.customItemValue, checked: true }
  741. if (this.checkedArray(this.customItemValue, this.mentuzCampList)) {
  742. this.$util.msg('主营内容已存在!', 2000)
  743. } else {
  744. this.mentuzCampList.push(item)
  745. }
  746. } else {
  747. let item = { value: `${this.medicaCampList.length + 1}`, name: this.customItemValue, checked: true }
  748. if (this.checkedArray(this.customItemValue, this.medicaCampList)) {
  749. this.$util.msg('主营内容已存在!', 2000)
  750. } else {
  751. this.medicaCampList.push(item)
  752. }
  753. }
  754. }
  755. },
  756. checkedArray(content, arr) {
  757. //判断主营内容是否已存在
  758. console.log(content, arr)
  759. for (var i in arr) {
  760. if (arr[i].name == content) {
  761. return true
  762. }
  763. }
  764. return false
  765. }
  766. },
  767. onShow() {
  768. if (this.isPreviewImage) {
  769. this.isPreviewImage = false
  770. return
  771. }
  772. }
  773. }
  774. </script>
  775. <style lang="scss">
  776. .placeholder {
  777. color: #b2b2b2;
  778. }
  779. .register {
  780. width: 100%;
  781. height: auto;
  782. border-top: 1px solid #f7f7f7;
  783. .register-main {
  784. width: 100%;
  785. height: auto;
  786. background: #ffffff;
  787. padding: 20rpx 0;
  788. &.title {
  789. background-image: linear-gradient(
  790. 270deg,
  791. rgba(255, 255, 255, 0.1) 0%,
  792. rgba(255, 86, 11, 0.1) 51%,
  793. rgba(255, 255, 255, 0.1) 100%
  794. );
  795. }
  796. &.detailed {
  797. padding-bottom: 300rpx;
  798. }
  799. &.first {
  800. padding-top: 110rpx;
  801. }
  802. .register-tips {
  803. display: flex;
  804. flex-direction: column;
  805. align-items: center;
  806. line-height: 44rpx;
  807. font-size: $font-size-24;
  808. color: #ff0000;
  809. margin-bottom: 40rpx;
  810. .iconfont {
  811. font-size: $font-size-24;
  812. }
  813. }
  814. .register-row {
  815. width: 702rpx;
  816. height: auto;
  817. padding: 0 24rpx;
  818. margin-bottom: 20rpx;
  819. .secondTyperadio {
  820. border: 2rpx solid #e1e1e1;
  821. display: inline-block;
  822. font-size: 26rpx;
  823. color: #999999;
  824. padding: 0 24rpx;
  825. border-radius: 22rpx;
  826. line-height: 42rpx;
  827. margin-right: 30rpx;
  828. float: left;
  829. &.active {
  830. border: 2rpx solid #ffe6dc;
  831. color: $color-system;
  832. }
  833. }
  834. &.none {
  835. margin-bottom: 0;
  836. }
  837. .error-title {
  838. line-height: 40rpx;
  839. font-size: $font-size-28;
  840. color: $text-color;
  841. text-align: left;
  842. }
  843. .error-main {
  844. padding: 10rpx 0;
  845. .error-item {
  846. padding: 0 20rpx;
  847. margin: 10rpx;
  848. background: #f53636;
  849. height: 52rpx;
  850. line-height: 52rpx;
  851. border-radius: 26rpx;
  852. font-size: $font-size-26;
  853. color: #ffffff;
  854. text-align: center;
  855. display: inline-block;
  856. }
  857. }
  858. .register-tip {
  859. line-height: 64rpx;
  860. font-size: $font-size-20;
  861. color: #fea785;
  862. text-align: left;
  863. }
  864. .register-title {
  865. line-height: 44rpx;
  866. font-size: $font-size-24;
  867. color: $color-system;
  868. text-align: left;
  869. }
  870. .row-btn {
  871. position: absolute;
  872. right: 24rpx;
  873. top: 0;
  874. line-height: 88rpx;
  875. text-align: center;
  876. font-size: $font-size-28;
  877. color: $color-system;
  878. }
  879. .register-from {
  880. width: 100%;
  881. height: 88rpx;
  882. background: #ffffff;
  883. position: relative;
  884. border-bottom: 1px solid #e1e1e1;
  885. box-sizing: border-box;
  886. &.noneborder {
  887. border: none;
  888. }
  889. &.second {
  890. padding-left: 0;
  891. }
  892. .label {
  893. text-align: left;
  894. font-size: $font-size-28;
  895. color: #666666;
  896. line-height: 88rpx;
  897. float: left;
  898. }
  899. .kes-title {
  900. font-size: $font-size-28;
  901. color: #666666;
  902. line-height: 88rpx;
  903. }
  904. .row-input {
  905. width: 520rpx;
  906. padding-left: 10rpx;
  907. font-size: $font-size-28;
  908. color: $text-color;
  909. line-height: 88rpx;
  910. float: right;
  911. height: 88rpx;
  912. &.code {
  913. width: 500rpx;
  914. }
  915. &.none {
  916. color: #999999;
  917. }
  918. &.picker {
  919. text-align: left;
  920. color: #333333;
  921. }
  922. }
  923. .keshi {
  924. width: 100%;
  925. border: 2rpx solid #E1E1E1;
  926. border-radius: 6rpx;
  927. height: 80rpx;
  928. line-height: 80rpx;
  929. font-size: $font-size-28;
  930. padding:0 10rpx;
  931. box-sizing: border-box;
  932. }
  933. &.code {
  934. width: 410rpx;
  935. float: left;
  936. margin-right: 20rpx;
  937. .row-input {
  938. width: 390rpx;
  939. }
  940. }
  941. &.btn {
  942. width: 224rpx;
  943. height: 88rpx;
  944. float: left;
  945. background: $btn-confirm;
  946. padding: 0;
  947. .row-input {
  948. width: 224rpx;
  949. height: 88rpx;
  950. line-height: 88rpx;
  951. padding: 0;
  952. color: #ffffff;
  953. background: $btn-confirm;
  954. text-align: center;
  955. border-radius: 14rpx;
  956. &.other {
  957. width: 430rpx;
  958. background: #fff;
  959. margin-right: 20rpx;
  960. border: 2rpx solid #b2b2b2;
  961. border-radius: 44rpx;
  962. padding: 0 24rpx;
  963. height: 64rpx;
  964. line-height: 64rpx;
  965. }
  966. &.none {
  967. background: #f7f7f7;
  968. }
  969. }
  970. &.disabled {
  971. background: #f7f7f7;
  972. .row-input {
  973. background: #f7f7f7;
  974. color: #999999;
  975. }
  976. }
  977. }
  978. &.picker {
  979. width: 100%;
  980. height: 88rpx;
  981. line-height: 88rpx;
  982. .label {
  983. line-height: 88rpx;
  984. }
  985. .label-radio {
  986. margin-right: 10rpx;
  987. }
  988. .row-radio {
  989. transform: scale(0.8);
  990. }
  991. .row-input {
  992. width: 100%;
  993. height: 88rpx;
  994. line-height: 88rpx;
  995. padding-left: 30rpx;
  996. }
  997. }
  998. &.radio {
  999. width: 654rpx;
  1000. height: 288rpx;
  1001. .row-input {
  1002. width: 100%;
  1003. height: 88rpx;
  1004. line-height: 88rpx;
  1005. padding-left: 0;
  1006. }
  1007. .row-radio {
  1008. float: left;
  1009. transform: scale(0.8);
  1010. }
  1011. .row-text {
  1012. width: 100rpx;
  1013. text-align: center;
  1014. float: left;
  1015. }
  1016. }
  1017. &.group {
  1018. width: 702rpx;
  1019. height: auto;
  1020. background: #ffffff;
  1021. border: 0;
  1022. .label {
  1023. line-height: 76rpx;
  1024. }
  1025. .row-input {
  1026. width: 100%;
  1027. height: 88rpx;
  1028. line-height: 88rpx;
  1029. padding-left: 0;
  1030. }
  1031. .row-radio {
  1032. float: left;
  1033. }
  1034. .row-text {
  1035. width: 100rpx;
  1036. text-align: center;
  1037. float: left;
  1038. }
  1039. }
  1040. &.btn {
  1041. margin-top: 0;
  1042. }
  1043. .content-class {
  1044. margin: 20rpx auto;
  1045. display: flex;
  1046. flex-flow: row wrap;
  1047. justify-content: space-between;
  1048. align-items: center;
  1049. &.btn {
  1050. margin: 0 auto;
  1051. }
  1052. .row-input {
  1053. display: flex;
  1054. width: 220rpx;
  1055. height: 40rpx;
  1056. padding: 24rpx;
  1057. text-align: left;
  1058. border-radius: 10rpx;
  1059. font-size: $font-size-28;
  1060. color: $text-color;
  1061. }
  1062. .confirm-btn {
  1063. width: 160rpx;
  1064. height: 64rpx;
  1065. border-radius: 10rpx;
  1066. border-radius: 45rpx;
  1067. line-height: 64rpx;
  1068. text-align: center;
  1069. background: #ffe6dc;
  1070. color: $color-system;
  1071. margin: 0;
  1072. &.other {
  1073. width: 213rpx;
  1074. }
  1075. }
  1076. .item {
  1077. height: 60rpx;
  1078. font-size: $font-size-28;
  1079. line-height: 60rpx;
  1080. border-radius: 10rpx;
  1081. margin: 5rpx;
  1082. box-sizing: border-box;
  1083. float: left;
  1084. }
  1085. .item-checkbox {
  1086. display: none;
  1087. }
  1088. .item-text {
  1089. border: 2rpx solid #e1e1e1;
  1090. display: inline-block;
  1091. font-size: 26rpx;
  1092. color: #999999;
  1093. padding: 0 30rpx;
  1094. border-radius: 28rpx;
  1095. line-height: 50rpx;
  1096. float: left;
  1097. }
  1098. .on {
  1099. .item-text {
  1100. border-color: $color-system;
  1101. color: $color-system;
  1102. }
  1103. }
  1104. }
  1105. }
  1106. .icon-xiayibu {
  1107. width: 88rpx;
  1108. height: 88rpx;
  1109. position: absolute;
  1110. right: 0;
  1111. top: 0;
  1112. line-height: 88rpx;
  1113. text-align: center;
  1114. color: #b2b2b2;
  1115. }
  1116. &.text-textarea {
  1117. background: #ffffff;
  1118. .textarea {
  1119. width: 100%;
  1120. height: 120rpx;
  1121. background: #ffffff;
  1122. padding: 24rpx 0;
  1123. font-size: $font-size-28;
  1124. color: $text-color;
  1125. z-index: 1;
  1126. border-bottom: 1px solid #e1e1e1;
  1127. }
  1128. .textarea.hide {
  1129. opacity: 0;
  1130. }
  1131. .textarea.show {
  1132. color: #999999;
  1133. }
  1134. }
  1135. }
  1136. .register-picture {
  1137. // height: 102rpx;
  1138. margin: 30rpx 0;
  1139. // width: 42%;
  1140. // float: left;
  1141. &.zz {
  1142. width: 100%;
  1143. }
  1144. .label {
  1145. // float: left;
  1146. font-size: $font-size-28;
  1147. color: $text-color;
  1148. line-height: 102rpx;
  1149. // width: 150rpx;
  1150. // text-align: left;
  1151. &.zz {
  1152. width: 230rpx;
  1153. }
  1154. }
  1155. .upload-picture {
  1156. // float: left;
  1157. width: 200rpx;
  1158. height: 180rpx;
  1159. .upload-none {
  1160. width: 200rpx;
  1161. height: 180rpx;
  1162. text-align: center;
  1163. line-height: 100rpx;
  1164. color: #999999;
  1165. // border: 1px solid #999999;
  1166. border-radius: 10rpx;
  1167. // margin: 0 20rpx;
  1168. // .iconfont{
  1169. // font-size: $font-size-28;
  1170. // }
  1171. image {
  1172. width: 100%;
  1173. height: 100%;
  1174. }
  1175. }
  1176. .upload-image {
  1177. width: 200rpx;
  1178. height: 180rpx;
  1179. border-radius: 10rpx;
  1180. margin: 0 20rpx;
  1181. position: relative;
  1182. image {
  1183. width: 100%;
  1184. height: 100%;
  1185. border-radius: 10rpx;
  1186. }
  1187. .upload-del {
  1188. width: 40rpx;
  1189. height: 40rpx;
  1190. position: absolute;
  1191. top: -20rpx;
  1192. right: -20rpx;
  1193. line-height: 40rpx;
  1194. text-align: center;
  1195. .iconfont {
  1196. font-size: $font-size-32;
  1197. color: #999999;
  1198. }
  1199. }
  1200. }
  1201. }
  1202. }
  1203. .register-input {
  1204. width: 654rpx;
  1205. height: 40rpx;
  1206. padding: 24rpx;
  1207. margin: 0 auto;
  1208. margin-bottom: 60rpx;
  1209. background: #f7f7f7;
  1210. border-radius: 14rpx;
  1211. .input {
  1212. width: 100%;
  1213. height: 100%;
  1214. background: #f7f7f7;
  1215. font-size: $font-size-28;
  1216. line-height: 40rpx;
  1217. color: #333333;
  1218. border-radius: 14rpx;
  1219. }
  1220. }
  1221. .register-fiexd {
  1222. width: 100%;
  1223. height: auto;
  1224. padding: 20rpx 0;
  1225. position: fixed;
  1226. bottom: 0;
  1227. left: 0;
  1228. z-index: 99;
  1229. background: #ffffff;
  1230. .register-agree {
  1231. display: flex;
  1232. flex-direction: column;
  1233. align-items: center;
  1234. margin: 32rpx 0;
  1235. .agree-text {
  1236. .checkbox {
  1237. float: left;
  1238. margin: 4rpx 6rpx 0 0;
  1239. color: #999999;
  1240. font-size: $font-size-32;
  1241. &.icon-gouxuan {
  1242. color: $color-system;
  1243. }
  1244. }
  1245. font-size: 20rpx;
  1246. line-height: 44rpx;
  1247. color: #999999;
  1248. text {
  1249. color: #0091ff;
  1250. }
  1251. }
  1252. }
  1253. }
  1254. .register-btn {
  1255. width: 600rpx;
  1256. height: 88rpx;
  1257. border-radius: 44rpx;
  1258. font-size: $font-size-28;
  1259. line-height: 88rpx;
  1260. color: #ffffff;
  1261. margin: 0 auto;
  1262. text-align: center;
  1263. background: $btn-confirm;
  1264. margin-top: 96rpx;
  1265. &.none {
  1266. background: #ffffff;
  1267. color: $text-color;
  1268. margin-top: 0;
  1269. }
  1270. &.sub {
  1271. margin-top: 0;
  1272. }
  1273. }
  1274. }
  1275. }
  1276. checkbox .wx-checkbox-input {
  1277. border-radius: 50%;
  1278. width: 36rpx;
  1279. height: 36rpx;
  1280. }
  1281. /* 选中后的 背景样式 */
  1282. checkbox .wx-checkbox-input.wx-checkbox-input-checked {
  1283. background: #e15616;
  1284. border: 2rpx solid #e15616;
  1285. }
  1286. checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
  1287. border-radius: 50%;
  1288. width: 36rpx;
  1289. height: 36rpx;
  1290. line-height: 36rpx;
  1291. text-align: center;
  1292. font-size: 20rpx;
  1293. color: #fff;
  1294. transform: scale(0.8);
  1295. -webkit-transform: translate(-50%, -50%) scale(1);
  1296. }
  1297. .tui-alert-box {
  1298. width: 100%;
  1299. height: 100%;
  1300. display: flex;
  1301. align-items: center;
  1302. justify-content: center;
  1303. flex-direction: column;
  1304. position: fixed;
  1305. left: 0;
  1306. top: 0;
  1307. opacity: 1;
  1308. background: rgba(51, 51, 51, 0.5);
  1309. z-index: 99999;
  1310. .tui-alert-content {
  1311. width: 580rpx;
  1312. height: 324rpx;
  1313. border-radius: 16rpx;
  1314. background-color: #ffffff;
  1315. position: absolute;
  1316. top: 0;
  1317. bottom: 0;
  1318. right: 0;
  1319. left: 0;
  1320. margin: auto;
  1321. .tui-alert-main {
  1322. width: 100%;
  1323. height: 234rpx;
  1324. box-sizing: border-box;
  1325. padding: 60rpx 30rpx;
  1326. line-height: 60rpx;
  1327. font-size: $font-size-26;
  1328. color: #666666;
  1329. text-align: justify;
  1330. .red {
  1331. color: #e15616;
  1332. }
  1333. }
  1334. .tui-alert-btn {
  1335. width: 100%;
  1336. height: 90rpx;
  1337. box-sizing: border-box;
  1338. line-height: 90rpx;
  1339. background: $btn-confirm;
  1340. color: #ffffff;
  1341. text-align: center;
  1342. font-size: $font-size-28;
  1343. border-radius: 0 0 16rpx 16rpx;
  1344. }
  1345. }
  1346. }
  1347. </style>