Files
ks-app-employment-service/packageA/pages/choiceness/choiceness.vue

153 lines
4.3 KiB
Vue
Raw Normal View History

2024-11-18 16:33:37 +08:00
<template>
2025-05-13 11:10:38 +08:00
<AppLayout title="精选企业">
<template #headerleft>
<view class="btn">
<image src="@/static/icon/back.png" @click="navBack"></image>
</view>
</template>
<view class="main">
<view class="main-header">
<view class="header-title btn-feel">企业推荐站</view>
2025-09-29 11:53:10 +08:00
<view class="header-text btn-feel">AI智联{{ config.appInfo.areaName }}岗位触手可</view>
2025-05-13 11:10:38 +08:00
<image class="header-img btn-shaky" src="/static/icon/companyBG.png"></image>
</view>
<view class="main-content">
<view class="cards btn-feel" v-for="item in list" :key="item.companyCardId" @click="seeDetail(item)">
<view class="card-title">{{ item.name }}</view>
<view class="card-text">{{ item.description }}</view>
</view>
</view>
</view>
</AppLayout>
2024-11-18 16:33:37 +08:00
</template>
2025-03-28 15:19:42 +08:00
<script setup>
2025-05-13 11:10:38 +08:00
import { inject, ref, reactive } from 'vue';
2025-03-28 15:19:42 +08:00
import { onLoad, onShow } from '@dcloudio/uni-app';
2025-09-29 11:53:10 +08:00
const { $api, navBack, navTo, config } = inject('globalFunction');
2025-05-13 11:10:38 +08:00
import { storeToRefs } from 'pinia';
2025-03-28 15:19:42 +08:00
import useUserStore from '@/stores/useUserStore';
2025-05-13 11:10:38 +08:00
const { getUserResume } = useUserStore();
const { userInfo } = storeToRefs(useUserStore());
2025-03-28 15:19:42 +08:00
const list = ref([]);
onLoad(() => {
2025-05-13 11:10:38 +08:00
getPremiumList();
2025-03-28 15:19:42 +08:00
});
function CollectionCard(item) {
2025-05-13 11:10:38 +08:00
$api.createRequest(`/app/company/card/collection/${item.companyCardId}`, {}, 'PUT').then((resData) => {
getPremiumList();
$api.msg('关注成功');
});
2025-03-28 15:19:42 +08:00
}
function delCollectionCard(item) {
2025-05-13 11:10:38 +08:00
$api.createRequest(`/app/company/card/collection/${item.companyCardId}`, {}, 'DELETE').then((resData) => {
getPremiumList();
$api.msg('取消关注');
});
2025-03-28 15:19:42 +08:00
}
function getPremiumList() {
2025-05-13 11:10:38 +08:00
$api.createRequest('/app/company/card').then((resData) => {
const { rows, total } = resData;
list.value = rows;
});
}
function seeDetail(item) {
uni.setStorageSync('jinxuan', item);
navTo('/packageA/pages/choicenessList/choicenessList');
2025-03-28 15:19:42 +08:00
}
</script>
2024-11-18 16:33:37 +08:00
<style lang="stylus" scoped>
2025-05-13 11:10:38 +08:00
.btn {
display: flex;
justify-content: space-between;
align-items: center;
2026-03-12 17:10:34 +08:00
width: 90rpx;
height: 90rpx;
2025-05-13 11:10:38 +08:00
image {
height: 100%;
width: 100%;
}
}
.main{
.main-content{
2026-03-12 17:10:34 +08:00
padding: 42rpx
2025-05-13 11:10:38 +08:00
.cards{
2026-03-12 17:10:34 +08:00
padding: 48rpx
border-radius: 18rpx 18rpx 18rpx 18rpx;
border: 3rpx solid #DCDCDC;
margin-bottom: 54rpx;
2025-05-13 11:10:38 +08:00
position: relative;
.card-title{
font-family: PingFang SC, PingFang SC;
font-weight: 600;
2026-03-12 17:10:34 +08:00
font-size: 48rpx;
2025-05-13 11:10:38 +08:00
color: #333333;
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
}
.card-text{
2026-03-12 17:10:34 +08:00
margin-top: 24rpx
width: 753rpx;
height: 120rpx;
2025-05-13 11:10:38 +08:00
font-weight: 400;
2026-03-12 17:10:34 +08:00
font-size: 42rpx;
2025-05-13 11:10:38 +08:00
color: #6C7282;
}
}
.cards::before{
position: absolute;
2026-03-12 17:10:34 +08:00
right: 60rpx;
2025-05-13 11:10:38 +08:00
top: 50%;
content: '';
2026-03-12 17:10:34 +08:00
width: 6rpx;
height: 27rpx;
border-radius: 3rpx
2025-05-13 11:10:38 +08:00
background: #6C7282;
transform: translate(0, -50%) rotate(-45deg) ;
}
.cards::after{
position: absolute;
2026-03-12 17:10:34 +08:00
right: 60rpx;
top: calc(50% + 2rpx);
2025-05-13 11:10:38 +08:00
content: '';
2026-03-12 17:10:34 +08:00
width: 6rpx;
height: 27rpx;
border-radius: 3rpx
2025-05-13 11:10:38 +08:00
background: #6C7282;
transform: rotate(45deg)
}
}
.main-header{
2026-03-12 17:10:34 +08:00
padding: 120rpx 60rpx
2025-05-13 11:10:38 +08:00
position: relative
.header-title{
font-weight: 400;
2026-03-12 17:10:34 +08:00
font-size: 84rpx;
2025-05-13 11:10:38 +08:00
color: #333333;
font-family: DingTalk JinBuTi;
}
.header-text{
font-weight: 400;
2026-03-12 17:10:34 +08:00
font-size: 48rpx;
2025-05-13 11:10:38 +08:00
color: rgba(3,3,3,0.5);
2026-03-12 17:10:34 +08:00
margin-top: 15rpx
2025-05-13 11:10:38 +08:00
}
.header-img{
position: absolute
right: 0
bottom: 0
// transform: translate(0, -50%)
2026-03-12 17:10:34 +08:00
width: 420rpx;
height: 408rpx;
2025-05-13 11:10:38 +08:00
}
}
}
2024-11-18 16:33:37 +08:00
</style>