star-list.vue 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. <template>
  2. <div class="page">
  3. <div class="page-content">
  4. <!-- 标题 -->
  5. <div class="title flex justify-between px-4 pt-8 pb-6 md:px-0">
  6. <div>明星机构</div>
  7. <div>共<span v-text="total" class="font-bold"></span>家明星机构</div>
  8. </div>
  9. <!-- 列表 -->
  10. <div class="list">
  11. <template v-for="item in list">
  12. <div
  13. class="section flex justify-between mb-4"
  14. :key="item.authId"
  15. @click="toDetail(item)"
  16. >
  17. <img class="cover" :src="item.logo || drawLogo(item.authParty)" />
  18. <div class="info">
  19. <div class="name" v-text="item.authParty"></div>
  20. <div class="mobile">{{ item.mobile || '暂无' }}</div>
  21. <div class="address">
  22. {{ formatAddress(item.area, item.address) }}
  23. </div>
  24. </div>
  25. </div>
  26. </template>
  27. </div>
  28. </div>
  29. </div>
  30. </template>
  31. <script>
  32. import clubStarListMixin from '@/mixins/clubStarList'
  33. export default {
  34. layout: 'app-hyt',
  35. mixins: [clubStarListMixin],
  36. }
  37. </script>
  38. <style scoped lang="scss">
  39. .el-input {
  40. ::v-deep {
  41. & > {
  42. .el-input.is-active .el-input__inner,
  43. .el-input__inner:focus {
  44. border-color: #4093B5;
  45. }
  46. }
  47. }
  48. }
  49. // pc 端
  50. @media screen and (min-width: 768px) {
  51. .page {
  52. position: relative;
  53. min-height: calc(100vh - 80px - 80px);
  54. background-color: #fff;
  55. }
  56. .page-top {
  57. height: 530px;
  58. background-image: url(~assets/theme-images/hyt/pc/banner-club.jpg);
  59. background-size: cover;
  60. background-position: center;
  61. }
  62. .page-content {
  63. position: relative;
  64. width: 1000px;
  65. margin: 0 auto;
  66. .title {
  67. font-size: 16px;
  68. color: #404040;
  69. span {
  70. color: #4093B5;
  71. }
  72. }
  73. .filter {
  74. padding: 48px 0 105px;
  75. .search {
  76. width: 640px;
  77. margin: 0 auto;
  78. .el-input {
  79. height: 46px;
  80. font-size: 16px;
  81. .el-input__icon {
  82. font-size: 24px;
  83. line-height: 46px;
  84. margin-left: 12px;
  85. }
  86. ::v-deep {
  87. & > .el-input__inner {
  88. height: 46px;
  89. padding-left: 55px;
  90. }
  91. }
  92. }
  93. }
  94. }
  95. .navbar {
  96. position: absolute;
  97. top: 240px;
  98. right: -168px;
  99. width: 120px;
  100. border-radius: 16px;
  101. background: #fff;
  102. box-shadow: 0px 6px 20px rgba(40, 40, 40, 0.1);
  103. padding: 24px 0;
  104. box-sizing: border-box;
  105. z-index: 2;
  106. .link {
  107. &:hover {
  108. .icon {
  109. &.icon-device {
  110. background: url(~assets/theme-images/hyt/pc/nav-entry-device-active.png)
  111. no-repeat center center,
  112. linear-gradient(180deg, #ffba63 0%, #4093B5 100%);
  113. background-size: 48px, 100%;
  114. }
  115. &.icon-doctor {
  116. background: url(~assets/theme-images/hyt/pc/nav-entry-doctor-active.png)
  117. no-repeat center center,
  118. linear-gradient(180deg, #ffba63 0%, #4093B5 100%);
  119. background-size: 48px, 100%;
  120. }
  121. }
  122. .text {
  123. color: #4093B5;
  124. }
  125. }
  126. span {
  127. display: block;
  128. }
  129. .icon {
  130. width: 72px;
  131. height: 72px;
  132. // background: linear-gradient(180deg, #ffba63 0%, #BC1724 100%);
  133. background-color: #f6f6f7;
  134. border-radius: 12px;
  135. &.icon-device {
  136. background: url(~assets/theme-images/hyt/pc/nav-entry-device.png)
  137. no-repeat center center #f6f6f7;
  138. background-size: 48px;
  139. }
  140. &.icon-doctor {
  141. background: url(~assets/theme-images/hyt/pc/nav-entry-doctor.png)
  142. no-repeat center center #f6f6f7;
  143. background-size: 48px;
  144. }
  145. }
  146. .text {
  147. font-size: 16px;
  148. color: #404040;
  149. margin-top: 8px;
  150. }
  151. }
  152. }
  153. .list {
  154. display: flex;
  155. align-items: center;
  156. justify-content: space-between;
  157. flex-wrap: wrap;
  158. .empty {
  159. width: 390px;
  160. }
  161. .section {
  162. width: 490px;
  163. height: 136px;
  164. background-color: #f3f5f6;
  165. border-radius: 4px;
  166. box-sizing: border-box;
  167. padding: 16px;
  168. cursor: pointer;
  169. transition: all 0.4s;
  170. &:hover {
  171. box-shadow: 0 0 24px rgba(0, 0, 0, 0.2);
  172. }
  173. .cover {
  174. display: block;
  175. width: 104px;
  176. height: 104px;
  177. }
  178. .info {
  179. position: relative;
  180. margin-left: 12px;
  181. width: 330px;
  182. .name {
  183. width: 200px;
  184. font-size: 18px;
  185. color: #101010;
  186. font-weight: bold;
  187. margin-bottom: 24px;
  188. text-overflow: ellipsis;
  189. white-space: nowrap;
  190. overflow: hidden;
  191. }
  192. .mobile,
  193. .address {
  194. width: 268px;
  195. position: relative;
  196. font-size: 14px;
  197. color: #404040;
  198. padding-left: 24px;
  199. line-height: 24px;
  200. text-overflow: ellipsis;
  201. white-space: nowrap;
  202. margin-top: 6px;
  203. overflow: hidden;
  204. &::after {
  205. content: '';
  206. display: block;
  207. width: 16px;
  208. height: 16px;
  209. position: absolute;
  210. left: 0;
  211. top: 50%;
  212. transform: translateY(-50%);
  213. background-size: 16px;
  214. background-repeat: no-repeat;
  215. }
  216. }
  217. .mobile {
  218. &::after {
  219. background-image: url(~assets/theme-images/common/pc-icon-mobile.png);
  220. }
  221. }
  222. .address {
  223. &::after {
  224. background-image: url(~assets/theme-images/common/pc-icon-address.png);
  225. }
  226. }
  227. .distance {
  228. position: absolute;
  229. font-size: 14px;
  230. color: #404040;
  231. top: 2px;
  232. right: 0;
  233. }
  234. }
  235. }
  236. }
  237. }
  238. }
  239. // 移动 端
  240. @media screen and (max-width: 768px) {
  241. .page-top {
  242. height: 100vw;
  243. background: url(~assets/theme-images/hyt/h5/banner-club.png);
  244. background-size: 100vw 100vw !important;
  245. background-position: center;
  246. .logo {
  247. display: block;
  248. width: 14.8vw;
  249. height: 14.8vw;
  250. border-radius: 50%;
  251. background: #fff;
  252. }
  253. .name {
  254. font-size: 4vw;
  255. color: #fff;
  256. }
  257. }
  258. .page-content {
  259. position: relative;
  260. .title {
  261. font-size: 3.4vw;
  262. color: #404040;
  263. span {
  264. color: #4093B5;
  265. }
  266. }
  267. .filter {
  268. padding: 6.4vw 3.2vw 12.8vw;
  269. }
  270. .navbar {
  271. position: fixed;
  272. top: 50% !important;
  273. right: 3.2vw;
  274. left: unset !important;
  275. width: 14vw;
  276. border-radius: 1.6vw;
  277. background: #fff;
  278. box-shadow: 0px 0.6vw 2vw rgba(40, 40, 40, 0.1);
  279. padding: 2.8vw 0;
  280. box-sizing: border-box;
  281. z-index: 2;
  282. span {
  283. display: block;
  284. }
  285. .icon {
  286. position: relative;
  287. width: 7.2vw;
  288. height: 7.2vw;
  289. border-radius: 1.2vw;
  290. background: linear-gradient(180deg, #ffba63 0%, #4093B5 100%);
  291. &.icon-device,
  292. &.icon-doctor {
  293. &::after {
  294. content: '';
  295. display: block;
  296. width: 4.8vw;
  297. height: 4.8vw;
  298. position: absolute;
  299. left: 50%;
  300. top: 50%;
  301. transform: translate(-50%, -50%);
  302. background-size: 4.8vw !important;
  303. }
  304. }
  305. &.icon-device {
  306. &::after {
  307. background: url(~assets/theme-images/hyt/pc/nav-entry-device-active.png)
  308. no-repeat center;
  309. }
  310. }
  311. &.icon-doctor {
  312. &::after {
  313. background: url(~assets/theme-images/hyt/pc/nav-entry-doctor-active.png)
  314. no-repeat center;
  315. }
  316. }
  317. }
  318. .text {
  319. font-size: 2.4vw;
  320. color: #4093B5;
  321. margin-top: 1.2vw;
  322. }
  323. }
  324. }
  325. .list {
  326. display: flex;
  327. align-items: center;
  328. flex-direction: column;
  329. .section {
  330. width: 93.6vw;
  331. height: 26vw;
  332. background-color: #f3f5f6;
  333. border-radius: 4px;
  334. box-sizing: border-box;
  335. padding: 3.2vw;
  336. .cover {
  337. display: block;
  338. width: 19.6vw;
  339. height: 19.6vw;
  340. }
  341. .info {
  342. position: relative;
  343. margin-left: 3.2vw;
  344. .name {
  345. width: 48vw;
  346. font-size: 4vw;
  347. color: #101010;
  348. font-weight: bold;
  349. margin-bottom: 4vw;
  350. text-overflow: ellipsis;
  351. white-space: nowrap;
  352. overflow: hidden;
  353. }
  354. .mobile,
  355. .address {
  356. width: 66vw;
  357. position: relative;
  358. font-size: 3vw;
  359. color: #404040;
  360. padding-left: 5vw;
  361. line-height: 5vw;
  362. text-overflow: ellipsis;
  363. white-space: nowrap;
  364. overflow: hidden;
  365. &::after {
  366. content: '';
  367. display: block;
  368. width: 4vw;
  369. height: 4vw;
  370. position: absolute;
  371. left: 0;
  372. top: 50%;
  373. transform: translateY(-50%);
  374. background-size: 4vw 4vw;
  375. background-repeat: no-repeat;
  376. }
  377. }
  378. .mobile {
  379. &::after {
  380. background-image: url(~assets/theme-images/common/h5-icon-mobile.png);
  381. }
  382. }
  383. .address {
  384. &::after {
  385. background-image: url(~assets/theme-images/common/h5-icon-address.png);
  386. }
  387. }
  388. .distance {
  389. position: absolute;
  390. font-size: 3vw;
  391. color: #404040;
  392. top: 0.8vw;
  393. right: 0;
  394. }
  395. }
  396. }
  397. }
  398. }
  399. </style>