123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- <template>
- <div class="hot-box">
- <div class="sub-li" v-for="(item, index) in list" :key="index">
- <!-- 公司信息 -->
- <div class="company-info-top">
- <div class="float-left">
- <v-img :src="item.enterpriseImg" :alt="item.enterpriseName" :width="40" style="height: 40px;border-radius: 4px;"/>
- </div>
- <div class="company-info">
- <h3>{{ item.enterpriseName }}</h3>
- <p>{{ item.enterpriseNature }}<span class="vline"></span>{{ item.scale }}<span class="vline"></span>{{ item.industry }}</p>
- </div>
- </div>
- <!-- 职位列表 -->
- <ul class="company-job-list">
- <li class="company-job-item" v-for="(k, i) in item.positions" :key="i">
- <div class="job-info">
- <div class="mb-2 d-flex">
- <p class="name">{{ k.recruitName }}</p>
- <v-icon size="20" class="message">mdi-message-processing</v-icon>
- <span class="salary">{{ k.salary }}</span>
- </div>
- <v-chip size="x-small" label class="mr-1" color="#666" v-for="j in k.tags" :key="j">{{ j }}</v-chip>
- </div>
- </li>
- </ul>
- <div class="text-center">
- <v-btn class="buttons" color="primary" variant="outlined">查看更多职位</v-btn>
- </div>
- </div>
- </div>
- </template>
- <script setup name="hotPromoted">
- const list = [
- {
- enterpriseImg: 'https://img.bosszhipin.com/beijin/upload/com/workfeel/20231212/7bf6f160950405e90671d208831c3be24a7230ff916830a84f48ca3d2af0604795d2582973667498.png',
- enterpriseName: '博彦科技',
- enterpriseNature: '私营企业',
- scale: '100000人以上',
- industry: '计算机软件',
- positions: [
- {
- recruitName: '跨境电商运营跨境电商运营跨境电商运营跨境电商运营',
- salary: '7-9K',
- tags: ['广州番禺南浦', '本科', '1-3年']
- },
- {
- recruitName: '跨境电商运营',
- salary: '7-9K',
- tags: ['广州番禺南浦', '本科', '1-3年']
- },
- {
- recruitName: '跨境电商运营',
- salary: '7-9K',
- tags: ['广州番禺南浦', '本科', '1-3年']
- }
- ]
- },
- {
- enterpriseImg: 'https://img.bosszhipin.com/beijin/upload/com/workfeel/20231212/7bf6f160950405e90671d208831c3be24a7230ff916830a84f48ca3d2af0604795d2582973667498.png',
- enterpriseName: '博彦科技',
- enterpriseNature: '私营企业',
- scale: '100000人以上',
- industry: '计算机软件',
- positions: [
- {
- recruitName: '跨境电商运营',
- salary: '7-9K',
- tags: ['广州番禺南浦', '本科', '1-3年']
- },
- {
- recruitName: '跨境电商运营',
- salary: '7-9K',
- tags: ['广州番禺南浦', '本科', '1-3年']
- },
- {
- recruitName: '跨境电商运营',
- salary: '7-9K',
- tags: ['广州番禺南浦', '本科', '1-3年']
- }
- ]
- },
- {
- enterpriseImg: 'https://img.bosszhipin.com/beijin/upload/com/workfeel/20231212/7bf6f160950405e90671d208831c3be24a7230ff916830a84f48ca3d2af0604795d2582973667498.png',
- enterpriseName: '博彦科技',
- enterpriseNature: '私营企业',
- scale: '100000人以上',
- industry: '计算机软件',
- positions: [
- {
- recruitName: '跨境电商运营',
- salary: '7-9K',
- tags: ['广州番禺南浦', '本科', '1-3年']
- },
- {
- recruitName: '跨境电商运营',
- salary: '7-9K',
- tags: ['广州番禺南浦', '本科', '1-3年']
- },
- {
- recruitName: '跨境电商运营',
- salary: '7-9K',
- tags: ['广州番禺南浦', '本科', '1-3年']
- }
- ]
- },
- {
- enterpriseImg: 'https://img.bosszhipin.com/beijin/upload/com/workfeel/20231212/7bf6f160950405e90671d208831c3be24a7230ff916830a84f48ca3d2af0604795d2582973667498.png',
- enterpriseName: '博彦科技',
- enterpriseNature: '私营企业',
- scale: '100000人以上',
- industry: '计算机软件',
- positions: [
- {
- recruitName: '跨境电商运营',
- salary: '7-9K',
- tags: ['广州番禺南浦', '本科', '1-3年']
- },
- {
- recruitName: '跨境电商运营',
- salary: '7-9K',
- tags: ['广州番禺南浦', '本科', '1-3年']
- },
- {
- recruitName: '跨境电商运营',
- salary: '7-9K',
- tags: ['广州番禺南浦', '本科', '1-3年']
- }
- ]
- }
- ]
- </script>
- <style lang="scss" scoped>
- .hot-box {
- display: flex;
- flex-wrap: wrap;
- }
- .sub-li {
- width: calc((100% - 24px) / 3);
- min-width: calc((100% - 24px) / 3);
- max-width: calc((100% - 24px) / 3);
- margin: 0 12px 12px 0;
- height: 388px;
- border-radius: 12px;
- padding: 0;
- overflow: hidden;
- transition: all .2s linear;
- background-color: #fff;
- cursor: pointer;
- &:nth-child(3n) {
- margin-right: 0;
- }
- }
- .company-info {
- float: left;
- margin-left: 16px;
- width: 282px;
- }
- .company-info-top {
- display: flex;
- height: 76px;
- padding: 16px 20px;
- overflow: hidden;
- background: linear-gradient(90deg, #f2fafa 0, #fcfbfa 100%);
- }
- .company-info h3 {
- height: 22px;
- font-size: 16px;
- font-weight: 400;
- color: #222;
- line-height: 22px;
- margin: 0 0 4px 0;
- padding: 0;
- max-width: 100%;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- .company-info p {
- height: 18px;
- font-size: 13px;
- font-weight: 400;
- color: #999;
- line-height: 18px;
- }
- .vline {
- display: inline-block;
- width: 1px;
- height: 10px;
- vertical-align: middle;
- background-color: #e0e0e0;
- margin: 0 10px;
- }
- .company-job-list {
- display: block;
- padding: 4px 20px 12px;
- margin-right: -16px;
- overflow: hidden;
- }
- ul li {
- list-style: none
- }
- .company-job-item {
- display: block;
- height: auto;
- width: 344px;
- padding: 12px 0;
- margin: 0;
- }
- .salary {
- font-size: 16px;
- float: right;
- font-weight: 700;
- color: #fe574a;
- line-height: 22px;
- max-width: none;
- text-align: right;
- flex: 1;
- }
- .name {
- position: relative;
- max-width: 200px;
- line-height: 22px;
- font-weight: 500;
- color: #222;
- margin-right: 8px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- transition: all linear .2s;
- &:hover {
- color: var(--v-primary-base);
- }
- }
- .message {
- color: #bfc1c9;
- &:hover {
- color: var(--v-primary-base);
- }
- }
- </style>
|