apply.vue 36 KB

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