Files

148 lines
4.1 KiB
Vue
Raw Permalink Normal View History

2025-05-13 11:10:38 +08:00
<template>
<view v-for="job in listData" :key="job.id">
<view class="cards" @click="nextDetail(job)">
<view class="card-company">
<text class="company line_1">{{ job.name }}</text>
</view>
<view class="card-bottom">
<view class="fl_box fs_14">
<dict-tree-Label class="mar_ri10" dictType="industry" :value="job.industry"></dict-tree-Label>
<dict-Label dictType="scale" :value="job.scale"></dict-Label>
</view>
2025-07-09 15:15:37 +08:00
<view class="ris">
<text class="fs_14">
在招职位·
<text class="color_256BFA">{{ job.totalRecruitment || '-' }}</text>
</text>
2025-05-13 11:10:38 +08:00
</view>
</view>
<view class="card-tags">
<view class="tag" v-if="job.nature">
<dict-Label dictType="nature" :value="job.nature"></dict-Label>
</view>
<view class="tag">
{{ vacanciesTo(job.vacancies) }}
</view>
</view>
</view>
</view>
</template>
<script setup>
import { inject, computed, toRaw } from 'vue';
const { insertSortData, navTo, vacanciesTo } = inject('globalFunction');
import { useRecommedIndexedDBStore } from '@/stores/useRecommedIndexedDBStore.js';
const recommedIndexDb = useRecommedIndexedDBStore();
const props = defineProps({
list: {
type: Array,
default: '标题',
},
longitude: {
type: Number,
default: 120.382665,
},
latitude: {
type: Number,
default: 36.066938,
},
seeDate: {
type: String,
default: '',
},
});
const listData = computed(() => {
return props.list;
});
function nextDetail(company) {
navTo(`/packageA/pages/UnitDetails/UnitDetails?companyId=${company.companyId}`);
}
</script>
<style lang="stylus" scoped>
.date-jobTitle{
font-weight: 400;
2026-03-12 17:10:34 +08:00
font-size: 42rpx;
2025-05-13 11:10:38 +08:00
color: #495265;
2026-03-12 17:10:34 +08:00
padding: 42rpx 0 0 30rpx
2025-05-13 11:10:38 +08:00
}
.cards{
2026-03-12 17:10:34 +08:00
padding: 48rpx;
2025-05-13 11:10:38 +08:00
background: #FFFFFF;
box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(0,0,0,0.04);
2026-03-12 17:10:34 +08:00
border-radius: 30rpx 30rpx 30rpx 30rpx;
margin-top: 33rpx;
2025-05-13 11:10:38 +08:00
.card-company{
display: flex
justify-content: space-between
align-items: flex-start
.company{
2025-07-09 15:15:37 +08:00
font-family: 'PingFangSC-Medium', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif;
2025-05-13 11:10:38 +08:00
font-weight: 500;
2026-03-12 17:10:34 +08:00
font-size: 48rpx;
2025-05-13 11:10:38 +08:00
color: #333333;
}
.salary{
font-weight: 500;
2026-03-12 17:10:34 +08:00
font-size: 42rpx;
2025-05-13 11:10:38 +08:00
color: #4C6EFB;
white-space: nowrap
2026-03-12 17:10:34 +08:00
line-height: 72rpx
2025-05-13 11:10:38 +08:00
}
}
.card-companyName{
font-weight: 400;
2026-03-12 17:10:34 +08:00
font-size: 42rpx;
2025-05-13 11:10:38 +08:00
color: #6C7282;
}
.card-tags{
display: flex
flex-wrap: wrap
.tag{
2025-07-09 15:15:37 +08:00
font-family: 'PingFangSC-Medium', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif;
2025-05-13 11:10:38 +08:00
width: fit-content;
2026-03-12 17:10:34 +08:00
height: 45rpx;
2025-05-13 11:10:38 +08:00
background: #F4F4F4;
2026-03-12 17:10:34 +08:00
border-radius: 6rpx;
padding: 9rpx 30rpx;
line-height: 45rpx;
2025-05-13 11:10:38 +08:00
font-weight: 400;
2026-03-12 17:10:34 +08:00
font-size: 36rpx;
2025-05-13 11:10:38 +08:00
color: #6C7282;
text-align: center;
2026-03-12 17:10:34 +08:00
margin-top: 21rpx;
2025-05-13 11:10:38 +08:00
white-space: nowrap
2026-03-12 17:10:34 +08:00
margin-right: 30rpx
2025-05-13 11:10:38 +08:00
}
}
.card-bottom{
2026-03-12 17:10:34 +08:00
margin-top: 6rpx
margin-bottom: 15rpx
2025-05-13 11:10:38 +08:00
display: flex
justify-content: space-between
2026-03-12 17:10:34 +08:00
font-size: 42rpx;
2025-05-13 11:10:38 +08:00
color: #6C7282;
}
}
2025-07-09 15:15:37 +08:00
.ris{
font-family: 'PingFangSC-Medium', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif;
}
2026-03-12 17:10:34 +08:00
.fs_14{
font-size: 21rpx;
}
.mar_ri10{
margin-right: 15rpx;
}
.line_1{
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
line-height: 1.5;
}
2025-05-13 11:10:38 +08:00
</style>