advertisement.vue 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <div class="white-bgc contentBox py-10 px-3">
  3. <div class="d-flex align-center justify-center">
  4. <span class="link"></span>
  5. <span class="title">优质企业</span>
  6. <span class="link"></span>
  7. </div>
  8. <div no-gutters class="mt-5 d-flex flex-wrap" style="width: 100%;">
  9. <v-card v-for="(k, i) in list" :key="i" class="col-item">
  10. <img :src="k.url" alt="" style="width: 100%; height: 190px;border-radius: 4px;display: block;">
  11. </v-card>
  12. </div>
  13. </div>
  14. </template>
  15. <script setup>
  16. defineOptions({ name: 'advertisementPage'})
  17. const list = [
  18. { url: 'https://admin.61hr.com/admin/uploads/images/ad/202407/345bf4c8ea3f439f9f8bdfee16ff5dfd.gif' },
  19. { url: 'https://admin.61hr.com/admin/uploads/images/ad/202407/345bf4c8ea3f439f9f8bdfee16ff5dfd.gif' },
  20. { url: 'https://admin.61hr.com/admin/uploads/images/ad/202407/345bf4c8ea3f439f9f8bdfee16ff5dfd.gif' },
  21. { url: 'https://admin.61hr.com/admin/uploads/images/ad/202407/e684374c0ff349b4945bc0c7a4a2713f.gif' },
  22. { url: 'https://admin.61hr.com/admin/uploads/images/ad/202407/e684374c0ff349b4945bc0c7a4a2713f.gif' },
  23. { url: 'https://admin.61hr.com/admin/uploads/images/ad/202407/e684374c0ff349b4945bc0c7a4a2713f.gif' }
  24. ]
  25. </script>
  26. <style scoped lang="scss">
  27. .contentBox {
  28. border-radius: 8px;
  29. }
  30. .link {
  31. top: 10px;
  32. position: relative;
  33. width: 100px;
  34. height: 1px;
  35. display: inline-block;
  36. background-image: linear-gradient(170deg, #00897B, rgba(255, 133, 0, 0));
  37. &::before {
  38. width: 4px;
  39. height: 4px;
  40. background: var(--v-primary-base);
  41. content: '';
  42. position: absolute;
  43. top: -2px;
  44. right: 0;
  45. }
  46. &:first-child::before {
  47. left: 0;
  48. }
  49. }
  50. .title {
  51. font-size: 24px;
  52. font-weight: 600;
  53. color: var(--v-primary-base);
  54. margin: 0 15px;
  55. }
  56. .col-item {
  57. cursor: pointer;
  58. width: calc((100% - 24px) / 3);
  59. min-width: calc((100% - 24px) / 3);
  60. max-width: calc((100% - 24px) / 3);
  61. margin: 0 12px 12px 0;
  62. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  63. &:nth-child(3n) {
  64. margin-right: 0;
  65. }
  66. &:hover {
  67. box-shadow: 0 16px 40px 0 rgba(153, 153, 153, .3);
  68. }
  69. }
  70. </style>