apply.vue 36 KB

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