123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <template>
- <v-card class="position-box">
- <h4 class="h4 mb-3">推荐职位</h4>
- <div v-for="(item, index) in list" :key="index" class="mb-2 cursor-pointer" @click="handlePosition(item)">
- <p class="recruit-name">{{ item.name }}</p>
- <span class="recruit-salary">{{ item.payFrom }}-{{ item.payTo }}k/{{ item.payName }}</span>
- <div :class="['enterprise', {'border-bottom-dashed': index !== list.length - 1}]">
- <v-img class="float-left" :src="item.logoUrl" :width="30" :height="30"></v-img>
- <span class="float-left enterprise-name">{{ item.anotherName }}</span>
- <span class="float-right enterprise-address">{{ item.areaName }}</span>
- </div>
- </div>
- </v-card>
- </template>
- <script setup>
- defineOptions({name: 'retrieval-components-recommendedPositions'})
- const list = [
- {
- name: '项目经历',
- payFrom: 11,
- payTo: 13,
- payName: '月',
- logoUrl: 'https://cdn.vuetifyjs.com/images/john.jpg',
- anotherName: '广州辞图科技有限公司',
- areaName: '广州·越秀'
- },
- {
- name: '项目经历',
- payFrom: 11,
- payTo: 13,
- payName: '月',
- logoUrl: 'https://cdn.vuetifyjs.com/images/john.jpg',
- anotherName: '广州辞图科技有限公司',
- areaName: '广州·越秀'
- },
- {
- name: '项目经历',
- payFrom: 11,
- payTo: 13,
- payName: '月',
- logoUrl: 'https://cdn.vuetifyjs.com/images/john.jpg',
- anotherName: '广州辞图科技有限公司',
- areaName: '广州·越秀'
- },
- ]
- </script>
- <style lang="scss" scoped>
- .position-box {
- position: relative;
- width: 284px;
- border-radius: 8px;
- padding: 20px 15px;
- }
- .recruit-name {
- width: 95px;
- font-weight: 500;
- display: inline-block;
- max-width: 95px;
- vertical-align: middle;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- &:hover {
- color: var(--v-primary-base);
- }
- }
- .recruit-salary {
- float: right;
- color: var(--v-error-base);
- font-weight: 500;
- height: auto;
- vertical-align: sub;
- }
- .enterprise {
- height: 40px;
- line-height: 30px;
- margin-top: 8px;
- }
- .enterprise-name {
- width: 120px;
- display: inline-block;
- max-width: 120px;
- vertical-align: middle;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- color: #666;
- font-size: 13px;
- margin-left: 5px;
- &:hover {
- color: var(--v-primary-base);
- }
- }
- .enterprise-address {
- color: #555;
- font-size: 13px;
- }
- </style>
|