club-detail.vue 11 KB

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