123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <template>
- <div class="contentBox py-10 px-3">
- <div class="d-flex align-center justify-center">
- <div class="home-title">
- 优选集团
- <div class="home-title-line"></div>
- </div>
- </div>
- <div no-gutters class="mt-5 d-flex flex-wrap" style="width: 100%;">
- <v-card v-for="(k, i) in list" :key="i" class="col-item" @click="jumpToEnterpriseDetail(k.link, true)">
- <v-img :src="k.img"/>
- </v-card>
- </div>
- </div>
- </template>
- <script setup>
- defineOptions({ name: 'advertisementPage'})
- import { jumpToEnterpriseDetail } from '@/utils/position'
- defineProps({ list: Array, content: Object })
- // const handleOpen = (k) => {
- // if (!k.link) return
- // if (props.content && Object.keys(props.content).length > 0 && props.content[k.link]) {
- // // 集团页面
- // window.open(`/recruit/personal/advertisement/${k.link}`)
- // } else window.open(`/recruit/personal/company/details/${k.link}?key=briefIntroduction`)
- // }
- </script>
- <style scoped lang="scss">
- .contentBox {
- border-radius: 8px;
- }
- .link {
- top: 10px;
- position: relative;
- width: 100px;
- height: 1px;
- display: inline-block;
- background-image: linear-gradient(170deg, #00897B, rgba(255, 133, 0, 0));
- &::before {
- width: 4px;
- height: 4px;
- background: var(--v-primary-base);
- content: '';
- position: absolute;
- top: -2px;
- right: 0;
- }
- &:first-child::before {
- left: 0;
- }
- }
- .col-item {
- cursor: pointer;
- width: calc((100% - 24px) / 3);
- min-width: calc((100% - 24px) / 3);
- max-width: calc((100% - 24px) / 3);
- margin: 0 12px 12px 0;
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
- &:nth-child(3n) {
- margin-right: 0;
- }
- &:hover {
- box-shadow: 0 16px 40px 0 rgba(153, 153, 153, .3);
- }
- }
- </style>
|