index.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <div class="contentBox py-10 px-3">
  3. <div class="d-flex align-center justify-center">
  4. <div class="home-title">
  5. 优选集团
  6. <div class="home-title-line"></div>
  7. </div>
  8. </div>
  9. <div no-gutters class="mt-5 d-flex flex-wrap" style="width: 100%;">
  10. <v-card v-for="(k, i) in list" :key="i" class="col-item" @click="jumpToEnterpriseDetail(k.link, true)">
  11. <v-img :src="k.img"/>
  12. </v-card>
  13. </div>
  14. </div>
  15. </template>
  16. <script setup>
  17. defineOptions({ name: 'advertisementPage'})
  18. import { jumpToEnterpriseDetail } from '@/utils/position'
  19. defineProps({ list: Array, content: Object })
  20. // const handleOpen = (k) => {
  21. // if (!k.link) return
  22. // if (props.content && Object.keys(props.content).length > 0 && props.content[k.link]) {
  23. // // 集团页面
  24. // window.open(`/recruit/personal/advertisement/${k.link}`)
  25. // } else window.open(`/recruit/personal/company/details/${k.link}?key=briefIntroduction`)
  26. // }
  27. </script>
  28. <style scoped lang="scss">
  29. .contentBox {
  30. border-radius: 8px;
  31. }
  32. .link {
  33. top: 10px;
  34. position: relative;
  35. width: 100px;
  36. height: 1px;
  37. display: inline-block;
  38. background-image: linear-gradient(170deg, #00897B, rgba(255, 133, 0, 0));
  39. &::before {
  40. width: 4px;
  41. height: 4px;
  42. background: var(--v-primary-base);
  43. content: '';
  44. position: absolute;
  45. top: -2px;
  46. right: 0;
  47. }
  48. &:first-child::before {
  49. left: 0;
  50. }
  51. }
  52. .col-item {
  53. cursor: pointer;
  54. width: calc((100% - 24px) / 3);
  55. min-width: calc((100% - 24px) / 3);
  56. max-width: calc((100% - 24px) / 3);
  57. margin: 0 12px 12px 0;
  58. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  59. &:nth-child(3n) {
  60. margin-right: 0;
  61. }
  62. &:hover {
  63. box-shadow: 0 16px 40px 0 rgba(153, 153, 153, .3);
  64. }
  65. }
  66. </style>