apply.vue 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371
  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="errorList.length>0">
  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) {
  522. this.$util.msg('请选择机构类型', 2000)
  523. return
  524. }
  525. if (this.firstClubType === 1){
  526. if (this.medicalPracticeLicense === '') {
  527. this.$util.msg('请上传您的资质许可证', 2000)
  528. return
  529. }
  530. }
  531. if (this.firstClubType == 1 || this.firstClubType == 2) {
  532. if (this.mainProduct == '') {
  533. this.$util.msg('请选择机构主营内容', 2000)
  534. return
  535. }
  536. }
  537. let params = {
  538. userId: this.userId,
  539. clubId: this.clubId, //会所ID
  540. contractEmail: this.contractEmail,
  541. name: this.clubName,
  542. linkManIdentity:this.linkManIdentity,
  543. shortName: this.shortName,
  544. provinceId: this.addressData.provinceId,
  545. cityId: this.addressData.cityId,
  546. townId: this.addressData.townId,
  547. address: this.addressData.addressDetail,
  548. socialCreditCode: this.socialCreditCode,
  549. businessLicense: this.businessLicense,
  550. shopPhoto: this.shopPhoto,
  551. firstClubType: this.firstClubType, //机构类型分类 医美:1和生美:2
  552. secondClubType: this.secondClubType, //机构类型二级分类 诊所:1,门诊:2,医院:3
  553. department: this.department, //科室
  554. medicalPracticeLicense: this.medicalPracticeLicense, //资质图片
  555. mainProduct: this.mainProduct
  556. }
  557. // 友盟埋点普通机构确认升级点击事件
  558. if (process.env.NODE_ENV != 'development') {
  559. this.$uma.trackEvent('Um_Event_ConfirmClubUpgrade', {
  560. Um_Key_ClubName: `${this.clubName}`,
  561. Um_Key_PageName: '普通机构确认升级',
  562. Um_Key_SourcePage: '升级页面'
  563. })
  564. }
  565. this.UserService.OrganizationRegister(params)
  566. .then(response => {
  567. this.isConfirmShow = true
  568. })
  569. .catch(error => {
  570. this.$util.msg(error.msg, 2000)
  571. })
  572. },
  573. handleClick() {
  574. //隐藏提示弹窗
  575. this.isConfirmShow = false
  576. setTimeout(() => {
  577. uni.navigateBack()
  578. }, 2000)
  579. },
  580. // 三级联动选择
  581. showMulLinkageThreePicker() {
  582. this.isShowInput = true
  583. this.$refs.mpvueCityPicker.show()
  584. },
  585. onConfirm(e) {
  586. this.addressData.address = e.name
  587. this.addressData.townId = e.townCode
  588. this.addressData.cityId = e.cityCode
  589. this.addressData.provinceId = e.provinceCode
  590. },
  591. onTextareaInput(e) {
  592. this.addressData.addressDetail = e.detail.value
  593. },
  594. showTextareaFocus() {
  595. //文本框获取焦点
  596. this.isShowInput = false
  597. this.textareaFocus = true
  598. },
  599. hideTextareaFocus() {
  600. //文本框失去焦点
  601. this.isShowInput = true
  602. this.textareaFocus = false
  603. },
  604. chooseBusinessImage() {
  605. //营业执照图片上传
  606. uploadFileImage().then(res => {
  607. this.businessLicense = JSON.parse(res.data).data
  608. })
  609. },
  610. chooseMentuzImage() {
  611. //门头照图片上传
  612. uploadFileImage().then(res => {
  613. this.shopPhoto = JSON.parse(res.data).data
  614. })
  615. },
  616. chooseMedicalImage() {
  617. //资质照图片上传
  618. uploadFileImage().then(res => {
  619. this.medicalPracticeLicense = JSON.parse(res.data).data
  620. })
  621. },
  622. viewBusinessImage(e) {
  623. this.myPreviewImageFn(this.businessLicense)
  624. },
  625. viewMentuzImage(e) {
  626. this.myPreviewImageFn(this.shopPhoto)
  627. },
  628. viewMedicalImage(e) {
  629. this.myPreviewImageFn(this.medicalPracticeLicense)
  630. },
  631. myPreviewImageFn(url) {
  632. this.isPreviewImage = true
  633. let mentuzArray = []
  634. mentuzArray.push(url)
  635. uni.previewImage({
  636. urls: mentuzArray,
  637. current: 0
  638. })
  639. },
  640. delBusinessImage() {
  641. this.$util.modal('', '确定删除营业执照图片吗?', '确定', '取消', true, () => {
  642. this.businessLicense = ''
  643. })
  644. },
  645. delMentuzImage() {
  646. this.$util.modal('', '确定删除门头照图片吗?', '确定', '取消', true, () => {
  647. this.shopPhoto = ''
  648. })
  649. },
  650. delMedicalImage() {
  651. this.$util.modal('', '确定删除资质图片吗?', '确定', '取消', true, () => {
  652. this.medicalPracticeLicense = ''
  653. })
  654. },
  655. bindPickerChange() {
  656. let self = this
  657. uni.showActionSheet({
  658. title:'标题',
  659. itemList: ['医美', '生美','项目公司','个人','其他'],
  660. success: (e) => {
  661. self.firstClubType = e.tapIndex+1
  662. switch(e.tapIndex){
  663. case 0:
  664. this.organizationTypeText = '医美'
  665. break
  666. case 1:
  667. this.organizationTypeText = '生美'
  668. break
  669. case 2:
  670. this.organizationTypeText = '项目公司'
  671. break
  672. case 3:
  673. this.organizationTypeText = '个人'
  674. break
  675. case 4:
  676. this.organizationTypeText = '其他'
  677. break
  678. }
  679. }
  680. })
  681. },
  682. bindPickerChange2(e) {
  683. this.typtIndex = e.target.values
  684. this.firstClubType = e.target.value
  685. },
  686. bindPickerUserName(e){//选择联系人身份
  687. this.linkManIdentityText = this.stateActions[e.target.value].name
  688. this.linkManIdentity= this.stateActions[e.target.value].value
  689. },
  690. radioChange(item) {
  691. this.secondClubType = item.value
  692. if (this.secondClubType == 2 || this.secondClubType == 3) {
  693. this.isDepartment = true
  694. } else {
  695. this.isDepartment = false
  696. }
  697. },
  698. chooseMaleLike(e) {
  699. this.mainProduct = this.checkLikes(e, this.mentuzCampList)
  700. },
  701. chooseMaleLikes(e) {
  702. this.mainProduct = this.checkLikes(e, this.medicaCampList)
  703. },
  704. checkLikes(e, list) {
  705. let values = e.detail.value
  706. let arr = []
  707. list.forEach(item => {
  708. if (values.indexOf(item.value) >= 0) {
  709. this.$set(item, 'checked', true)
  710. arr.push(item.name)
  711. } else {
  712. this.$set(item, 'checked', false)
  713. }
  714. })
  715. return arr.join('/')
  716. },
  717. // onBlurInput(e){//
  718. // if(e.detail.value ===''){
  719. // this.isDisabled = true
  720. // }else{
  721. // this.isDisabled = false
  722. // }
  723. // },
  724. showAustomItem() {
  725. this.isShowAustomItem = !this.isShowAustomItem
  726. },
  727. setNewMainpro(arr) {
  728. //回显处理主营内容
  729. let _ARRAY = []
  730. arr.split('/').forEach((item, index) => {
  731. let _OBJ = { value: (index + 1).toString(), name: item, checked: true }
  732. _ARRAY.push(_OBJ)
  733. })
  734. return _ARRAY
  735. },
  736. addCustomItem() {
  737. if (this.customItemValue == '') {
  738. this.$util.msg('请输入自定义主营内容', 2000)
  739. } else {
  740. if (this.firstClubType == 1) {
  741. let item = { value: `${this.mentuzCampList.length + 1}`, name: this.customItemValue, checked: true }
  742. if (this.checkedArray(this.customItemValue, this.mentuzCampList)) {
  743. this.$util.msg('主营内容已存在!', 2000)
  744. } else {
  745. this.mentuzCampList.push(item)
  746. }
  747. } else {
  748. let item = { value: `${this.medicaCampList.length + 1}`, name: this.customItemValue, checked: true }
  749. if (this.checkedArray(this.customItemValue, this.medicaCampList)) {
  750. this.$util.msg('主营内容已存在!', 2000)
  751. } else {
  752. this.medicaCampList.push(item)
  753. }
  754. }
  755. }
  756. },
  757. checkedArray(content, arr) {
  758. //判断主营内容是否已存在
  759. console.log(content, arr)
  760. for (var i in arr) {
  761. if (arr[i].name == content) {
  762. return true
  763. }
  764. }
  765. return false
  766. },
  767. firstClubTypeText(value){
  768. // 机构类型文案
  769. const map = {
  770. 1: '医美',
  771. 2: '生美',
  772. 3: '项目公司',
  773. 4: '个人',
  774. 5: '其他'
  775. }
  776. return map[value]
  777. },
  778. linkManFilters(value) {
  779. // 联系人身份
  780. const map = {
  781. 1: '老板',
  782. 2: '采购',
  783. 3: '运营',
  784. 4: '其他'
  785. }
  786. return map[value]
  787. },
  788. },
  789. onShow() {
  790. if (this.isPreviewImage) {
  791. this.isPreviewImage = false
  792. return
  793. }
  794. }
  795. }
  796. </script>
  797. <style lang="scss">
  798. .placeholder {
  799. color: #b2b2b2;
  800. }
  801. .register {
  802. width: 100%;
  803. height: auto;
  804. border-top: 1px solid #f7f7f7;
  805. .register-main {
  806. width: 100%;
  807. height: auto;
  808. background: #ffffff;
  809. padding: 20rpx 0;
  810. &.title {
  811. background-image: linear-gradient(
  812. 270deg,
  813. rgba(255, 255, 255, 0.1) 0%,
  814. rgba(255, 86, 11, 0.1) 51%,
  815. rgba(255, 255, 255, 0.1) 100%
  816. );
  817. }
  818. &.detailed {
  819. padding-bottom: 300rpx;
  820. }
  821. &.first {
  822. padding-top: 110rpx;
  823. }
  824. .register-tips {
  825. display: flex;
  826. flex-direction: column;
  827. align-items: center;
  828. line-height: 44rpx;
  829. font-size: $font-size-24;
  830. color: #ff0000;
  831. margin-bottom: 40rpx;
  832. .iconfont {
  833. font-size: $font-size-24;
  834. }
  835. }
  836. .register-row {
  837. width: 702rpx;
  838. height: auto;
  839. padding: 0 24rpx;
  840. margin-bottom: 20rpx;
  841. .secondTyperadio {
  842. border: 2rpx solid #e1e1e1;
  843. display: inline-block;
  844. font-size: 26rpx;
  845. color: #999999;
  846. padding: 0 24rpx;
  847. border-radius: 22rpx;
  848. line-height: 42rpx;
  849. margin-right: 30rpx;
  850. float: left;
  851. &.active {
  852. border: 2rpx solid #ffe6dc;
  853. color: $color-system;
  854. }
  855. }
  856. &.none {
  857. margin-bottom: 0;
  858. }
  859. .error-title {
  860. line-height: 40rpx;
  861. font-size: $font-size-28;
  862. color: $text-color;
  863. text-align: left;
  864. }
  865. .error-main {
  866. padding: 10rpx 0;
  867. .error-item {
  868. padding: 0 20rpx;
  869. margin: 10rpx;
  870. background: #f53636;
  871. height: 52rpx;
  872. line-height: 52rpx;
  873. border-radius: 26rpx;
  874. font-size: $font-size-26;
  875. color: #ffffff;
  876. text-align: center;
  877. display: inline-block;
  878. }
  879. }
  880. .register-tip {
  881. line-height: 64rpx;
  882. font-size: $font-size-20;
  883. color: #fea785;
  884. text-align: left;
  885. }
  886. .register-title {
  887. line-height: 44rpx;
  888. font-size: $font-size-24;
  889. color: $color-system;
  890. text-align: left;
  891. }
  892. .row-btn {
  893. position: absolute;
  894. right: 24rpx;
  895. top: 0;
  896. line-height: 88rpx;
  897. text-align: center;
  898. font-size: $font-size-28;
  899. color: $color-system;
  900. }
  901. .register-from {
  902. width: 100%;
  903. height: 88rpx;
  904. background: #ffffff;
  905. position: relative;
  906. border-bottom: 1px solid #e1e1e1;
  907. box-sizing: border-box;
  908. &.noneborder {
  909. border: none;
  910. }
  911. &.second {
  912. padding-left: 0;
  913. }
  914. .label {
  915. text-align: left;
  916. font-size: $font-size-28;
  917. color: #666666;
  918. line-height: 88rpx;
  919. float: left;
  920. }
  921. .kes-title {
  922. font-size: $font-size-28;
  923. color: #666666;
  924. line-height: 88rpx;
  925. }
  926. .row-input {
  927. width: 520rpx;
  928. padding-left: 10rpx;
  929. font-size: $font-size-28;
  930. color: $text-color;
  931. line-height: 88rpx;
  932. float: right;
  933. height: 88rpx;
  934. &.code {
  935. width: 500rpx;
  936. }
  937. &.none {
  938. color: #999999;
  939. }
  940. &.picker {
  941. text-align: left;
  942. color: #333333;
  943. }
  944. }
  945. .keshi {
  946. width: 100%;
  947. border: 2rpx solid #E1E1E1;
  948. border-radius: 6rpx;
  949. height: 80rpx;
  950. line-height: 80rpx;
  951. font-size: $font-size-28;
  952. padding:0 10rpx;
  953. box-sizing: border-box;
  954. }
  955. &.code {
  956. width: 410rpx;
  957. float: left;
  958. margin-right: 20rpx;
  959. .row-input {
  960. width: 390rpx;
  961. }
  962. }
  963. &.btn {
  964. width: 224rpx;
  965. height: 88rpx;
  966. float: left;
  967. background: $btn-confirm;
  968. padding: 0;
  969. .row-input {
  970. width: 224rpx;
  971. height: 88rpx;
  972. line-height: 88rpx;
  973. padding: 0;
  974. color: #ffffff;
  975. background: $btn-confirm;
  976. text-align: center;
  977. border-radius: 14rpx;
  978. &.other {
  979. width: 430rpx;
  980. background: #fff;
  981. margin-right: 20rpx;
  982. border: 2rpx solid #b2b2b2;
  983. border-radius: 44rpx;
  984. padding: 0 24rpx;
  985. height: 64rpx;
  986. line-height: 64rpx;
  987. }
  988. &.none {
  989. background: #f7f7f7;
  990. }
  991. }
  992. &.disabled {
  993. background: #f7f7f7;
  994. .row-input {
  995. background: #f7f7f7;
  996. color: #999999;
  997. }
  998. }
  999. }
  1000. &.picker {
  1001. width: 100%;
  1002. height: 88rpx;
  1003. line-height: 88rpx;
  1004. .label {
  1005. line-height: 88rpx;
  1006. }
  1007. .label-radio {
  1008. margin-right: 10rpx;
  1009. }
  1010. .row-radio {
  1011. transform: scale(0.8);
  1012. }
  1013. .row-input {
  1014. width: 100%;
  1015. height: 88rpx;
  1016. line-height: 88rpx;
  1017. padding-left: 30rpx;
  1018. }
  1019. }
  1020. &.radio {
  1021. width: 654rpx;
  1022. height: 288rpx;
  1023. .row-input {
  1024. width: 100%;
  1025. height: 88rpx;
  1026. line-height: 88rpx;
  1027. padding-left: 0;
  1028. }
  1029. .row-radio {
  1030. float: left;
  1031. transform: scale(0.8);
  1032. }
  1033. .row-text {
  1034. width: 100rpx;
  1035. text-align: center;
  1036. float: left;
  1037. }
  1038. }
  1039. &.group {
  1040. width: 702rpx;
  1041. height: auto;
  1042. background: #ffffff;
  1043. border: 0;
  1044. .label {
  1045. line-height: 76rpx;
  1046. }
  1047. .row-input {
  1048. width: 100%;
  1049. height: 88rpx;
  1050. line-height: 88rpx;
  1051. padding-left: 0;
  1052. }
  1053. .row-radio {
  1054. float: left;
  1055. }
  1056. .row-text {
  1057. width: 100rpx;
  1058. text-align: center;
  1059. float: left;
  1060. }
  1061. }
  1062. &.btn {
  1063. margin-top: 0;
  1064. }
  1065. .content-class {
  1066. margin: 20rpx auto;
  1067. display: flex;
  1068. flex-flow: row wrap;
  1069. justify-content: space-between;
  1070. align-items: center;
  1071. &.btn {
  1072. margin: 0 auto;
  1073. }
  1074. .row-input {
  1075. display: flex;
  1076. width: 220rpx;
  1077. height: 40rpx;
  1078. padding: 24rpx;
  1079. text-align: left;
  1080. border-radius: 10rpx;
  1081. font-size: $font-size-28;
  1082. color: $text-color;
  1083. }
  1084. .confirm-btn {
  1085. width: 160rpx;
  1086. height: 64rpx;
  1087. border-radius: 10rpx;
  1088. border-radius: 45rpx;
  1089. line-height: 64rpx;
  1090. text-align: center;
  1091. background: #ffe6dc;
  1092. color: $color-system;
  1093. margin: 0;
  1094. &.other {
  1095. width: 213rpx;
  1096. }
  1097. }
  1098. .item {
  1099. height: 60rpx;
  1100. font-size: $font-size-28;
  1101. line-height: 60rpx;
  1102. border-radius: 10rpx;
  1103. margin: 5rpx;
  1104. box-sizing: border-box;
  1105. float: left;
  1106. }
  1107. .item-checkbox {
  1108. display: none;
  1109. }
  1110. .item-text {
  1111. border: 2rpx solid #e1e1e1;
  1112. display: inline-block;
  1113. font-size: 26rpx;
  1114. color: #999999;
  1115. padding: 0 30rpx;
  1116. border-radius: 28rpx;
  1117. line-height: 50rpx;
  1118. float: left;
  1119. }
  1120. .on {
  1121. .item-text {
  1122. border-color: $color-system;
  1123. color: $color-system;
  1124. }
  1125. }
  1126. }
  1127. }
  1128. .icon-xiayibu {
  1129. width: 88rpx;
  1130. height: 88rpx;
  1131. position: absolute;
  1132. right: 0;
  1133. top: 0;
  1134. line-height: 88rpx;
  1135. text-align: center;
  1136. color: #b2b2b2;
  1137. }
  1138. &.text-textarea {
  1139. background: #ffffff;
  1140. .textarea {
  1141. width: 100%;
  1142. height: 120rpx;
  1143. background: #ffffff;
  1144. padding: 24rpx 0;
  1145. font-size: $font-size-28;
  1146. color: $text-color;
  1147. z-index: 1;
  1148. border-bottom: 1px solid #e1e1e1;
  1149. }
  1150. .textarea.hide {
  1151. opacity: 0;
  1152. }
  1153. .textarea.show {
  1154. color: #999999;
  1155. }
  1156. }
  1157. }
  1158. .register-picture {
  1159. // height: 102rpx;
  1160. margin: 30rpx 0;
  1161. // width: 42%;
  1162. // float: left;
  1163. &.zz {
  1164. width: 100%;
  1165. }
  1166. .label {
  1167. // float: left;
  1168. font-size: $font-size-28;
  1169. color: $text-color;
  1170. line-height: 102rpx;
  1171. // width: 150rpx;
  1172. // text-align: left;
  1173. &.zz {
  1174. width: 230rpx;
  1175. }
  1176. }
  1177. .upload-picture {
  1178. // float: left;
  1179. width: 200rpx;
  1180. height: 180rpx;
  1181. .upload-none {
  1182. width: 200rpx;
  1183. height: 180rpx;
  1184. text-align: center;
  1185. line-height: 100rpx;
  1186. color: #999999;
  1187. // border: 1px solid #999999;
  1188. border-radius: 10rpx;
  1189. // margin: 0 20rpx;
  1190. // .iconfont{
  1191. // font-size: $font-size-28;
  1192. // }
  1193. image {
  1194. width: 100%;
  1195. height: 100%;
  1196. }
  1197. }
  1198. .upload-image {
  1199. width: 200rpx;
  1200. height: 180rpx;
  1201. border-radius: 10rpx;
  1202. margin: 0 20rpx;
  1203. position: relative;
  1204. image {
  1205. width: 100%;
  1206. height: 100%;
  1207. border-radius: 10rpx;
  1208. }
  1209. .upload-del {
  1210. width: 40rpx;
  1211. height: 40rpx;
  1212. position: absolute;
  1213. top: -20rpx;
  1214. right: -20rpx;
  1215. line-height: 40rpx;
  1216. text-align: center;
  1217. .iconfont {
  1218. font-size: $font-size-32;
  1219. color: #999999;
  1220. }
  1221. }
  1222. }
  1223. }
  1224. }
  1225. .register-input {
  1226. width: 654rpx;
  1227. height: 40rpx;
  1228. padding: 24rpx;
  1229. margin: 0 auto;
  1230. margin-bottom: 60rpx;
  1231. background: #f7f7f7;
  1232. border-radius: 14rpx;
  1233. .input {
  1234. width: 100%;
  1235. height: 100%;
  1236. background: #f7f7f7;
  1237. font-size: $font-size-28;
  1238. line-height: 40rpx;
  1239. color: #333333;
  1240. border-radius: 14rpx;
  1241. }
  1242. }
  1243. .register-fiexd {
  1244. width: 100%;
  1245. height: auto;
  1246. padding: 20rpx 0;
  1247. position: fixed;
  1248. bottom: 0;
  1249. left: 0;
  1250. z-index: 99;
  1251. background: #ffffff;
  1252. .register-agree {
  1253. display: flex;
  1254. flex-direction: column;
  1255. align-items: center;
  1256. margin: 32rpx 0;
  1257. .agree-text {
  1258. .checkbox {
  1259. float: left;
  1260. margin: 4rpx 6rpx 0 0;
  1261. color: #999999;
  1262. font-size: $font-size-32;
  1263. &.icon-gouxuan {
  1264. color: $color-system;
  1265. }
  1266. }
  1267. font-size: 20rpx;
  1268. line-height: 44rpx;
  1269. color: #999999;
  1270. text {
  1271. color: #0091ff;
  1272. }
  1273. }
  1274. }
  1275. }
  1276. .register-btn {
  1277. width: 600rpx;
  1278. height: 88rpx;
  1279. border-radius: 44rpx;
  1280. font-size: $font-size-28;
  1281. line-height: 88rpx;
  1282. color: #ffffff;
  1283. margin: 0 auto;
  1284. text-align: center;
  1285. background: $btn-confirm;
  1286. margin-top: 96rpx;
  1287. &.none {
  1288. background: #ffffff;
  1289. color: $text-color;
  1290. margin-top: 0;
  1291. }
  1292. &.sub {
  1293. margin-top: 0;
  1294. }
  1295. }
  1296. }
  1297. }
  1298. checkbox .wx-checkbox-input {
  1299. border-radius: 50%;
  1300. width: 36rpx;
  1301. height: 36rpx;
  1302. }
  1303. /* 选中后的 背景样式 */
  1304. checkbox .wx-checkbox-input.wx-checkbox-input-checked {
  1305. background: #FF5B00;
  1306. border: 2rpx solid #FF5B00;
  1307. }
  1308. checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
  1309. border-radius: 50%;
  1310. width: 36rpx;
  1311. height: 36rpx;
  1312. line-height: 36rpx;
  1313. text-align: center;
  1314. font-size: 20rpx;
  1315. color: #fff;
  1316. transform: scale(0.8);
  1317. -webkit-transform: translate(-50%, -50%) scale(1);
  1318. }
  1319. .tui-alert-box {
  1320. width: 100%;
  1321. height: 100%;
  1322. display: flex;
  1323. align-items: center;
  1324. justify-content: center;
  1325. flex-direction: column;
  1326. position: fixed;
  1327. left: 0;
  1328. top: 0;
  1329. opacity: 1;
  1330. background: rgba(51, 51, 51, 0.5);
  1331. z-index: 99999;
  1332. .tui-alert-content {
  1333. width: 580rpx;
  1334. height: 324rpx;
  1335. border-radius: 16rpx;
  1336. background-color: #ffffff;
  1337. position: absolute;
  1338. top: 0;
  1339. bottom: 0;
  1340. right: 0;
  1341. left: 0;
  1342. margin: auto;
  1343. .tui-alert-main {
  1344. width: 100%;
  1345. height: 234rpx;
  1346. box-sizing: border-box;
  1347. padding: 60rpx 30rpx;
  1348. line-height: 60rpx;
  1349. font-size: $font-size-26;
  1350. color: #666666;
  1351. text-align: justify;
  1352. .red {
  1353. color: #FF5B00;
  1354. }
  1355. }
  1356. .tui-alert-btn {
  1357. width: 100%;
  1358. height: 90rpx;
  1359. box-sizing: border-box;
  1360. line-height: 90rpx;
  1361. background: $btn-confirm;
  1362. color: #ffffff;
  1363. text-align: center;
  1364. font-size: $font-size-28;
  1365. border-radius: 0 0 16rpx 16rpx;
  1366. }
  1367. }
  1368. }
  1369. </style>