apply.vue 35 KB

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