club-detail.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  1. <template>
  2. <div class="club-detail page">
  3. <div class="page-top"></div>
  4. <div class="page-content">
  5. <div class="title">机构认证信息</div>
  6. <template v-if="!isAuth">
  7. <div class="tip">抱歉,您暂未认证机构</div>
  8. <div class="btn" @click="toAuth">去认证</div>
  9. </template>
  10. <template v-else>
  11. <div class="row">
  12. <div class="col label">机构名称:</div>
  13. <div class="col content">{{ clubInfo.authParty }}</div>
  14. </div>
  15. <div class="row">
  16. <div class="col label">联系电话:</div>
  17. <div class="col content">{{ clubInfo.mobile }}</div>
  18. </div>
  19. <div class="row">
  20. <div class="col label">运营联系人:</div>
  21. <div class="col content">{{ clubInfo.linkMan }}</div>
  22. </div>
  23. <div class="row">
  24. <div class="col label">运营联系人手机号:</div>
  25. <div class="col content">{{ clubInfo.linkMobile }}</div>
  26. </div>
  27. <div class="row">
  28. <div class="col label">所在地区:</div>
  29. <div class="col content">{{ clubInfo.area }}</div>
  30. </div>
  31. <div class="row">
  32. <div class="col label">详细地址:</div>
  33. <div class="col content">{{ clubInfo.address }}</div>
  34. </div>
  35. <div class="row">
  36. <div class="col label">所在位置:</div>
  37. <div class="col content">
  38. <div class="postion-btn" @click="initMap">查看定位</div>
  39. </div>
  40. </div>
  41. <div class="row block">
  42. <div class="col label">logo:</div>
  43. <div class="col content">
  44. <el-image :src="clubInfo.logo" v-if="clubInfo.logo"></el-image>
  45. </div>
  46. </div>
  47. <div class="row block">
  48. <div class="col label">门头照:</div>
  49. <div class="col content">
  50. <template v-for="(image, index) in clubInfo.bannerList">
  51. <el-image :src="image" :key="index"></el-image>
  52. </template>
  53. </div>
  54. </div>
  55. <div class="row">
  56. <div class="col label">机构类型:</div>
  57. <div class="col content">{{ firstClubTypeName }}</div>
  58. </div>
  59. <div class="row">
  60. <div class="col label">医美类型:</div>
  61. <div class="col content">{{ secondClubTypeName }}</div>
  62. </div>
  63. <div class="row block">
  64. <div class="col label">医疗许可证:</div>
  65. <div class="col content">
  66. <el-image
  67. :src="clubInfo.medicalLicenseImage"
  68. v-if="clubInfo.medicalLicenseImage"
  69. ></el-image>
  70. </div>
  71. </div>
  72. <div class="row">
  73. <div class="col label">员工人数:</div>
  74. <div class="col content">{{ clubInfo.empNum }}</div>
  75. </div>
  76. </template>
  77. </div>
  78. <div class="position-select" v-if="mapVisiable">
  79. <div class="position-select-container">
  80. <SimpleAMap ref="aMap" :lnglat="lnglat" />
  81. <div class="position-select-footer">
  82. <div class="lnglat">当前经纬度:{{ clubInfo.lngAndLat }}</div>
  83. <div
  84. class="position-confirm postion-control"
  85. @click="mapVisiable = false"
  86. >
  87. 确定
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </template>
  94. <script>
  95. import { mapGetters } from 'vuex'
  96. export default {
  97. layout: 'app-hyt',
  98. data() {
  99. return {
  100. mapVisiable: false,
  101. clubInfo: {},
  102. }
  103. },
  104. computed: {
  105. ...mapGetters(['userInfo', 'routePrefix']),
  106. isAuth() {
  107. return this.clubInfo.auditStatus === 1
  108. },
  109. firstClubTypeName() {
  110. if (!this.clubInfo.firstClubType) return '其他'
  111. return ['医美', '生美', '项目公司', '个人', '其他'][
  112. this.clubInfo.firstClubType - 1
  113. ]
  114. },
  115. secondClubTypeName() {
  116. if (!this.clubInfo.secondClubType) return '其他'
  117. return ['诊所', '门诊', '医院', '其他', '美容院', '养生馆', '其他'][
  118. this.clubInfo.secondClubType - 1
  119. ]
  120. },
  121. lnglat() {
  122. return this.clubInfo.lngAndLat ? this.clubInfo.lngAndLat.split(',') : null
  123. },
  124. },
  125. created() {
  126. this.fetchClubDetail()
  127. },
  128. methods: {
  129. // 获取机构详情
  130. async fetchClubDetail() {
  131. try {
  132. const authId = this.userInfo.authId
  133. if (!authId) return
  134. const res = await this.$http.api.fetchClubAuthInfoData({ authId })
  135. this.clubInfo = res.data
  136. } catch (error) {
  137. console.log(error)
  138. }
  139. },
  140. // 去认证
  141. toAuth() {
  142. this.$router.push(`${this.routePrefix}/form/club-register`)
  143. },
  144. // 地图定位
  145. initMap() {
  146. this.mapVisiable = true
  147. this.$nextTick(() => {
  148. this.$refs.aMap.init()
  149. })
  150. },
  151. },
  152. }
  153. </script>
  154. <style lang="scss" scoped>
  155. @media screen and (min-width: 768px) {
  156. .page {
  157. display: flex;
  158. justify-content: center;
  159. }
  160. .position-select {
  161. width: 100vw;
  162. height: 100vh;
  163. background: rgba(0, 0, 0, 0.39);
  164. position: fixed;
  165. top: 0;
  166. left: 0;
  167. z-index: 999;
  168. display: flex;
  169. justify-content: center;
  170. align-items: center;
  171. .position-select-container {
  172. background: #fff;
  173. width: 60%;
  174. box-sizing: border-box;
  175. padding: 24px;
  176. .position-select-footer {
  177. position: relative;
  178. display: flex;
  179. justify-content: flex-end;
  180. align-items: center;
  181. padding-top: 24px;
  182. .lnglat {
  183. position: absolute;
  184. font-size: 14px;
  185. color: #666;
  186. left: 0;
  187. top: 50%;
  188. transform: translateY(-50%);
  189. }
  190. }
  191. .postion-control {
  192. width: 120px;
  193. height: 40px;
  194. font-size: 14px;
  195. border-radius: 4px;
  196. display: flex;
  197. justify-content: center;
  198. align-items: center;
  199. cursor: pointer;
  200. margin-left: 16px;
  201. &.position-confirm {
  202. background: #f56c6c;
  203. color: #fff;
  204. }
  205. &.position-cancel {
  206. background: #b1b1b1;
  207. color: #fff;
  208. }
  209. }
  210. }
  211. }
  212. .page-content {
  213. max-width: 760px;
  214. padding-bottom: 167px;
  215. .title {
  216. font-size: 24px;
  217. color: #282828;
  218. font-weight: bold;
  219. text-align: center;
  220. padding: 60px 0;
  221. }
  222. .tip {
  223. font-size: 16px;
  224. color: #b2b2b2;
  225. margin-top: 200px;
  226. margin-bottom: 24px;
  227. text-align: center;
  228. }
  229. .btn {
  230. width: 98px;
  231. height: 36px;
  232. background: #BC1724;
  233. border-radius: 4px;
  234. text-align: center;
  235. line-height: 36px;
  236. color: #fff;
  237. font-size: 16px;
  238. margin: 0 auto;
  239. cursor: pointer;
  240. }
  241. .row {
  242. display: flex;
  243. align-items: flex-start;
  244. margin: 32px 0;
  245. .col {
  246. font-size: 16px;
  247. }
  248. .label {
  249. color: #666666;
  250. min-width: 100px;
  251. }
  252. .content {
  253. color: #282828;
  254. .el-image {
  255. width: 106px;
  256. height: 106px;
  257. border: 1px solid #dcdcdc;
  258. margin-right: 4px;
  259. &:last-child {
  260. margin-right: 0;
  261. }
  262. }
  263. .postion-btn {
  264. height: 28px;
  265. line-height: 28px;
  266. font-size: 14px;
  267. color: #fff;
  268. background: #1890ff;
  269. display: flex;
  270. justify-content: center;
  271. align-items: center;
  272. cursor: pointer;
  273. border-radius: 4px;
  274. padding: 0 8px;
  275. &::before {
  276. content: '';
  277. display: inline-block;
  278. width: 16px;
  279. height: 16px;
  280. background: url(~assets/theme-images/common/icon-position.png)
  281. no-repeat center;
  282. background-size: 16px 16px;
  283. }
  284. }
  285. }
  286. }
  287. }
  288. }
  289. @media screen and (max-width: 768px) {
  290. .page {
  291. display: flex;
  292. justify-content: center;
  293. }
  294. .position-select {
  295. width: 100vw;
  296. height: 100vh;
  297. background: rgba(0, 0, 0, 0.39);
  298. position: fixed;
  299. top: 0;
  300. left: 0;
  301. z-index: 999;
  302. display: flex;
  303. justify-content: center;
  304. align-items: center;
  305. .position-select-container {
  306. background: #fff;
  307. width: 80%;
  308. box-sizing: border-box;
  309. padding: 3.2vw;
  310. .position-select-footer {
  311. padding-top: 10vw;
  312. position: relative;
  313. display: flex;
  314. justify-content: flex-end;
  315. align-items: center;
  316. .lnglat {
  317. position: absolute;
  318. font-size: 3.2vw;
  319. color: #666;
  320. left: 0;
  321. top: 5vw;
  322. transform: translateY(-50%);
  323. }
  324. }
  325. .postion-control {
  326. width: 16vw;
  327. height: 7vw;
  328. font-size: 3.4vw;
  329. border-radius: 0.4vw;
  330. display: flex;
  331. justify-content: center;
  332. align-items: center;
  333. cursor: pointer;
  334. margin-left: 3.6vw;
  335. &.position-confirm {
  336. background: #f56c6c;
  337. color: #fff;
  338. }
  339. &.position-cancel {
  340. background: #b1b1b1;
  341. color: #fff;
  342. }
  343. }
  344. }
  345. }
  346. .page-content {
  347. padding: 0 4vw;
  348. .title {
  349. font-size: 4.2vw;
  350. color: #282828;
  351. font-weight: bold;
  352. text-align: center;
  353. padding: 8vw 0;
  354. }
  355. .tip {
  356. font-size: 3vw;
  357. color: #b2b2b2;
  358. margin-top: 60vw;
  359. margin-bottom: 4.8vw;
  360. text-align: center;
  361. }
  362. .btn {
  363. width: 36vw;
  364. height: 8.8vw;
  365. background: #BC1724;
  366. border-radius: 0.4vw;
  367. text-align: center;
  368. line-height: 8.8vw;
  369. color: #fff;
  370. font-size: 3.4vw;
  371. margin: 0 auto;
  372. }
  373. .row {
  374. display: flex;
  375. align-items: flex-start;
  376. margin: 5.6vw 0;
  377. &.block {
  378. display: block;
  379. .label {
  380. margin-bottom: 2.4vw;
  381. }
  382. }
  383. .col {
  384. font-size: 3.4vw;
  385. }
  386. .label {
  387. color: #666666;
  388. min-width: 20.4vw;
  389. }
  390. .content {
  391. color: #282828;
  392. .el-image {
  393. width: 26vw;
  394. height: 26vw;
  395. border: 0.1vw solid #dcdcdc;
  396. margin-right: 0.6vw;
  397. &:last-child {
  398. margin-right: 0;
  399. }
  400. }
  401. .postion-btn {
  402. height: 6.8vw;
  403. line-height: 6.8vw;
  404. font-size: 3.2vw;
  405. color: #fff;
  406. background: #1890ff;
  407. display: flex;
  408. justify-content: center;
  409. align-items: center;
  410. cursor: pointer;
  411. border-radius: 0.4vw;
  412. padding: 0 1.2vw;
  413. &::before {
  414. content: '';
  415. display: inline-block;
  416. width: 3.58vw;
  417. height: 3.58vw;
  418. background: url(~assets/theme-images/common/icon-position.png)
  419. no-repeat center;
  420. background-size: 3.58vw;
  421. }
  422. }
  423. }
  424. }
  425. }
  426. }
  427. </style>