star-list.vue 10 KB

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