star-list.vue 11 KB

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