41 Commits
yxl ... main

Author SHA1 Message Date
xuchao
98e0d5d833 招聘会列表添加地区筛选 2026-01-21 18:44:04 +08:00
hanguangpu01
d817ce2524 fix(practice): 修复练习页面题目列表滚动和接口调用问题
- 为题目编号容器添加高度限制和滚动样式
- 修复练习列表页面接口地址错误,从 trainVideoList 改为 getQuestionTypes
- 优化题目列表的显示效果和用户体验
2026-01-21 11:30:17 +08:00
xuchao
5430678eaf 简历投递添加确认弹窗、企业招聘会自动更新统一社会信用代码及userid 2026-01-20 12:07:30 +08:00
699035026e Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service 2026-01-20 09:55:34 +08:00
abd2e79a15 素质测评 ai面试修改域名访问地址 2026-01-20 09:55:27 +08:00
francis_fh
7dcfbd35fe 增加零工市场 2026-01-19 19:09:14 +08:00
9cf5905d5f 素质测评 删除多余代码,运行web 2026-01-19 11:36:17 +08:00
xuchao
a1a94b264c 模拟考试卡片样式优化 2026-01-19 10:46:22 +08:00
xuchao
cf3ed1bae2 删除帮扶、招聘会多余点击事件 2026-01-19 10:35:07 +08:00
francis_fh
445121ac8d Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service 2026-01-19 10:25:59 +08:00
francis_fh
afcb29c51c 帮扶点击事件误删修复 2026-01-19 10:25:58 +08:00
hanguangpu01
fe7eed4c1a feat(train): 新增专项训练列表页面并调整练习流程
- 新增 startPracticingList.vue 页面用于展示专项训练列表
- 修改首页按钮跳转链接从 startPracticing 改为 startPracticingList
- 在 pages.json 中注册新的专项训练列表页面路由
- 更新 startPracticing.vue 页面接收分类参数并传递给接口
- 实现专项训练列表的分页加载和搜索功能
- 添加专项训练项目的分类显示和难度标识
2026-01-16 17:29:07 +08:00
ba38158d4c 图标修改 2026-01-16 17:03:03 +08:00
385274b3ef Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service 2026-01-16 16:50:14 +08:00
d983bb272b 通知公告 2026-01-16 16:50:06 +08:00
fb95e1c74e 修改 2026-01-16 16:40:55 +08:00
ce7d261e4b 评价机构信息 2026-01-16 16:34:46 +08:00
f8a7f94433 评价机构信息 2026-01-16 16:04:00 +08:00
xuchao
d6b6fdcc38 模拟考试获取当天日期精准至时分秒 2026-01-16 12:42:44 +08:00
xuchao
1508a1a717 首页恢复招聘会、帮扶页面跳转事件 2026-01-16 12:42:04 +08:00
francis_fh
e444f07dc4 帮扶入口点击事件修复 2026-01-16 11:58:07 +08:00
ef25f954a4 详情 2026-01-16 11:30:48 +08:00
211c950ab7 修改 2026-01-16 10:14:09 +08:00
f506c4154a 修改 2026-01-16 10:08:59 +08:00
07c84cef8a 评价培训机构及公告页面 2026-01-16 09:38:44 +08:00
francis_fh
a663010b61 在招职位列表显示 2026-01-15 19:59:55 +08:00
francis_fh
a299608fca 投递简历的时候验证登录 2026-01-14 23:07:09 +08:00
francis_fh
637d50c811 Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service 2026-01-14 22:27:55 +08:00
francis_fh
3246958704 111 2026-01-14 22:27:54 +08:00
lip
b7c54c3c2e zh政策分页 2026-01-14 22:23:48 +08:00
francis_fh
4d4ecdb858 Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service 2026-01-14 22:02:09 +08:00
francis_fh
d2653c8394 token打印测试 2026-01-14 22:02:07 +08:00
lip
0cfe2d5448 更改该bug 2026-01-14 21:33:36 +08:00
lip
30e3804dfa 添加政策传参 2026-01-14 21:26:21 +08:00
francis_fh
cc6da8adfd H5环境登录改造 2026-01-14 18:46:13 +08:00
francis_fh
daa2ce254a 11 2026-01-14 17:44:38 +08:00
francis_fh
d8bd4e7759 单位详情页面样式修改 2026-01-14 14:25:05 +08:00
francis_fh
33faac2ff2 一体机删除薪酬信息、筛选的时候增加工位数 2026-01-14 12:19:04 +08:00
francis_fh
74b9c32b03 一体机首页滑动修改、简历知道页面隐藏开始制作简历按钮 2026-01-14 00:14:26 +08:00
francis_fh
782242beec Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service 2026-01-14 00:01:29 +08:00
francis_fh
0f374530a1 111 2026-01-14 00:01:27 +08:00
51 changed files with 2510 additions and 220 deletions

View File

@@ -11,7 +11,6 @@
<view class="auth-header"> <view class="auth-header">
<image class="auth-logo" src="@/static/logo2-S.png" mode="aspectFit"></image> <image class="auth-logo" src="@/static/logo2-S.png" mode="aspectFit"></image>
<view class="auth-title">欢迎使用就业服务</view> <view class="auth-title">欢迎使用就业服务</view>
<view class="auth-subtitle">需要您授权手机号登录</view>
</view> </view>
<!-- 角色选择 --> <!-- 角色选择 -->
@@ -26,7 +25,7 @@
<view class="role-icon"> <view class="role-icon">
<uni-icons type="person" size="32" :color="userType === 1 ? '#256BFA' : '#999'"></uni-icons> <uni-icons type="person" size="32" :color="userType === 1 ? '#256BFA' : '#999'"></uni-icons>
</view> </view>
<view class="role-text">我是求职者</view> <view class="role-text">个人</view>
</view> </view>
<view <view
class="role-item" class="role-item"
@@ -36,7 +35,7 @@
<view class="role-icon"> <view class="role-icon">
<uni-icons type="shop" size="32" :color="userType === 0 ? '#256BFA' : '#999'"></uni-icons> <uni-icons type="shop" size="32" :color="userType === 0 ? '#256BFA' : '#999'"></uni-icons>
</view> </view>
<view class="role-text">我是招聘者</view> <view class="role-text">单位</view>
</view> </view>
</view> </view>
</view> </view>

View File

@@ -25,9 +25,7 @@
</view> </view>
<view class="conetent-info" :class="{ expanded: isExpanded }"> <view class="conetent-info" :class="{ expanded: isExpanded }">
<view class="info-title">公司介绍</view> <view class="info-title">公司介绍</view>
<view class="info-desirption">{{ <view class="info-desirption" v-html="companyInfo?.description"></view>
companyInfo?.description || '暂无公司介绍'
}}</view>
<!-- <view class="info-title title2">公司地址</view> <!-- <view class="info-title title2">公司地址</view>
<view class="locationCompany"></view> --> <view class="locationCompany"></view> -->
</view> </view>
@@ -142,6 +140,8 @@
isCollection: resData.data.isCollection || 0, isCollection: resData.data.isCollection || 0,
jobList: resData.data.jobList || [] // 使用正确的jobList字段 jobList: resData.data.jobList || [] // 使用正确的jobList字段
}; };
// 将职位列表数据赋值给jobInfoList用于页面渲染
jobInfoList.value = resData.data.jobList || [];
console.log('Company details loaded successfully'); console.log('Company details loaded successfully');
} else { } else {
console.error('Failed to load company details:', resData?.msg || 'Unknown error'); console.error('Failed to load company details:', resData?.msg || 'Unknown error');
@@ -153,6 +153,7 @@
isCollection: 0, isCollection: 0,
jobList: [] jobList: []
}; };
jobInfoList.value = [];
} }
}).catch((error) => { }).catch((error) => {
console.error('API error when fetching company details:', error); console.error('API error when fetching company details:', error);
@@ -164,6 +165,7 @@
isCollection: 0, isCollection: 0,
jobList: [] jobList: []
}; };
jobInfoList.value = [];
}); });
} }
@@ -443,8 +445,13 @@
font-size: 28rpx; font-size: 28rpx;
color: #495265; color: #495265;
text-align: justified; text-align: justified;
:deep(span) {
background-color: transparent !important;
}
:deep(p > span) {
background-color: transparent !important;
}
} }
.title2 { .title2 {
margin-top: 48rpx; margin-top: 48rpx;
} }

View File

@@ -67,9 +67,9 @@ const { dictLabel, oneDictData, getDictData } = useDictStore();
const selectJobsModel = ref(); const selectJobsModel = ref();
const selectPopupRef = ref(); const selectPopupRef = ref();
const percent = ref('0%'); const percent = ref('0%');
const salay = [2, 5, 10, 15, 20, 25, 30, 50, 80, 100]; const salay = [2000, 5000, 10000, 15000, 20000, 25000, 30000, 50000, 80000, 100000];
const state = reactive({ const state = reactive({
lfsalay: [2, 5, 10, 15, 20, 25, 30, 50], lfsalay: [2000, 5000, 10000, 15000, 20000, 25000, 30000, 50000],
risalay: JSON.parse(JSON.stringify(salay)), risalay: JSON.parse(JSON.stringify(salay)),
salayText: '', salayText: '',
areaText: '', areaText: '',
@@ -137,10 +137,10 @@ const changeSalary = () => {
title: '薪资', title: '薪资',
maskClick: true, maskClick: true,
data: [state.lfsalay, state.risalay], data: [state.lfsalay, state.risalay],
unit: 'k', unit: '',
success: (_, [min, max]) => { success: (_, [min, max]) => {
fromValue.salaryMin = min.value * 1000; fromValue.salaryMin = min.value;
fromValue.salaryMax = max.value * 1000; fromValue.salaryMax = max.value;
state.salayText = `${fromValue.salaryMin}-${fromValue.salaryMax}`; state.salayText = `${fromValue.salaryMin}-${fromValue.salaryMax}`;
}, },
change(e) { change(e) {

View File

@@ -51,7 +51,7 @@
</view> </view>
<view class="mys-text"> <view class="mys-text">
<text>期望薪资</text> <text>期望薪资</text>
<text>{{ userInfo.salaryMin / 1000 }}k-{{ userInfo.salaryMax / 1000 }}k</text> <text>{{ userInfo.salaryMin }}-{{ userInfo.salaryMax }}</text>
</view> </view>
<view class="mys-text"> <view class="mys-text">
<text>期望工作地</text> <text>期望工作地</text>

View File

@@ -107,7 +107,7 @@
<text class="title">公司信息</text> <text class="title">公司信息</text>
<text <text
class="btntext button-click" class="btntext button-click"
@click="navTo(`/packageA/pages/UnitDetails/UnitDetails?companyId=${jobInfo.company.companyId}`)" @click="handleCompanyDetailClick"
> >
单位详情 单位详情
</text> </text>
@@ -289,7 +289,6 @@ onShow(() => {
} }
// #endif // #endif
}); });
function initLoad(option) { function initLoad(option) {
const jobId = decodeURIComponent(option.jobId); const jobId = decodeURIComponent(option.jobId);
if (jobId !== jobIdRef.value) { if (jobId !== jobIdRef.value) {
@@ -341,9 +340,14 @@ function getDetail(jobId) {
} }
function getCompanyIsAJobs(companyId) { function getCompanyIsAJobs(companyId) {
$api.createRequest(`/app/company/count/${companyId}`).then((resData) => { if (companyId) {
companyCount.value = resData.data; $api.createRequest(`/app/company/count/${companyId}`).then((resData) => {
}); companyCount.value = resData.data;
});
}
// $api.createRequest(`/app/company/count/${companyId}`).then((resData) => {
// companyCount.value = resData.data;
// });
} }
function getTextWidth(text, size = 12) { function getTextWidth(text, size = 12) {
@@ -413,6 +417,11 @@ function getCompetivetuveness(jobId) {
// 申请岗位 // 申请岗位
function jobApply() { function jobApply() {
const tokenValue = uni.getStorageSync('token') || '';
if (!tokenValue) {
$api.msg('请您先登录');
return;
}
const jobId = jobInfo.value.jobId; const jobId = jobInfo.value.jobId;
$api.createRequest(`/app/job/apply/${jobId}`, {}, 'GET').then((resData) => { $api.createRequest(`/app/job/apply/${jobId}`, {}, 'GET').then((resData) => {
getDetail(jobId); getDetail(jobId);
@@ -504,6 +513,17 @@ function previewImage(url, index) {
function viewResume(userId) { function viewResume(userId) {
navTo(`/packageA/pages/resumeDetail/resumeDetail?userId=${userId}`); navTo(`/packageA/pages/resumeDetail/resumeDetail?userId=${userId}`);
} }
// 处理查看单位详情
function handleCompanyDetailClick() {
// console.log('----企业ID--', jobInfo.value.company?.companyId)
// console.log('----企业data--', jobInfo.value)
if (jobInfo.value.company?.companyId) {
navTo(`/packageA/pages/UnitDetails/UnitDetails?companyId=${jobInfo.value.company.companyId}`);
} else {
$api.msg('没有企业信息');
}
}
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>

View File

@@ -0,0 +1,364 @@
<template>
<div class="app-box">
<div class="con-box">
<!-- <view class="collection-search">
<view class="search-content">
<view class="header-input button-click">
<uni-icons class="iconsearch" color="#6A6A6A" type="search" size="22"></uni-icons>
<input
class="input"
v-model="searchKeyword"
@confirm="searchVideo"
placeholder="输入考试名称"
placeholder-class="inputplace"
/>
<uni-icons
v-if="searchKeyword"
class="clear-icon"
type="clear"
size="24"
color="#999"
@click="clearSearch"
/>
</view>
</view>
</view> -->
<scroll-view scroll-y class="main-scroll" @scrolltolower="handleScrollToLower">
<div class="cards" v-for="(item,index) in dataList" :key="item.examPaperId">
<div class="cardHead">
<div class="cardHeadLeft">
<div class="cardTitle">{{item.organName}}</div>
</div>
<div class="rightBtn" @click="handleOperation(item)">机构详情</div>
</div>
<div class="heng"></div>
<div class="cardCon">
<div class="conten">机构联系人{{item.contactName}}</div>
<div class="conten">联系方式{{item.contactPhone}}</div>
<div class="conten">机构地址{{item.address}}</div>
</div>
</div>
</scroll-view>
</div>
</div>
</template>
<script setup>
import { inject, ref, reactive } from 'vue';
import { onLoad, onShow } from '@dcloudio/uni-app';
const { $api, navTo, navBack,urls } = inject('globalFunction');
import config from "@/config.js"
const userInfo = ref({});
const Authorization = ref('');
const searchKeyword = ref('');
const dataList=ref([])
const pageSize=ref(10)
const pageNum=ref(1)
const totalNum=ref(0)
const baseUrl = config.imgBaseUrl
const handleScrollToLower = () => {
getDataList('add');
};
onLoad(() => {
});
onShow(()=>{
Authorization.value=uni.getStorageSync('Padmin-Token')||''
getDataList('refresh');
})
// 搜索视频
function searchVideo() {
getDataList('refresh');
}
// 清除搜索内容
function clearSearch() {
searchKeyword.value = '';
getDataList('refresh');
}
// 获取考试列表
function getDataList(type = 'add') {
let maxPage=Math.ceil(totalNum.value/pageSize.value)
let params={}
if (type === 'refresh') {
pageNum.value = 1;
params={
address:"",
pageSize:pageSize.value,
pageNum:pageNum.value,
}
$api.myRequest('/train/public/rate/organ/table', params).then((resData) => {
if(resData.code==200){
dataList.value=resData.rows
totalNum.value=resData.total
}
});
}
if (type === 'add' && pageNum.value < maxPage) {
pageNum.value += 1;
params={
address:"",
pageSize:pageSize.value,
pageNum:pageNum.value,
}
$api.myRequest('/train/public/rate/organ/table', params).then((resData) => {
if(resData.code==200){
dataList.value=dataList.value.concat(resData.rows)
totalNum.value=resData.total
}
});
}
}
function handleOperation(row) {
navTo(`/packageB/institution/evaluationAgencyDetail?organId=${row.organId}`);
}
</script>
<style lang="stylus" scoped>
.app-box{
width: 100%;
height: 100vh;
position: relative;
.con-box{
position: absolute;
width: 100%;
height: 100%;
left: 0;
top:0;
z-index: 10;
padding: 20rpx 28rpx;
box-sizing: border-box;
overflow: hidden;
.collection-search{
padding: 10rpx 20rpx;
.search-content{
position: relative
display: flex
align-items: center
padding: 14rpx 0
.header-input{
padding: 0
width: calc(100%);
position: relative
.iconsearch{
position: absolute
left: 30rpx;
top: 50%
transform: translate(0, -50%)
z-index: 1
}
.input{
padding: 0 80rpx 0 80rpx
height: 80rpx;
background: #FFFFFF;
border-radius: 75rpx 75rpx 75rpx 75rpx;
border: 2rpx solid #ECECEC
font-size: 28rpx;
}
.clear-icon{
position: absolute
right: 30rpx;
top: 50%
transform: translate(0, -50%)
z-index: 1
cursor: pointer
}
.inputplace{
font-weight: 400;
font-size: 28rpx;
color: #B5B5B5;
}
}
}
}
.main-scroll {
width: 100%;
height: 100%;
.cards{
width: 100%;
min-height: 260rpx;
height: auto;
background: linear-gradient(0deg, #E3EFFF 0%, #FBFDFF 100%);
// box-shadow: 0px 0px 6px 0px rgba(0,71,200,0.32);
border-radius: 12rpx;
border: 2px solid #EDF5FF;
margin-bottom: 30rpx;
padding: 30rpx 40rpx 0;
box-sizing: border-box
.cardHead{
display: flex;
align-items: center;
justify-content: space-between;
.cardHeadLeft{
display: flex;
align-items: center
width: 70%;
.cardTitle{
font-weight: bold;
font-size: 28rpx;
color: #0069CB;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.titleType{
border-radius: 4px;
font-size: 22rpx;
color: #157EFF;
width: 100rpx;
height: 38rpx;
text-align: center;
line-height: 38rpx;
margin-left: 10rpx;
}
}
}
.heng{
width: 30%;
height: 4rpx;
background: linear-gradient(88deg, #015EEA 0%, #00C0FA 100%);
margin: 10rpx 0 20rpx;
}
.cardCon{
display: flex;
flex-wrap: wrap;
.conten{
width: 100%;
font-size: 24rpx;
color: #666666;
display: flex;
align-items: center
margin-bottom: 10rpx;
}
.status-tags{
display: flex;
align-items: center;
}
}
.flooter{
border-top: 1px solid #ccc;
display: flex;
justify-content: flex-end;
align-items: center;
view{
font-size: 28rpx;
margin-left: 30rpx;
color: #2175F3;
padding-top: 14rpx;
}
}
}
}
}
.cards2{
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100vh;
background-color: rgba(0,0,0,0.5);
z-index: 10000;
padding: 100rpx 50rpx;
box-sizing: border-box;
.cardCon{
height: 70%;
background-color: #fff;
padding: 20rpx;
box-sizing: border-box;
.cardHead{
display: flex;
align-items: center;
justify-content: space-between;
font-size: 30rpx;
font-weight: 600;
}
}
}
}
.titleType{
display: inline-block
border-radius: 4px;
font-size: 22rpx;
color: #157EFF;
width: 100rpx;
height: 38rpx;
text-align: center;
line-height: 38rpx;
margin-left: 10rpx;
}
.primary{
border: 1px solid #157EFF!important;
color: #157EFF!important
}
.success{
border: 1px solid #05A636!important;
color: #05A636!important
}
.info{
border: 1px solid #898989!important;
color: #898989!important
}
.tertiary{
border: 1px solid #E6A340!important;
color: #E6A340!important
}
.primary2{
border: 1px solid #F56C6C!important;
color: #F56C6C!important
}
.rightBtn{
width: 140rpx;
height: 44rpx;
line-height: 44rpx;
background: linear-gradient(90deg, #00C0FA 0%, #1271FF 100%);
border-radius: 4px;
color: #fff;
font-size: 24rpx;
text-align: center;
}
.detailTitle{
font-size: 32rpx;
font-weight: 600;
margin: 30rpx 0;
}
.detailCon{
font-size: 28rpx;
line-height: 40rpx;
}
.exam-info {
display: flex;
justify-content: space-between;
margin-bottom: 35rpx;
margin-top: 20rpx;
}
.info-item {
flex: 1;
text-align: center;
}
.info-value {
font-family: 'D-DIN-Medium';
font-size: 26rpx;
font-weight: 600;
color: #409EFF;
margin-bottom: 8rpx;
}
.info-label {
font-size: 26rpx;
color: #333;
}
.info-divider {
width: 2px;
background-color: #C3E1FF;
}
</style>

View File

@@ -0,0 +1,256 @@
<template>
<div class="app-box">
<div class="con-box">
<div class="cards">
<div class="cardHead">
<div class="cardHeadLeft">
<div class="cardTitle">{{organ.organName}}</div>
</div>
<div class="rightBtn" @click="handleOperation()"></div>
</div>
<div class="heng"></div>
<div class="cardCon">
<div class="conten">机构联系人{{organ.contactName}}</div>
<div class="conten">联系方式{{organ.contactPhone}}</div>
<div class="conten">机构地址{{organ.address}}</div>
</div>
</div>
<div style="width: 100%;margin-bottom: 40rpx;">
<div class="title">
<div></div>
<div>评价流程说明</div>
</div>
<div class="kcCon">
<div class="kcIntroduction" v-if="organ.processDescription">{{organ.processDescription}}</div>
<div v-else style="text-align: center;line-height: 100rpx;">暂无数据</div>
</div>
</div>
<div style="width: 100%;margin-bottom: 40rpx;">
<div class="title">
<div></div>
<div>评价项目</div>
</div>
<div class="kcCon">
<div class="kcIntroduction" v-if="organ.organContent">{{organ.organContent}}</div>
<div v-else style="text-align: center;line-height: 100rpx;">暂无数据</div>
</div>
</div>
<div style="width: 100%;margin-bottom: 30rpx;">
<div class="title">
<div></div>
<div>资质证书</div>
</div>
<div class="kcCon">
<div v-for="(item, index) in certs":key = "index" style="width: 100%;">
<div v-for="(url, index2) in item" :key = "index2" style="width: 100%;">
<image :src="url" mode="" style="width: 100%;"></image>
</div>
</div>
<div v-if="certs.length==0" style="text-align: center;line-height: 100rpx;">暂无数据</div>
</div>
</div>
</div>
</div>
</template>
<script setup>
import { inject, ref, reactive } from 'vue';
import { onLoad, onShow } from '@dcloudio/uni-app';
const { $api, navTo, navBack,urls } = inject('globalFunction');
import config from "@/config.js"
const organ = ref({});
const courses = ref([]);
const certs = ref([]);
const certs2 = ref([]);
const teams=ref([])
const certIndex=ref(1)
const organId=ref('')
const Authorization=ref('')
onLoad((options) => {
organId.value=options.organId
});
onShow(()=>{
Authorization.value=uni.getStorageSync('Padmin-Token')||''
let params={
organId:organId.value
}
$api.myRequest('/train/public/rate/organ/model', params).then((resData) => {
if(resData.code==200){
organ.value = (resData.data ? resData.data :{});
certs2.value = (resData ? JSON.parse(resData.data.zhengshu):[]);
for(var i =0;i<certs2.value.length;i++){
certs2.value[i].url =config.LCBaseUrl + "/file/minio" + certs2.value[i].url;
}
var certsArr = [];var flag = 0;
for(var i =0;i<certs2.value.length;i++){
flag ++
certsArr.push(certs2.value[i])
if(flag == 3){
var arrs = [];
for(var j =0;j<3;j++){
arrs.push(certsArr[j].url)
}
certs.value.push(arrs);
certsArr = [];
flag = 0;
}else{
if(i == certs2.value.length -1){
var arrs = [];
for(var j =0;j<certsArr.length;j++){
arrs.push(certsArr[j].url)
}
certs.value.push(arrs);
}
}
}
}
});
})
</script>
<style lang="stylus" scoped>
.app-box{
width: 100%;
height: 100vh;
position: relative;
.con-box{
position: absolute;
width: 100%;
height: 100%;
left: 0;
top:0;
z-index: 10;
padding: 20rpx 28rpx;
box-sizing: border-box;
overflow: hidden;
.cards{
width: 100%;
min-height: 260rpx;
height: auto;
background: linear-gradient(0deg, #D4E3FE 0%, #EBF1FF 100%);
border-radius: 12rpx;
border: 2px solid #EDF5FF;
margin-bottom: 40rpx;
padding: 20rpx 30rpx 0;
box-sizing: border-box
.cardHead{
display: flex;
align-items: center;
justify-content: space-between;
.cardHeadLeft{
display: flex;
align-items: center
width: 100%;
.cardTitle{
font-weight: bold;
font-size: 32rpx;
color: #0069CB;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.titleType{
border-radius: 4px;
font-size: 22rpx;
color: #157EFF;
width: 100rpx;
height: 38rpx;
text-align: center;
line-height: 38rpx;
margin-left: 10rpx;
}
}
}
.heng{
width: 30%;
height: 4rpx;
background: linear-gradient(88deg, #015EEA 0%, #00C0FA 100%);
margin: 10rpx 0 20rpx;
}
.cardCon{
display: flex;
flex-wrap: wrap;
.conten{
width: 100%;
font-size: 26rpx;
color: #666666;
display: flex;
align-items: center
margin-bottom: 10rpx;
}
.status-tags{
display: flex;
align-items: center;
}
}
.flooter{
border-top: 1px solid #ccc;
display: flex;
justify-content: flex-end;
align-items: center;
view{
font-size: 28rpx;
margin-left: 30rpx;
color: #2175F3;
padding-top: 14rpx;
}
}
}
}
}
.title{
width: 100%
display: flex
align-items: center
font-size: 32rpx
font-weight: 600
}
.title>view:first-child{
width: 10rpx;
height: 46rpx;
background-color: #FD7565;
margin-right: 20rpx;
border-radius: 10rpx;
}
.kcCon{
margin-top: 20rpx;
width: 100%
}
.kcIntroduction{
background: rgba(20,136,245,0.1);
padding: 20rpx;
box-sizing: border-box;
border-radius: 10rpx;
margin-bottom: 20rpx;
}
.faculty{
border: 1px solid #ddd;
border-radius: 10rpx;
padding: 10rpx;
margin-bottom: 20rpx;
box-sizing: border-box;
.facultyHead{
width: 100%;
height: 80rpx;
border-radius: 10rpx;
color: #fff;
font-size: 30rpx;
background: linear-gradient(88deg, #3E8BFF 0%, #0DB5FB 100%);
display: flex;
align-items: center
padding: 0 20rpx;
box-sizing: border-box;
}
.facultyCon{
font-size: 26rpx;
color: #666666;
padding: 20rpx 0;
box-sizing: border-box;
}
}
</style>

View File

@@ -0,0 +1,364 @@
<template>
<div class="app-box">
<div class="con-box">
<!-- <view class="collection-search">
<view class="search-content">
<view class="header-input button-click">
<uni-icons class="iconsearch" color="#6A6A6A" type="search" size="22"></uni-icons>
<input
class="input"
v-model="searchKeyword"
@confirm="searchVideo"
placeholder="输入考试名称"
placeholder-class="inputplace"
/>
<uni-icons
v-if="searchKeyword"
class="clear-icon"
type="clear"
size="24"
color="#999"
@click="clearSearch"
/>
</view>
</view>
</view> -->
<scroll-view scroll-y class="main-scroll" @scrolltolower="handleScrollToLower">
<div class="cards" v-for="(item,index) in dataList" :key="item.examPaperId">
<div class="cardHead">
<div class="cardHeadLeft">
<div class="cardTitle">{{item.organName}}</div>
</div>
<div class="rightBtn" @click="handleOperation(item)">机构详情</div>
</div>
<div class="heng"></div>
<div class="cardCon">
<div class="conten">机构联系人{{item.contactName}}</div>
<div class="conten">联系方式{{item.contactPhone}}</div>
<div class="conten">机构地址{{item.address}}</div>
</div>
</div>
</scroll-view>
</div>
</div>
</template>
<script setup>
import { inject, ref, reactive } from 'vue';
import { onLoad, onShow } from '@dcloudio/uni-app';
const { $api, navTo, navBack,urls } = inject('globalFunction');
import config from "@/config.js"
const userInfo = ref({});
const Authorization = ref('');
const searchKeyword = ref('');
const dataList=ref([])
const pageSize=ref(10)
const pageNum=ref(1)
const totalNum=ref(0)
const baseUrl = config.imgBaseUrl
const handleScrollToLower = () => {
getDataList('add');
};
onLoad(() => {
});
onShow(()=>{
Authorization.value=uni.getStorageSync('Padmin-Token')||''
getDataList('refresh');
})
// 搜索视频
function searchVideo() {
getDataList('refresh');
}
// 清除搜索内容
function clearSearch() {
searchKeyword.value = '';
getDataList('refresh');
}
// 获取考试列表
function getDataList(type = 'add') {
let maxPage=Math.ceil(totalNum.value/pageSize.value)
let params={}
if (type === 'refresh') {
pageNum.value = 1;
params={
address:"",
pageSize:pageSize.value,
pageNum:pageNum.value,
}
$api.myRequest('/train/public/train/organ/table', params).then((resData) => {
if(resData.code==200){
dataList.value=resData.rows
totalNum.value=resData.total
}
});
}
if (type === 'add' && pageNum.value < maxPage) {
pageNum.value += 1;
params={
address:"",
pageSize:pageSize.value,
pageNum:pageNum.value,
}
$api.myRequest('/train/public/train/organ/table', params).then((resData) => {
if(resData.code==200){
dataList.value=dataList.value.concat(resData.rows)
totalNum.value=resData.total
}
});
}
}
function handleOperation(row) {
navTo(`/packageB/institution/trainingInstitutionDetail?organId=${row.organId}`);
}
</script>
<style lang="stylus" scoped>
.app-box{
width: 100%;
height: 100vh;
position: relative;
.con-box{
position: absolute;
width: 100%;
height: 100%;
left: 0;
top:0;
z-index: 10;
padding: 20rpx 28rpx;
box-sizing: border-box;
overflow: hidden;
.collection-search{
padding: 10rpx 20rpx;
.search-content{
position: relative
display: flex
align-items: center
padding: 14rpx 0
.header-input{
padding: 0
width: calc(100%);
position: relative
.iconsearch{
position: absolute
left: 30rpx;
top: 50%
transform: translate(0, -50%)
z-index: 1
}
.input{
padding: 0 80rpx 0 80rpx
height: 80rpx;
background: #FFFFFF;
border-radius: 75rpx 75rpx 75rpx 75rpx;
border: 2rpx solid #ECECEC
font-size: 28rpx;
}
.clear-icon{
position: absolute
right: 30rpx;
top: 50%
transform: translate(0, -50%)
z-index: 1
cursor: pointer
}
.inputplace{
font-weight: 400;
font-size: 28rpx;
color: #B5B5B5;
}
}
}
}
.main-scroll {
width: 100%;
height: 100%;
.cards{
width: 100%;
min-height: 260rpx;
height: auto;
background: linear-gradient(0deg, #E3EFFF 0%, #FBFDFF 100%);
// box-shadow: 0px 0px 6px 0px rgba(0,71,200,0.32);
border-radius: 12rpx;
border: 2px solid #EDF5FF;
margin-bottom: 30rpx;
padding: 30rpx 40rpx 0;
box-sizing: border-box
.cardHead{
display: flex;
align-items: center;
justify-content: space-between;
.cardHeadLeft{
display: flex;
align-items: center
width: 70%;
.cardTitle{
font-weight: bold;
font-size: 28rpx;
color: #0069CB;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.titleType{
border-radius: 4px;
font-size: 22rpx;
color: #157EFF;
width: 100rpx;
height: 38rpx;
text-align: center;
line-height: 38rpx;
margin-left: 10rpx;
}
}
}
.heng{
width: 30%;
height: 4rpx;
background: linear-gradient(88deg, #015EEA 0%, #00C0FA 100%);
margin: 10rpx 0 20rpx;
}
.cardCon{
display: flex;
flex-wrap: wrap;
.conten{
width: 100%;
font-size: 24rpx;
color: #666666;
display: flex;
align-items: center
margin-bottom: 10rpx;
}
.status-tags{
display: flex;
align-items: center;
}
}
.flooter{
border-top: 1px solid #ccc;
display: flex;
justify-content: flex-end;
align-items: center;
view{
font-size: 28rpx;
margin-left: 30rpx;
color: #2175F3;
padding-top: 14rpx;
}
}
}
}
}
.cards2{
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100vh;
background-color: rgba(0,0,0,0.5);
z-index: 10000;
padding: 100rpx 50rpx;
box-sizing: border-box;
.cardCon{
height: 70%;
background-color: #fff;
padding: 20rpx;
box-sizing: border-box;
.cardHead{
display: flex;
align-items: center;
justify-content: space-between;
font-size: 30rpx;
font-weight: 600;
}
}
}
}
.titleType{
display: inline-block
border-radius: 4px;
font-size: 22rpx;
color: #157EFF;
width: 100rpx;
height: 38rpx;
text-align: center;
line-height: 38rpx;
margin-left: 10rpx;
}
.primary{
border: 1px solid #157EFF!important;
color: #157EFF!important
}
.success{
border: 1px solid #05A636!important;
color: #05A636!important
}
.info{
border: 1px solid #898989!important;
color: #898989!important
}
.tertiary{
border: 1px solid #E6A340!important;
color: #E6A340!important
}
.primary2{
border: 1px solid #F56C6C!important;
color: #F56C6C!important
}
.rightBtn{
width: 140rpx;
height: 44rpx;
line-height: 44rpx;
background: linear-gradient(90deg, #00C0FA 0%, #1271FF 100%);
border-radius: 4px;
color: #fff;
font-size: 24rpx;
text-align: center;
}
.detailTitle{
font-size: 32rpx;
font-weight: 600;
margin: 30rpx 0;
}
.detailCon{
font-size: 28rpx;
line-height: 40rpx;
}
.exam-info {
display: flex;
justify-content: space-between;
margin-bottom: 35rpx;
margin-top: 20rpx;
}
.info-item {
flex: 1;
text-align: center;
}
.info-value {
font-family: 'D-DIN-Medium';
font-size: 26rpx;
font-weight: 600;
color: #409EFF;
margin-bottom: 8rpx;
}
.info-label {
font-size: 26rpx;
color: #333;
}
.info-divider {
width: 2px;
background-color: #C3E1FF;
}
</style>

View File

@@ -0,0 +1,267 @@
<template>
<div class="app-box">
<div class="con-box">
<div class="cards">
<div class="cardHead">
<div class="cardHeadLeft">
<div class="cardTitle">{{trainOrgan.organName}}</div>
</div>
<div class="rightBtn" @click="handleOperation()"></div>
</div>
<div class="heng"></div>
<div class="cardCon">
<div class="conten">机构联系人{{trainOrgan.contactName}}</div>
<div class="conten">联系方式{{trainOrgan.contactPhone}}</div>
<div class="conten">机构地址{{trainOrgan.address}}</div>
</div>
</div>
<div style="width: 100%;margin-bottom: 40rpx;">
<div class="title">
<div></div>
<div>课程介绍</div>
</div>
<div class="kcCon">
<div class="kcIntroduction" v-for="(item, index) in courses" :key="index">{{item}}</div>
<div v-if="courses.length==0" style="text-align: center;line-height: 100rpx;">暂无数据</div>
</div>
</div>
<div style="width: 100%;margin-bottom: 40rpx;">
<div class="title">
<div></div>
<div>师资团队</div>
</div>
<div class="kcCon">
<div class="faculty" v-for="(item, index) in teams" :key = "index">
<div class="facultyHead">{{item.tramName}}</div>
<div class="facultyCon">老师介绍{{item.tramContent}}</div>
</div>
<div v-if="teams.length==0" style="text-align: center;line-height: 100rpx;">暂无数据</div>
</div>
</div>
<div style="width: 100%;margin-bottom: 30rpx;">
<div class="title">
<div></div>
<div>资质证书</div>
</div>
<div class="kcCon">
<div v-for="(item, index) in certs":key = "index" style="width: 100%;">
<div v-for="(url, index2) in item" :key = "index2" style="width: 100%;">
<image :src="url" mode="" style="width: 100%;"></image>
</div>
</div>
<div v-if="certs.length==0" style="text-align: center;line-height: 100rpx;">暂无数据</div>
</div>
</div>
</div>
</div>
</template>
<script setup>
import { inject, ref, reactive } from 'vue';
import { onLoad, onShow } from '@dcloudio/uni-app';
const { $api, navTo, navBack,urls } = inject('globalFunction');
import config from "@/config.js"
const trainOrgan = ref({});
const courses = ref([]);
const certs = ref([]);
const certs2 = ref([]);
const teams=ref([])
const certIndex=ref(1)
const organId=ref('')
const Authorization=ref('')
onLoad((options) => {
organId.value=options.organId
});
onShow(()=>{
Authorization.value=uni.getStorageSync('Padmin-Token')||''
let params={
organId:organId.value
}
$api.myRequest('/train/public/train/organ/model', params).then((resData) => {
if(resData.code==200){
trainOrgan.value = (resData.data ? resData.data :{});
courses.value = (resData ? (resData.data.course ? (resData.data.course + "").split(",") :[]) :[]);
certs2.value = (resData ? JSON.parse(resData.data.zhengshu):[]);
list()
}
});
})
function list(){
$api.myRequest('/train/public/train/organ/team/list', {organId:organId.value}).then((res) => {
if(res.code==200){
teams.value=res.data;
for(var i =0;i<certs2.value.length;i++){
certs2.value[i].url =config.LCBaseUrl + "/file/minio" + certs2.value[i].url;
}
var certsArr = [];var flag = 0;
for(var i =0;i<certs2.value.length;i++){
flag ++
certsArr.push(certs2.value[i])
if(flag == 3){
var arrs = [];
for(var j =0;j<3;j++){
arrs.push(certsArr[j].url)
}
certs.value.push(arrs);
certsArr = [];
flag = 0;
}else{
if(i == certs2.value.length -1){
var arrs = [];
for(var j =0;j<certsArr.length;j++){
arrs.push(certsArr[j].url)
}
certs.value.push(arrs);
}
}
}
}
})
}
</script>
<style lang="stylus" scoped>
.app-box{
width: 100%;
height: 100vh;
position: relative;
.con-box{
position: absolute;
width: 100%;
height: 100%;
left: 0;
top:0;
z-index: 10;
padding: 20rpx 28rpx;
box-sizing: border-box;
overflow: hidden;
.cards{
width: 100%;
min-height: 260rpx;
height: auto;
background: linear-gradient(0deg, #D4E3FE 0%, #EBF1FF 100%);
border-radius: 12rpx;
border: 2px solid #EDF5FF;
margin-bottom: 40rpx;
padding: 20rpx 30rpx 0;
box-sizing: border-box
.cardHead{
display: flex;
align-items: center;
justify-content: space-between;
.cardHeadLeft{
display: flex;
align-items: center
width: 100%;
.cardTitle{
font-weight: bold;
font-size: 32rpx;
color: #0069CB;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.titleType{
border-radius: 4px;
font-size: 22rpx;
color: #157EFF;
width: 100rpx;
height: 38rpx;
text-align: center;
line-height: 38rpx;
margin-left: 10rpx;
}
}
}
.heng{
width: 30%;
height: 4rpx;
background: linear-gradient(88deg, #015EEA 0%, #00C0FA 100%);
margin: 10rpx 0 20rpx;
}
.cardCon{
display: flex;
flex-wrap: wrap;
.conten{
width: 100%;
font-size: 26rpx;
color: #666666;
display: flex;
align-items: center
margin-bottom: 10rpx;
}
.status-tags{
display: flex;
align-items: center;
}
}
.flooter{
border-top: 1px solid #ccc;
display: flex;
justify-content: flex-end;
align-items: center;
view{
font-size: 28rpx;
margin-left: 30rpx;
color: #2175F3;
padding-top: 14rpx;
}
}
}
}
}
.title{
width: 100%
display: flex
align-items: center
font-size: 32rpx
font-weight: 600
}
.title>view:first-child{
width: 10rpx;
height: 46rpx;
background-color: #FD7565;
margin-right: 20rpx;
border-radius: 10rpx;
}
.kcCon{
margin-top: 20rpx;
width: 100%
}
.kcIntroduction{
background: rgba(20,136,245,0.1);
padding: 20rpx;
box-sizing: border-box;
border-radius: 10rpx;
margin-bottom: 20rpx;
}
.faculty{
border: 1px solid #ddd;
border-radius: 10rpx;
padding: 10rpx;
margin-bottom: 20rpx;
box-sizing: border-box;
.facultyHead{
width: 100%;
height: 80rpx;
border-radius: 10rpx;
color: #fff;
font-size: 30rpx;
background: linear-gradient(88deg, #3E8BFF 0%, #0DB5FB 100%);
display: flex;
align-items: center
padding: 0 20rpx;
box-sizing: border-box;
}
.facultyCon{
font-size: 26rpx;
color: #666666;
padding: 20rpx 0;
box-sizing: border-box;
}
}
</style>

View File

@@ -323,46 +323,59 @@
const deliveringJobs = reactive({}); const deliveringJobs = reactive({});
// 岗位投递 // 岗位投递
function deliverResume(job) { function deliverResume(job) {
if(deliveringJobs[job.jobId]) return uni.showModal({
deliveringJobs[job.jobId] = true title: "提示",
const raw = uni.getStorageSync("Padmin-Token"); content: "请确认是否投递简历?",
const token = typeof raw === "string" ? raw.trim() : ""; showCancel: true,
const headers = token ? { confirmText: "确定",
Authorization: raw.startsWith("Bearer ") ? raw : `Bearer ${token}` cancelText: "取消",
} : {}; success: (res) => {
if(res.confirm){
$api.myRequest("/dashboard/auth/heart", {}, "POST", 10100, headers).then((resData1) => { if(deliveringJobs[job.jobId]) return
if (resData1.code == 200) { deliveringJobs[job.jobId] = true
$api.myRequest("/system/user/login/user/info", {}, "GET", 10100, headers).then((resData) => { const raw = uni.getStorageSync("Padmin-Token");
$api.myRequest("/jobfair/public/job-fair-person-job/insert", { const token = typeof raw === "string" ? raw.trim() : "";
jobFairId: job.jobFairId, // 招聘会id const headers = token ? {
personId: resData.info.userId, // 当前登录用户id Authorization: raw.startsWith("Bearer ") ? raw : `Bearer ${token}`
enterpriseId: job.companyId, // 企业id } : {};
jobId: job.jobId, // 岗位id
idCard:resData.info.personCardNo $api.myRequest("/dashboard/auth/heart", {}, "POST", 10100, headers).then((resData1) => {
}, "post", 9100, { if (resData1.code == 200) {
"Content-Type": "application/json" $api.myRequest("/system/user/login/user/info", {}, "GET", 10100, headers).then((resData) => {
}).then((data) => { $api.myRequest("/jobfair/public/job-fair-person-job/insert", {
if (data && data.code === 200) { jobFairId: job.jobFairId, // 招聘会id
$api.msg("简历投递成功"); personId: resData.info.userId, // 当前登录用户id
if (!job.jobFairPersonJob) { enterpriseId: job.companyId, // 企业id
job.jobFairPersonJob = {}; jobId: job.jobId, // 岗位id
} idCard:resData.info.personCardNo
job.jobFairPersonJob.status = "1"; }, "post", 9100, {
getList(false); "Content-Type": "application/json"
}).then((data) => {
if (data && data.code === 200) {
$api.msg("简历投递成功");
if (!job.jobFairPersonJob) {
job.jobFairPersonJob = {};
}
job.jobFairPersonJob.status = "1";
getList(false);
} else {
$api.msg((data && data.msg) || "简历投递失败");
}
deliveringJobs[job.jobId] = false
});
});
} else { } else {
$api.msg((data && data.msg) || "简历投递失败"); $api.msg('请先登录');
deliveringJobs[job.jobId] =false
} }
deliveringJobs[job.jobId] = false }).catch(() => {
deliveringJobs[job.jobId] =false;
}); });
}); }
} else {
$api.msg('请先登录');
deliveringJobs[job.jobId] =false
} }
}).catch(() => { })
deliveringJobs[job.jobId] =false;
});
} }
// 提交面试邀请 // 提交面试邀请

View File

@@ -0,0 +1,79 @@
<template>
<AppLayout :show-bg-image="false">
<view class="main-list" >
<view class="title">
{{ dataInfo.title }}
</view>
<view class="publishTime">
发布日期{{ dataInfo.publishTime }}
</view>
<view >
<view class="gk-l-i-bottom" v-html="dataInfo.content"></view>
</view>
</view>
</AppLayout>
</template>
<script setup>
import { inject, ref, reactive, onMounted } from "vue";
import { onLoad, onShow } from '@dcloudio/uni-app';
const { $api, navTo, navBack, vacanciesTo } = inject("globalFunction");
import config from "@/config.js";
import AppLayout from "@/components/AppLayout/AppLayout.vue";
const baseUrl = config.imgBaseUrl;
const dataInfo = ref([]);
const id = ref('');
const getBackgroundStyle = (imageName) => ({
backgroundImage: `url(${baseUrl}/${imageName})`,
backgroundSize: "cover", // 覆盖整个容器
backgroundPosition: "center", // 居中
backgroundRepeat: "no-repeat",
});
onLoad((options) => {
id.value=options.id
getData();
});
function getData() {
let params={
id:id.value
}
$api.myRequest('/train/public/announcement/selectById', params).then((resData) => {
if(resData.code==200){
var td = new RegExp("<td", "g")
var table = new RegExp('<table style="width: auto;', "g")
resData.data.content = (resData.data.content + "").replace(td, '<td style = "border:1px solid #cecece;font-size:0.8rem;" ')
resData.data.content = (resData.data.content + "").replace(table, '<table style="width: auto; border-collapse: collapse;" ')
dataInfo.value=resData.data
}
});
}
</script>
<style lang="scss" scoped>
.main-list {
background-color: #ffffff;
padding: 20rpx 25rpx 28rpx 25rpx;
margin: 30rpx 30rpx;
box-shadow: 0px 3px 20px 0px rgba(0, 105, 234, 0.1);
border-radius: 12px;
}
.title {
font-size: 32rpx;
font-weight: bold;
color: #282828;
margin-bottom: 16rpx;
display: flex;
justify-content: center;
}
.publishTime{
text-align: center;
font-size: 24rpx;
color: #a2a2a2;
margin-top: 12rpx;
margin-bottom: 20rpx;
}
</style>

201
packageB/notice/index.vue Normal file
View File

@@ -0,0 +1,201 @@
<template>
<AppLayout :title="title" :show-bg-image="false">
<view class="tab-container">
<view class="tab-item" :class="{ active: currentTab === 'train' }" @click="switchTab('train')">
培训公告
</view>
<view class="tab-item" :class="{ active: currentTab === 'evaluate' }" @click="switchTab('evaluate')">
评价公告
</view>
</view>
<scroll-view scroll-y class="main-scroll" @scrolltolower="handleScrollToLower">
<view class="main-list" >
<view
:style="getBackgroundStyle('frame-activity.png')"
class="policy-list"
v-for="(item, index) in policyList"
:key="index"
@click="goPolicyDetail(item)" >
<view class="title">
{{ item.title }}
</view>
<view class="bottom-line">
<view>
<uni-icons color="#A2A2A2" type="info" size="12"></uni-icons>
发布日期{{ item.publishTime }}
</view>
</view>
<view >
<view class="gk-l-i-bottom" v-html="item.content"></view>
</view>
</view>
</view>
</scroll-view>
</AppLayout>
</template>
<script setup>
import { inject, ref, reactive, onMounted } from "vue";
const { $api, navTo, navBack, vacanciesTo } = inject("globalFunction");
import config from "@/config.js";
import AppLayout from "@/components/AppLayout/AppLayout.vue";
const title = ref("");
const baseUrl = config.imgBaseUrl;
const pageSize=ref(10)
const pageNum=ref(1)
const totalNum=ref(0)
// Tab 控制
const currentTab = ref("train"); // 默认显示培训公告
function switchTab(tabName) {
currentTab.value = tabName;
getPolicyData('refresh',currentTab)
}
const handleScrollToLower = () => {
getPolicyData('add',currentTab);
};
const getBackgroundStyle = (imageName) => ({
backgroundImage: `url(${baseUrl}/${imageName})`,
backgroundSize: "100% 100%", // 覆盖整个容器
backgroundPosition: "center", // 居中
backgroundRepeat: "no-repeat",
});
onMounted(() => {
getPolicyData('refresh',currentTab);
});
const policyList = ref([]);
function getPolicyData(type = 'add',currentTab='train') {
let current=ref('1')
if(currentTab.value=='train'){
current.value='1'
}else if(currentTab.value=='evaluate'){
current.value='2'
}
let maxPage=Math.ceil(totalNum.value/pageSize.value)
let params={}
if (type === 'refresh') {
pageNum.value = 1;
params={
pageSize:pageSize.value,
pageNum:pageNum.value,
type:current.value
}
$api.myRequest('/train/public/announcement/list', params).then((resData) => {
if(resData.code==200){
for(var i = 0;i<resData.rows.length;i++){
resData.rows[i].content = resData.rows[i].content.replace(/<[^>]+>/g,"");
}
policyList.value=resData.rows
totalNum.value=resData.total
}
});
}
if (type === 'add' && pageNum.value < maxPage) {
pageNum.value += 1;
params={
pageSize:pageSize.value,
pageNum:pageNum.value,
type:current.value
}
$api.myRequest('/train/public/announcement/list', params).then((resData) => {
if(resData.code==200){
for(var i = 0;i<resData.rows.length;i++){
resData.rows[i].content = resData.rows[i].content.replace(/<[^>]+>/g,"");
}
policyList.value=policyList.value.concat(resData.rows)
totalNum.value=resData.total
}
});
}
}
function goPolicyDetail(item) {
uni.navigateTo({
url:`/packageB/notice/detail?id=${item.id}`
// url: `/packageRc/pages/policy/policyDetail?id=${item.id}`
});
}
</script>
<style lang="scss" scoped>
.main-list {
// background-color: #ffffff;
// padding: 20rpx 25rpx 28rpx 25rpx;
margin: 0 30rpx 30rpx 30rpx;
// box-shadow: 0px 3px 20px 0px rgba(0, 105, 234, 0.1);
// border-radius: 12px;
}
.tab-container {
display: flex;
height: 80rpx;
background-color: #fff;
margin: 0 30rpx 20rpx;
border-radius: 12rpx;
overflow: hidden;
margin-top: 10rpx;
}
.tab-item {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
font-size: 32rpx;
color: #666;
transition: all 0.3s;
}
.tab-item.active {
background-color: #ffffff;
color: #4c6efb;
font-weight: bold;
// box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.05);
border-bottom: 2rpx solid #4c6efb;
}
.gk-l-i-bottom{
margin-top: 16px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.main-scroll {
width: 100%;
height: 90%;
}
.policy-list {
width: 100%;
margin: 0 auto;
color: #333333;
border-radius: 24rpx;
background: #ffffff;
margin-bottom: 24rpx;
padding: 28rpx 22rpx;
box-sizing: border-box;
position: relative;
.title {
font-size: 32rpx;
font-weight: bold;
color: #282828;
margin-bottom: 16rpx;
display: flex;
}
.bottom-line {
display: flex;
justify-content: space-between;
font-size: 24rpx;
color: #a2a2a2;
margin-top: 12rpx;
}
}
</style>

View File

@@ -93,7 +93,6 @@
{{ item.zcmc }}</view {{ item.zcmc }}</view
> >
<view class="infos"> <view class="infos">
<view v-if="item.zclx">{{ item.zclx }}</view>
<view v-if="item.zcLevel">{{ item.zcLevel }}</view> <view v-if="item.zcLevel">{{ item.zcLevel }}</view>
<view v-if="item.sourceUnit">{{ item.sourceUnit }}</view> <view v-if="item.sourceUnit">{{ item.sourceUnit }}</view>
</view> </view>

View File

@@ -13,7 +13,7 @@
</view> </view>
</view> </view>
</view> --> </view> -->
<view class="btns" @click="jumps('/packageB/train/practice/startPracticing')"> <view class="btns" @click="jumps('/packageB/train/practice/startPracticingList')">
<image src="/packageB/static/images/train/zxxl-k.png" mode=""></image> <image src="/packageB/static/images/train/zxxl-k.png" mode=""></image>
<view> <view>
<text>专项练习</text> <text>专项练习</text>

View File

@@ -129,6 +129,7 @@
<script setup> <script setup>
import { inject, ref, reactive } from 'vue'; import { inject, ref, reactive } from 'vue';
import { onLoad, onShow } from '@dcloudio/uni-app'; import { onLoad, onShow } from '@dcloudio/uni-app';
import dayjs from "dayjs";
const { $api, navTo, navBack,urls } = inject('globalFunction'); const { $api, navTo, navBack,urls } = inject('globalFunction');
import config from "@/config.js" import config from "@/config.js"
const userInfo = ref({}); const userInfo = ref({});
@@ -152,13 +153,7 @@ onLoad(() => {
}); });
onShow(()=>{ onShow(()=>{
getDictionary() getDictionary()
const date = new Date(); dates.value=dayjs().format('YYYY-MM-DD HH:mm:ss')
let year = date.getFullYear();
let month = date.getMonth() + 1; // 月份从0开始需要加1
let day = date.getDate();
month=month>9?month:'0'+month
day=day>9?day:'0'+day
dates.value=year+'-'+month+'-'+day
Authorization.value=uni.getStorageSync('Padmin-Token')||'' Authorization.value=uni.getStorageSync('Padmin-Token')||''
getHeart(); getHeart();
}) })
@@ -337,13 +332,12 @@ function handleOperation(row,i) {
height: 90%; height: 90%;
.cards{ .cards{
width: 100%; width: 100%;
height: 280rpx;
background: linear-gradient(0deg, #E3EFFF 0%, #FBFDFF 100%); background: linear-gradient(0deg, #E3EFFF 0%, #FBFDFF 100%);
// box-shadow: 0px 0px 6px 0px rgba(0,71,200,0.32); // box-shadow: 0px 0px 6px 0px rgba(0,71,200,0.32);
border-radius: 12rpx; border-radius: 12rpx;
border: 2px solid #EDF5FF; border: 2px solid #EDF5FF;
margin-bottom: 30rpx; margin-bottom: 30rpx;
padding: 30rpx 40rpx 0; padding: 30rpx 40rpx 10rpx;
box-sizing: border-box box-sizing: border-box
.cardHead{ .cardHead{
display: flex; display: flex;

View File

@@ -606,6 +606,8 @@ function exit(){
} }
.questionNums{ .questionNums{
width: 100%; width: 100%;
height: 90vh;
overflow-y: auto;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
@@ -618,6 +620,7 @@ function exit(){
border: 2px solid #E0E0E0; border: 2px solid #E0E0E0;
font-size: 28rpx; font-size: 28rpx;
margin-right: 15px; margin-right: 15px;
margin-bottom: 15px;
cursor: pointer; cursor: pointer;
} }
.questionsActive{ .questionsActive{

View File

@@ -109,7 +109,7 @@
<div>题号</div> <div>题号</div>
<div style="font-size: 40rpx;" @click="clones()">×</div> <div style="font-size: 40rpx;" @click="clones()">×</div>
</div> </div>
<div class="questionNums"> <div class="questionNums" style = "height:77vh;overflow: auto;">
<div class="questions" :class="item.whether=='正确'?'questionCorrect':item.whether=='错误'?'questionError':questionIndex==(index+1)?'questionsActive':''" @click="switchs(index)" v-for="(item,index) in problemList" :key="index">{{index+1}}</div> <div class="questions" :class="item.whether=='正确'?'questionCorrect':item.whether=='错误'?'questionError':questionIndex==(index+1)?'questionsActive':''" @click="switchs(index)" v-for="(item,index) in problemList" :key="index">{{index+1}}</div>
</div> </div>
</div> </div>
@@ -125,6 +125,7 @@ import useUserStore from '@/stores/useUserStore';
import useDictStore from '@/stores/useDictStore'; import useDictStore from '@/stores/useDictStore';
const userInfo = ref({}); const userInfo = ref({});
const Authorization = ref(''); const Authorization = ref('');
const cataType = ref('');
const radio = ref(''); const radio = ref('');
const radio2 = ref(''); const radio2 = ref('');
const checkList = ref([]); const checkList = ref([]);
@@ -161,6 +162,7 @@ watch(questionIndex, (newVal, oldVal) => {
// }); // });
onLoad((options) => { onLoad((options) => {
cataType.value = options.cataType;
Authorization.value=uni.getStorageSync('Padmin-Token')||'' Authorization.value=uni.getStorageSync('Padmin-Token')||''
getHeart(); getHeart();
}); });
@@ -202,7 +204,8 @@ function queryData(){
'Content-Type':"application/x-www-form-urlencoded" 'Content-Type':"application/x-www-form-urlencoded"
} }
$api.myRequest('/train/public/trainPractice/getQuestions', { $api.myRequest('/train/public/trainPractice/getQuestions', {
userId: userInfo.value.userId userId: userInfo.value.userId,
category: cataType.value
},'post',9100,header).then((resData) => { },'post',9100,header).then((resData) => {
if(resData&&resData.code==200){ if(resData&&resData.code==200){
resData.data.forEach((item,i)=>{ resData.data.forEach((item,i)=>{

View File

@@ -0,0 +1,393 @@
<template>
<AppLayout :title="title" :show-bg-image="false" @onScrollBottom="getDataList('add')">
<!-- <template #headerleft>
<view class="btnback">
<image src="@/static/icon/back.png" @click="navBack"></image>
</view>
</template> -->
<!-- <template #headContent>
<view class="collection-search">
<view class="search-content">
<view class="header-input button-click">
<uni-icons class="iconsearch" color="#6A6A6A" type="search" size="22"></uni-icons>
<input
class="input"
v-model="searchKeyword"
@confirm="searchVideo"
placeholder="输入"
placeholder-class="inputplace"
/>
<uni-icons
v-if="searchKeyword"
class="clear-icon"
type="clear"
size="24"
color="#999"
@click="clearSearch"
/>
</view>
</view>
</view>
</template> -->
<view class="main-list">
<view class="list-title">
<text>专项训练列表</text>
<view class="title-line"></view>
</view>
<view class="video-grid" v-if="dataList.length>0">
<view
v-for="item in dataList"
:key="item.category_value"
class="train-item"
>
<div class = "cards">
<div class="cardHead">
<div class="cardHeadLeft">
<div class="cardTitle">{{item.category}}</div>
</div>
</div>
<div class="heng"></div>
<div class="cardCon">
<div class="conten">难度{{item.difficulty}}</div>
</div>
<div class="flooter">
<div @click="goZxxl(item)">去考试</div>
</div>
</div>
</view>
</view>
<empty v-else pdTop="200"></empty>
</view>
</AppLayout>
</template>
<script setup>
import { inject, ref, reactive } from 'vue';
import { onLoad } from '@dcloudio/uni-app';
const { $api, navTo, navBack } = inject('globalFunction');
import config from "@/config.js"
// state
const title = ref('');
const searchKeyword = ref('');
const dataList=ref([])
const pageSize=ref(10)
const pageNum=ref(1)
const totalNum=ref(0)
const baseUrl = config.imgBaseUrl
const getItemBackgroundStyle = (imageName) => ({
backgroundImage: `url(${baseUrl}/train/${imageName})`,
backgroundSize: 'cover', // 覆盖整个容器
backgroundPosition: 'center', // 居中
backgroundRepeat: 'no-repeat'
});
const trainVideoImgUrl=config.trainVideoImgUrl
onLoad(async () => {
await thirdLogin()
getDataList('refresh');
});
// 搜索视频
function searchVideo() {
getDataList('refresh');
}
// 清除搜索内容
function clearSearch() {
searchKeyword.value = '';
getDataList('refresh');
}
// 获取视频列表
function getDataList(type = 'add') {
let maxPage=Math.ceil(totalNum.value/pageSize.value)
let params={}
if (type === 'refresh') {
pageNum.value = 1;
params={
category:'',
hour:'',
level:'',
searchValue:searchKeyword.value,
orderStr:'',
pageSize:pageSize.value,
pageNum:pageNum.value
}
$api.myRequest('/train/public/trainQuestion/getQuestionTypes', params).then((resData) => {
dataList.value=resData.rows
totalNum.value=resData.total
});
}
if (type === 'add' && pageNum.value < maxPage) {
pageNum.value += 1;
params={
category:'',
pageSize:pageSize.value,
pageNum:pageNum.value
}
$api.myRequest('/train/public/trainQuestion/getQuestionTypes', params).then((resData) => {
dataList.value=dataList.value.concat(resData.rows)
totalNum.value=resData.total
});
}
}
function goZxxl(item){
navTo(`/packageB/train/practice/startPracticing?cataType=${item.category_value}`);
}
// 播放视频
async function playVideo(video) {
if(await thirdLogin()){
}
}
async function thirdLogin(){
let form={}
if (uni.getStorageSync('userInfo').isCompanyUser=='1'|| uni.getStorageSync('userInfo').isCompanyUser=='2') {
form={
usertype: '1',
idno: uni.getStorageSync('userInfo').idCard,
name: uni.getStorageSync('userInfo').name,
enterprisecode:"",
enterprisename: "",
contactperson: "",
contactphone: "",
}
}else if (uni.getStorageSync('userInfo').isCompanyUser=='0') {
form={
usertype: "2",
enterprisecode: uni.getStorageSync('userInfo').idCard,
enterprisename: uni.getStorageSync('userInfo').name,
contactperson: "",
contactphone: "",
idno: "",
name: ""
}
}else{
uni.showToast({
icon: 'none',
title: '请先登录'
})
return false;
}
var resLogin = await $api.myRequest('/auth/login2/ks',form,'post',10100);
if (resLogin.code=='200') {
uni.setStorageSync('Padmin-Token', resLogin.data.access_token)
return true;
}else{
uni.showToast({
icon: 'none',
title: '单点异常'
})
return false;
}
}
</script>
<style lang="stylus" scoped>
.btnback{
width: 64rpx;
height: 64rpx;
}
image {
height: 100%;
width: 100%;
}
.train-item{
width:100%;
}
.cards{
width: 100%;
height: 240rpx;
background: linear-gradient(0deg, #E3EFFF 0%, #FBFDFF 100%);
// box-shadow: 0px 0px 6px 0px rgba(0,71,200,0.32);
border-radius: 12rpx;
border: 2px solid #EDF5FF;
margin-bottom: 30rpx;
padding: 30rpx 40rpx 0;
box-sizing: border-box
.cardHead{
display: flex;
align-items: center;
justify-content: space-between;
.cardHeadLeft{
display: flex;
align-items: center
width: 98%;
.cardTitle{
font-weight: bold;
font-size: 28rpx;
color: #0069CB;
max-width: 98%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.titleType{
border-radius: 4px;
font-size: 22rpx;
color: #157EFF;
width: 100rpx;
height: 38rpx;
text-align: center;
line-height: 38rpx;
margin-left: 10rpx;
}
}
}
.heng{
width: 120rpx;
height: 4rpx;
background: linear-gradient(88deg, #015EEA 0%, #00C0FA 100%);
margin: 10rpx 0 20rpx;
}
.cardCon{
display: flex;
flex-wrap: wrap;
.conten{
width: 50%;
font-size: 22rpx;
color: #666666;
display: flex;
align-items: center
margin-bottom: 10rpx;
}
.status-tags{
display: flex;
align-items: center;
}
}
.flooter{
border-top: 1px solid #ccc;
display: flex;
justify-content: flex-end;
align-items: center;
view{
font-size: 28rpx;
margin-left: 30rpx;
color: #2175F3;
padding-top: 14rpx;
}
}
}
.events.data-v-4c19f00c {
pointer-events: none; /* 这会禁用所有指针事件 */
opacity: 0.5; /* 可选:改变透明度以视觉上表示不可点击 */
cursor: not-allowed; /* 可选:改变鼠标光标样式 */
}
.collection-search{
padding: 10rpx 20rpx;
.search-content{
position: relative
display: flex
align-items: center
padding: 14rpx 0
.header-input{
padding: 0
width: calc(100%);
position: relative
.iconsearch{
position: absolute
left: 30rpx;
top: 50%
transform: translate(0, -50%)
z-index: 1
}
.input{
padding: 0 80rpx 0 80rpx
height: 80rpx;
background: #FFFFFF;
border-radius: 75rpx 75rpx 75rpx 75rpx;
border: 2rpx solid #ECECEC
font-size: 28rpx;
}
.clear-icon{
position: absolute
right: 30rpx;
top: 50%
transform: translate(0, -50%)
z-index: 1
cursor: pointer
}
.inputplace{
font-weight: 400;
font-size: 28rpx;
color: #B5B5B5;
}
}
}
}
.main-list{
background-color: #ffffff;
padding: 20rpx 20rpx 28rpx 20rpx;
margin:10rpx 30rpx ;
box-shadow: 0px 3px 20px 0px rgba(0,105,234,0.1);
border-radius: 12px;
}
.list-title{
font-weight: bold;
font-size: 36rpx;
color: #404040;
position: relative;
margin-bottom: 20px;
}
.title-line{
position: absolute;
bottom: -10rpx;
left: 36rpx;
width: 70rpx;
height: 8rpx;
background: linear-gradient(90deg, #FFAD58 0%, #FF7A5B 100%);
border-radius: 4rpx;
}
.video-grid{
display: flex;
flex-wrap: wrap;
}
.video-item{
}
.video-item:active{
transform: scale(0.98);
}
.video-cover{
position: relative;
width: 100%;
padding-top: 56.25%; /* 16:9 比例 */
background: #f0f0f0;
border-radius: 4rpx;
}
.video-cover image{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.video-info{
padding: 16rpx 16rpx 0 16rpx;
font-size: 26rpx;
color: #333;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: center;
}
.video-title{
font-size: 28rpx;
color: #333;
line-height: 40rpx;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
</style>

View File

@@ -14,7 +14,6 @@
</view> </view>
</view> </view>
</view> </view>
<!-- :style="{height: winHeight - barHeight - loginHeight + 'px'}" -->
<view class="u-menu-wrap" > <view class="u-menu-wrap" >
<scroll-view scroll-y scroll-with-animation class="u-tab-view menu-scroll-view" :scroll-top="scrollTop" :scroll-into-view="itemId"> <scroll-view scroll-y scroll-with-animation class="u-tab-view menu-scroll-view" :scroll-top="scrollTop" :scroll-into-view="itemId">
<view v-for="(item,index) in jobList" :key="index" class="u-tab-item" <view v-for="(item,index) in jobList" :key="index" class="u-tab-item"
@@ -48,7 +47,6 @@
return { return {
kw: "", //搜索关键 kw: "", //搜索关键
user: uni.getStorageSync("CAuserInfo").user, user: uni.getStorageSync("CAuserInfo").user,
barHeight: wx.getWindowInfo().statusBarHeight,
winHeight: wx.getWindowInfo().windowHeight, winHeight: wx.getWindowInfo().windowHeight,
jobDataList: [], jobDataList: [],
jobList, jobList,

View File

@@ -56,7 +56,6 @@
export default { export default {
data() { data() {
return { return {
barHeight: wx.getWindowInfo().statusBarHeight,
list: [], list: [],
allNum: 0, //总题目数 allNum: 0, //总题目数
pageIndex: 0, //显示页 pageIndex: 0, //显示页

View File

@@ -64,7 +64,6 @@
export default { export default {
data() { data() {
return { return {
barHeight: wx.getWindowInfo().statusBarHeight,
list: [], list: [],
allNum: 0,//总题目数 allNum: 0,//总题目数
pageIndex: 0, //显示页 pageIndex: 0, //显示页

View File

@@ -48,7 +48,6 @@
export default { export default {
data() { data() {
return { return {
barHeight: wx.getWindowInfo().statusBarHeight,
list: [], list: [],
allNum: 0,//总题目数 allNum: 0,//总题目数
pageIndex: 0, //显示页 pageIndex: 0, //显示页

View File

@@ -29,7 +29,6 @@
export default { export default {
data() { data() {
return { return {
barHeight: wx.getWindowInfo().statusBarHeight,
refreshIfNeeded: false, //是否返回刷新 refreshIfNeeded: false, //是否返回刷新
dataList: [], dataList: [],
} }

View File

@@ -47,7 +47,6 @@
export default { export default {
data() { data() {
return { return {
barHeight: wx.getWindowInfo().statusBarHeight,
list: [], list: [],
allNum: 0,//总题目数 allNum: 0,//总题目数
pageIndex: 0, //显示页 pageIndex: 0, //显示页

View File

@@ -9,7 +9,6 @@
export default { export default {
data() { data() {
return { return {
barHeight: wx.getWindowInfo().statusBarHeight,
user: null,//用户信息 user: null,//用户信息
userId: 0, userId: 0,
name: "", name: "",

View File

@@ -49,15 +49,19 @@
export default { export default {
data() { data() {
return { return {
barHeight: wx.getWindowInfo().statusBarHeight,
user: null,//用户信息 user: null,//用户信息
name: "", name: "",
idCard: "" idCard: ""
} }
}, },
onLoad(e) { onLoad(e) {
this.idCard = e.idCard; if(e.idCard){
this.idCard = e.idCard;
}else {
this.idCard = e.userId;
}
this.name = e.name; this.name = e.name;
console.log(e);
this.queryKaShiToken(); this.queryKaShiToken();
}, },
methods: { methods: {

View File

@@ -82,7 +82,6 @@
}, },
data() { data() {
return { return {
barHeight: wx.getWindowInfo().statusBarHeight,
videoUrl: "", videoUrl: "",
introduceUrl: "", introduceUrl: "",
id: "", id: "",

View File

@@ -254,7 +254,6 @@
data() { data() {
return { return {
platform: uni.getDeviceInfo().platform, platform: uni.getDeviceInfo().platform,
barHeight: wx.getWindowInfo().statusBarHeight,
showTip: false, showTip: false,
layerTitile: "", layerTitile: "",
layerDesc: "", layerDesc: "",

View File

@@ -123,7 +123,6 @@
data() { data() {
return { return {
platform: uni.getDeviceInfo().platform, platform: uni.getDeviceInfo().platform,
barHeight: wx.getWindowInfo().statusBarHeight,
introduceUrl: "https://51xuanxiao.oss-cn-hangzhou.aliyuncs.com/Resource/xcx_sygh/report/multipleAbilityTestReport-1.png", introduceUrl: "https://51xuanxiao.oss-cn-hangzhou.aliyuncs.com/Resource/xcx_sygh/report/multipleAbilityTestReport-1.png",
introduceUrl2: "https://51xuanxiao.oss-cn-hangzhou.aliyuncs.com/Resource/xcx_sygh/report/multipleAbilityTestReport-2.png", introduceUrl2: "https://51xuanxiao.oss-cn-hangzhou.aliyuncs.com/Resource/xcx_sygh/report/multipleAbilityTestReport-2.png",
videoUrl: "http://2-video.oss-cn-shenzhen.aliyuncs.com/2023%E5%B9%B4%E8%A7%86%E9%A2%91/%E5%88%9D%E4%B8%AD%E8%AF%BE%E7%A8%8B%E8%B5%84%E6%BA%90/%E5%A4%9A%E5%85%83%E6%99%BA%E8%83%BD%E6%B5%8B%E8%AF%84%E8%A7%A3%E8%AF%BB1.16%E4%BF%AE%E6%94%B92.mp4", videoUrl: "http://2-video.oss-cn-shenzhen.aliyuncs.com/2023%E5%B9%B4%E8%A7%86%E9%A2%91/%E5%88%9D%E4%B8%AD%E8%AF%BE%E7%A8%8B%E8%B5%84%E6%BA%90/%E5%A4%9A%E5%85%83%E6%99%BA%E8%83%BD%E6%B5%8B%E8%AF%84%E8%A7%A3%E8%AF%BB1.16%E4%BF%AE%E6%94%B92.mp4",

View File

@@ -410,7 +410,6 @@
data() { data() {
return { return {
platform: uni.getDeviceInfo().platform, platform: uni.getDeviceInfo().platform,
barHeight: wx.getWindowInfo().statusBarHeight,
showTip: false, showTip: false,
videoUrl: "http://2-video.oss-cn-shenzhen.aliyuncs.com/2023%E5%B9%B4%E8%A7%86%E9%A2%91/%E5%88%9D%E4%B8%AD%E8%AF%BE%E7%A8%8B%E8%B5%84%E6%BA%90/%E4%BA%BA%E6%A0%BC%E6%B5%8B%E8%AF%84%E8%A7%A3%E8%AF%BB1.16%E4%BF%AE%E6%94%B92.mp4", videoUrl: "http://2-video.oss-cn-shenzhen.aliyuncs.com/2023%E5%B9%B4%E8%A7%86%E9%A2%91/%E5%88%9D%E4%B8%AD%E8%AF%BE%E7%A8%8B%E8%B5%84%E6%BA%90/%E4%BA%BA%E6%A0%BC%E6%B5%8B%E8%AF%84%E8%A7%A3%E8%AF%BB1.16%E4%BF%AE%E6%94%B92.mp4",
introduceUrl: "https://51xuanxiao.oss-cn-hangzhou.aliyuncs.com/Resource/xcx_sygh/report/personalTestReport.png", introduceUrl: "https://51xuanxiao.oss-cn-hangzhou.aliyuncs.com/Resource/xcx_sygh/report/personalTestReport.png",

View File

@@ -49,7 +49,6 @@
}, },
data() { data() {
return { return {
barHeight: wx.getWindowInfo().statusBarHeight,
showVideo: false, showVideo: false,
showIntroduce: false, // 测评介绍 showIntroduce: false, // 测评介绍
videoUrl: "http://2-video.oss-cn-shenzhen.aliyuncs.com/2023%E5%B9%B4%E8%A7%86%E9%A2%91/%E5%88%9D%E4%B8%AD%E8%AF%BE%E7%A8%8B%E8%B5%84%E6%BA%90/%E5%B7%A5%E4%BD%9C%E4%BB%B7%E5%80%BC%E8%A7%82%E8%A7%A3%E8%AF%BB1.16%E4%BF%AE%E6%94%B92.mp4", videoUrl: "http://2-video.oss-cn-shenzhen.aliyuncs.com/2023%E5%B9%B4%E8%A7%86%E9%A2%91/%E5%88%9D%E4%B8%AD%E8%AF%BE%E7%A8%8B%E8%B5%84%E6%BA%90/%E5%B7%A5%E4%BD%9C%E4%BB%B7%E5%80%BC%E8%A7%82%E8%A7%A3%E8%AF%BB1.16%E4%BF%AE%E6%94%B92.mp4",

View File

@@ -108,7 +108,6 @@
export default { export default {
data() { data() {
return { return {
barHeight: wx.getWindowInfo().statusBarHeight,
compassList: [],//罗盘列表 compassList: [],//罗盘列表
checkedIndex: null, checkedIndex: null,
jobList: [],//我的职业 jobList: [],//我的职业

View File

@@ -124,7 +124,6 @@
export default { export default {
data() { data() {
return { return {
barHeight: wx.getWindowInfo().statusBarHeight,
tabs:['目标一 ', '目标二 ', '目标三 ', '目标四 ', '目标五 '], tabs:['目标一 ', '目标二 ', '目标三 ', '目标四 ', '目标五 '],
targetForm: {}, //当前选中的目标 targetForm: {}, //当前选中的目标
targetList: [],//目标列表 targetList: [],//目标列表

View File

@@ -252,7 +252,6 @@ import api1 from "@/packageCa/apiCa/studentProfile.js"
data() { data() {
return { return {
refreshIfNeeded: false, //是否返回刷新 refreshIfNeeded: false, //是否返回刷新
barHeight: wx.getWindowInfo().statusBarHeight,
user: uni.getStorageSync("CAuserInfo").user, user: uni.getStorageSync("CAuserInfo").user,
customInfo: uni.getStorageSync("customInfo"), customInfo: uni.getStorageSync("customInfo"),
intentionJobList: [],//意向职业 intentionJobList: [],//意向职业

View File

@@ -130,7 +130,6 @@
export default { export default {
data() { data() {
return { return {
barHeight: wx.getWindowInfo().statusBarHeight,
jobList: [],// jobList: [],//
checkedCode: null, checkedCode: null,
jobIntroduce: "", jobIntroduce: "",

View File

@@ -178,7 +178,6 @@
export default { export default {
data() { data() {
return { return {
barHeight: wx.getWindowInfo().statusBarHeight,
tabs:['目标一 ', '目标二 ', '目标三 ', '目标四 ', '目标五 '], tabs:['目标一 ', '目标二 ', '目标三 ', '目标四 ', '目标五 '],
targetList: [],////目标列表 targetList: [],////目标列表
checkedTargetCode: "",//// 目标码 checkedTargetCode: "",//// 目标码

View File

@@ -1,13 +1,10 @@
let baseUrl = "" // let baseUrl = ""
// #ifdef MP-WEIXIN // // #ifdef MP-WEIXIN
// 编译项目因为使用插件lime-echartechart文件过大需要非压缩代码方式编译不然会很慢发布的时候才压缩代码方式编译 // // 编译项目因为使用插件lime-echartechart文件过大需要非压缩代码方式编译不然会很慢发布的时候才压缩代码方式编译
if (wx.getAccountInfoSync().miniProgram.envVersion === 'develop') {
baseUrl = 'https://www.xjksly.cn/career' // 开发环境
} else {
baseUrl = 'https://www.xjksly.cn/career' // 生产环境
}
// #endif
export { // baseUrl = 'https://www.xjksly.cn/career' // 生产环境
baseUrl // // #endif
}
// export {
// baseUrl
// }

View File

@@ -1,5 +1,5 @@
import { baseUrl} from './config.js' // const baseUrl = "https://localhost:7026/career";
const baseUrl = "https://www.xjksly.cn/career";
const request = {} const request = {}
const headers = {} const headers = {}

View File

@@ -1,7 +1,7 @@
<!-- <!--
* @Date: 2025-10-16 15:15:47 * @Date: 2025-10-16 15:15:47
* @LastEditors: shirlwang * @LastEditors: lip
* @LastEditTime: 2025-12-08 16:10:47 * @LastEditTime: 2026-01-14 21:33:18
--> -->
<template> <template>
<!-- @scroll="handleScroll" @scrolltolower="scrollBottom" --> <!-- @scroll="handleScroll" @scrolltolower="scrollBottom" -->
@@ -72,13 +72,11 @@
<image src="../../../packageRc/static/zcLeft.png"/> <image src="../../../packageRc/static/zcLeft.png"/>
{{item.zcmc}}</view> {{item.zcmc}}</view>
<view class="infos"> <view class="infos">
<view v-if="item.zclx">{{item.zclx}}</view>
<view v-if="item.zcLevel">{{item.zcLevel}}</view> <view v-if="item.zcLevel">{{item.zcLevel}}</view>
<view v-if="item.sourceUnit">{{item.sourceUnit}}</view> <view v-if="item.sourceUnit">{{item.sourceUnit}}</view>
</view> </view>
<view class="bottom-line"> <view class="bottom-line">
<view><uni-icons color="#A2A2A2" type="info" size="12"></uni-icons>发布日期:{{item.createTime}}</view> <view><uni-icons color="#A2A2A2" type="info" size="12"></uni-icons>发布日期:{{item.createTime}}</view>
<view>浏览数<text style="color: #6AA7E8">{{item.viewNum}}</text></view>
</view> </view>
</view> </view>
</view> </view>
@@ -92,13 +90,13 @@ const { $api, navTo, vacanciesTo, formatTotal, config } = inject('globalFunction
import { getPolicyList } from '@/packageRc/apiRc/policy'; import { getPolicyList } from '@/packageRc/apiRc/policy';
let policyList = ref([]) let policyList = ref([])
function getPolicy() { function getPolicy() {
getPolicyList({pageNum: 1, pageSize: 10}).then(res => { getPolicyList({pageNum: 1, pageSize: 10,zclx:'1'}).then(res => {
policyList.value = res.rows policyList.value = res.rows
}) })
} }
function toPolicyList() { function toPolicyList() {
navTo(`/packageRc/pages/policy/policyList`) navTo(`/packageRc/pages/policy/policyList?zclx=1`)
} }
function toPolicyDetail(item) { function toPolicyDetail(item) {
navTo(`/packageRc/pages/policy/policyDetail?id=${item.id}`) navTo(`/packageRc/pages/policy/policyDetail?id=${item.id}`)

View File

@@ -6,23 +6,18 @@
<input style="width: 100%;" placeholder="请输入政策名称进行搜索" v-model="queryParams.searchValue" border="none" /> <input style="width: 100%;" placeholder="请输入政策名称进行搜索" v-model="queryParams.searchValue" border="none" />
<img src="https://rc.jinan.gov.cn/qcwjyH5/static/images/person/search.png" class="search-icon" @click="search()" /> <img src="https://rc.jinan.gov.cn/qcwjyH5/static/images/person/search.png" class="search-icon" @click="search()" />
</view> </view>
<!-- <view class="inner"
style="width: calc(100% + 64rpx);margin-left: -32rpx;height: 122rpx;position: relative;z-index: 2;">
<PopupList :checkData="checkData" @searchCheck="search" ref="PopupList" @popupSearch="popupSearch" />
</view> -->
<view v-if="total" style="position: relative;padding: 32rpx 0;color: #000;"> <view v-if="total" style="position: relative;padding: 32rpx 0;color: #000;">
<!-- <view v-if="total" style="position: relative;padding-bottom: 16px;color: #000;"> --> <!-- <view v-if="total" style="position: relative;padding-bottom: 16px;color: #000;"> -->
<text> {{ total }} </text> <text> {{ total }} </text>
</view> </view>
<!-- <scroll-view :scroll-y="true" style="height: calc(100vh - 342rpx);position: relative;z-index: 1;" --> <!-- <scroll-view :scroll-y="true" style="height: calc(100vh - 342rpx);position: relative;z-index: 1;" -->
<scroll-view :scroll-y="true" style="height: calc(100vh - 202rpx);position: relative;z-index: 1;" <scroll-view :scroll-y="true" style="height: calc(100vh - 232rpx);position: relative;z-index: 1;"
@scrolltolower="getBottomList"> @scrolltolower="getBottomList">
<view style="margin-bottom: 24rpx;border-radius: 16rpx;" class="policy-list" v-for="(item, index) in tableData" :key="index" @click="goPolicyDetail(item)"> <view style="margin-bottom: 24rpx;border-radius: 16rpx;" class="policy-list" v-for="(item, index) in tableData" :key="index" @click="goPolicyDetail(item)">
<view class="title"> <view class="title">
<image src="../../../packageRc/static/zcLeft.png"/> <image src="../../../packageRc/static/zcLeft.png"/>
{{item.zcmc}}</view> {{item.zcmc}}</view>
<view class="infos"> <view class="infos">
<view v-if="item.zclx">{{item.zclx}}</view>
<view v-if="item.zcLevel">{{item.zcLevel}}</view> <view v-if="item.zcLevel">{{item.zcLevel}}</view>
<view v-if="item.sourceUnit">{{item.sourceUnit}}</view> <view v-if="item.sourceUnit">{{item.sourceUnit}}</view>
</view> </view>
@@ -53,7 +48,6 @@ import { getPolicyList } from "@/packageRc/apiRc/policy";
}, },
data() { data() {
return { return {
checkData: [],
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
@@ -64,8 +58,8 @@ import { getPolicyList } from "@/packageRc/apiRc/policy";
loading: false, loading: false,
} }
}, },
onLoad() { onLoad(options) {
this.getCheckData() this.queryParams.zclx = options.zclx
}, },
onShow() { onShow() {
this.search(); this.search();
@@ -76,64 +70,10 @@ import { getPolicyList } from "@/packageRc/apiRc/policy";
url: `/packageRc/pages/policy/policyDetail?id=${item.id}` url: `/packageRc/pages/policy/policyDetail?id=${item.id}`
}) })
}, },
getDictLabel(value, list) {
if (list) {
let arr = list.filter(ele => ele.dictValue == value)
if (arr.length) {
return arr[0].dictLabel
} else {
return '--'
}
}
},
async getCheckData() {
let workExperienceYears
await this.$getDict('qcjy_gznx').then(res => {
workExperienceYears = res.data
})
await this.$getDict('qcjy_xqlc').then(res => {
this.currentStatusList = res.data;
console.log(res.data)
})
this.checkData = [
{
name: "需求类型",
type: "demandType",
data: [{dictLabel: '求职需求', dictValue: '1'},{dictLabel: '创业需求', dictValue: '3'},{dictLabel: '培训需求', dictValue: '4'},{dictLabel: '其他需求', dictValue: '5'}],
activeIndex: 0,
},
{
name: "需求状态",
type: "currentStatus",
data: [{
dictLabel: '全部',
dictValue: ''
}].concat(this.currentStatusList),
activeIndex: 0,
},
// {
// name: "工作经验",
// type: "workExperienceYears",
// data: [{dictLabel: '全部', dictValue: ''}].concat(workExperienceYears),
// activeIndex: 0,
// },
];
},
popupSearch(queryParams) {
queryParams.forEach((item, index) => {
if (item.data[item.activeIndex].dictLabel == "全部") {
this.queryParams[item.type] = "";
} else {
this.queryParams[item.type] = item.data[item.activeIndex].dictValue;
}
});
this.search()
},
search() { search() {
this.showMorePage = true; this.showMorePage = true;
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;
this.queryParams.pageSize = 10; this.queryParams.pageSize = 20;
this.tableData = []; this.tableData = [];
this.total = 0; this.total = 0;
this.getList(); this.getList();

View File

@@ -342,6 +342,12 @@
"navigationBarTitleText": "技能评价" "navigationBarTitleText": "技能评价"
} }
}, },
{
"path": "train/practice/startPracticingList",
"style": {
"navigationBarTitleText": "专项训练"
}
},
{ {
"path": "train/practice/startPracticing", "path": "train/practice/startPracticing",
"style": { "style": {
@@ -419,6 +425,42 @@
"style": { "style": {
"navigationBarTitleText": "错题详情" "navigationBarTitleText": "错题详情"
} }
},
{
"path": "notice/index",
"style": {
"navigationBarTitleText": "培训评价公告"
}
},
{
"path": "notice/detail",
"style": {
"navigationBarTitleText": "公告详情"
}
},
{
"path": "institution/evaluationAgency",
"style": {
"navigationBarTitleText": "评价机构信息"
}
},
{
"path": "institution/evaluationAgencyDetail",
"style": {
"navigationBarTitleText": "评价机构信息详情"
}
},
{
"path": "institution/trainingInstitution",
"style": {
"navigationBarTitleText": "培训机构信息"
}
},
{
"path": "institution/trainingInstitutionDetail",
"style": {
"navigationBarTitleText": "培训机构信息详情"
}
} }
] ]
}, },

View File

@@ -22,9 +22,65 @@
@click="getFair('refresh')"></uni-icons> @click="getFair('refresh')"></uni-icons>
<input class="input" placeholder="招聘会" placeholder-class="inputplace" <input class="input" placeholder="招聘会" placeholder-class="inputplace"
v-model="pageState.jobFairTitle" /> v-model="pageState.jobFairTitle" />
<view class="btn-feel" v-show="state.current != 3" @click="openFilter">筛选</view>
</view> </view>
</view> </view>
<uni-popup
ref="selectFilterModel"
type="bottom"
borderRadius="10px 10px 0 0"
background-color="#FFFFFF"
class="popup-fix"
>
<view class="popup-content">
<view class="popup-list">
<view class="content-wrapper">
<!-- 左侧筛选类别 -->
<!-- <scroll-view class="filter-nav" scroll-y>
<view
v-for="(item, index) in filterOptions"
:key="index"
class="nav-item button-click"
:class="{ active: activeTab === item.key }"
@click="scrollTo(item.key)"
>
{{ item.label }}
</view>
</scroll-view> -->
<!-- 右侧筛选内容 -->
<scroll-view class="filter-content" :scroll-into-view="activeTab" scroll-y>
<view v-for="(item, index) in filterOptions" :key="index">
<view class="content-item">
<view class="item-title" :id="item.key">{{ item.label }}</view>
<radio-group class="check-content" @change="handleSelect">
<label
v-for="option in item.options"
:key="option.value"
class="checkbox-item button-click"
:class="{
checkedstyle: selectedValues === String(option.value),
}"
>
<radio
style="display: none"
:value="String(option.value)"
:checked="selectedValues === String(option.value)"
/>
<text class="option-label">{{ option.label }}</text>
</label>
</radio-group>
</view>
</view>
</scroll-view>
</view>
</view>
<view class="popup-bottom">
<view class="btn-cancel btn-feel" @click="cleanup">重置</view>
<view class="btn-confirm btn-feel" @click="confirm">确认</view>
</view>
</view>
</uni-popup>
<!-- 主体内容区域 --> <!-- 主体内容区域 -->
<view class="container-main"> <view class="container-main">
<scroll-view scroll-y class="main-scroll" :class="{fullHeightScroll:!showTabar}" @scrolltolower="handleScrollToLower"> <scroll-view scroll-y class="main-scroll" :class="{fullHeightScroll:!showTabar}" @scrolltolower="handleScrollToLower">
@@ -151,10 +207,57 @@
onShow(() => { onShow(() => {
// 更新自定义tabbar选中状态 // 更新自定义tabbar选中状态
tabbarManager.updateSelected(1); tabbarManager.updateSelected(1);
getoptions();
});// });//
//筛选
const filterOptions = ref([]);
const activeTab = ref('');
const selectFilterModel = ref(null);
const selectedValues = ref(null);
function openFilter() {
selectFilterModel.value?.open();
}
const scrollTo = (key) => {
activeTab.value = key;
};
const handleSelect = (e) => {
selectedValues.value = e.detail.value
};
function cleanup(){
selectedValues.value = null
confirm()
}
function confirm(){
getFair("refresh");
selectFilterModel.value?.close();
}
function getoptions() {
let headers = {
'Content-Type': 'application/x-www-form-urlencoded',
}
let params = {
dictType:'administrative_division',
dictParentValue:'653100000000',
childFlag:'1',
}
filterOptions.value = [{
label: '所在区域',
key: 'area',
options: []
}];
$api.myRequest('/system/public/dict/data/getByParentValue',params,'POST',9100,headers).then(res=>{
if (res.code == 200) {
filterOptions.value[0].options = res.data.map(item=>{
return {
label: item.dictLabel,
value: item.dictValue,
}
})
}
})
activeTab.value = 'area';
}
async function thirdLogin(needToast){ async function thirdLogin(needToast){
let form={} let form={}
if (uni.getStorageSync('userInfo') && (uni.getStorageSync('userInfo').isCompanyUser=='1' || uni.getStorageSync('userInfo').isCompanyUser=='2')) { if (uni.getStorageSync('userInfo') && (uni.getStorageSync('userInfo').isCompanyUser=='1' || uni.getStorageSync('userInfo').isCompanyUser=='2')) {
@@ -339,11 +442,27 @@
// 正确映射响应为用户信息(优先使用 data 字段) // 正确映射响应为用户信息(优先使用 data 字段)
const data = resData?.data ?? resData; const data = resData?.data ?? resData;
userInfo.value = data || {}; userInfo.value = data || {};
if(data?.info?.entCreditCode && data?.info?.userId){
updateEnterpriseId({
unifiedSocialCreditCode: data?.info?.entCreditCode,
userId: data?.info?.userId,
})
}
getFair("refresh"); getFair("refresh");
return userInfo.value; return userInfo.value;
}); });
} }
function updateEnterpriseId(params){
const headers = {
'Content-Type':'application/json'
}
return $api.myRequest("/jobfair/public/job-fair-sign-up-enterprise/update-enterprise-id", params, "POST", 9100, headers).then((resData) => {
if(resData.code == 200 && resData.data !=0){
state.current = 3
getMyFair("refresh");
}
});
}
function getMyFair(type = "add") { function getMyFair(type = "add") {
if (type === "refresh") { if (type === "refresh") {
pageState.pageNum = 1; pageState.pageNum = 1;
@@ -404,6 +523,7 @@
pageSize: pageState.pageSize, pageSize: pageState.pageSize,
jobFairTitle: pageState.jobFairTitle, jobFairTitle: pageState.jobFairTitle,
jobFairType: state.current, jobFairType: state.current,
dictValue: selectedValues.value,
}; };
if (isLogin.value) { if (isLogin.value) {
if (userInfo.value.userType == "ent") { if (userInfo.value.userType == "ent") {
@@ -561,7 +681,168 @@
return dates; return dates;
} }
</script> </script>
<style lang="scss" scoped>
.popup-fix {
z-index: 9999 !important;
}
.popup-content {
color: #000000;
height: 70vh;
padding-bottom: 20rpx;
}
.popup-bottom {
padding: 40rpx 28rpx 20rpx 28rpx;
display: flex;
justify-content: space-between;
.btn-cancel {
font-weight: 400;
font-size: 32rpx;
color: #666d7f;
line-height: 90rpx;
width: 33%;
min-width: 222rpx;
height: 90rpx;
background: #f5f5f5;
border-radius: 12rpx 12rpx 12rpx 12rpx;
text-align: center;
}
.btn-confirm {
font-weight: 400;
font-size: 32rpx;
color: #ffffff;
text-align: center;
width: 67%;
height: 90rpx;
margin-left: 28rpx;
line-height: 90rpx;
background: #256bfa;
min-width: 444rpx;
border-radius: 12rpx 12rpx 12rpx 12rpx;
}
}
.popup-list {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
justify-content: space-evenly;
height: calc(77vh - 100rpx - 150rpx);
overflow: hidden;
.picker-view {
width: 100%;
height: 500rpx;
margin-top: 20rpx;
.uni-picker-view-mask {
background: rgba(0, 0, 0, 0);
}
.item {
line-height: 84rpx;
height: 84rpx;
text-align: center;
font-weight: 400;
font-size: 32rpx;
color: #cccccc;
}
.item-active {
color: #333333;
}
.uni-picker-view-indicator:after {
border-color: #e3e3e3;
}
.uni-picker-view-indicator:before {
border-color: #e3e3e3;
}
}
// .list {
// .row {
// font-weight: 400;
// font-size: 32rpx;
// color: #333333;
// line-height: 84rpx;
// text-align: center;
// }
// }
}
.content-wrapper {
flex: 1;
display: flex;
overflow: hidden;
height: 100%;
}
.filter-nav {
width: 200rpx;
background-color: #ffffff;
.nav-item {
height: 100rpx;
line-height: 100rpx;
text-align: center;
font-weight: 400;
font-size: 28rpx;
color: #666d7f;
&.active {
font-weight: 500;
font-size: 28rpx;
color: #256bfa;
}
}
}
.filter-content {
flex: 1;
padding: 20rpx;
background-color: #f6f6f6;
.content-item {
margin-top: 30rpx;
.item-title {
font-weight: 400;
font-size: 28rpx;
color: #333333;
margin-bottom: 15rpx;
}
}
.content-item:first-child {
margin-top: 0rpx;
}
.check-content {
display: grid;
gap: 16rpx;
grid-template-columns: repeat(auto-fill, minmax(300rpx, 1fr));
place-items: stretch;
.checkbox-item {
display: flex;
align-items: center;
text-align: center;
background-color: #d9d9d9;
min-width: 0;
padding: 0 10rpx;
height: 80rpx;
background: #e8eaee;
border-radius: 12rpx 12rpx 12rpx 12rpx;
.option-label {
font-size: 28rpx;
width: 100%;
white-space: nowrap;
overflow: hidden;
}
}
.checkedstyle {
height: 76rpx;
background: rgba(37, 107, 250, 0.06);
border-radius: 12rpx 12rpx 12rpx 12rpx;
border: 2rpx solid #256bfa;
color: #256bfa;
}
}
}
</style>
<style scoped lang="stylus"> <style scoped lang="stylus">
.app-custom-root { .app-custom-root {
position: fixed; position: fixed;
@@ -623,6 +904,8 @@
padding: 0 24rpx; padding: 0 24rpx;
width: calc(100% - 48rpx); width: calc(100% - 48rpx);
position: relative; position: relative;
display: flex;
align-items: center;
} }
.app-container .container-header .header-input .iconsearch { .app-container .container-header .header-input .iconsearch {
@@ -638,6 +921,7 @@
background: #ffffff; background: #ffffff;
border-radius: 75rpx; border-radius: 75rpx;
font-size: 28rpx; font-size: 28rpx;
flex:1
} }
.app-container .container-header .header-input .inputplace { .app-container .container-header .header-input .inputplace {
@@ -645,7 +929,13 @@
font-size: 28rpx; font-size: 28rpx;
color: #b5b5b5; color: #b5b5b5;
} }
.app-container .container-header .header-input .btn-feel {
font-weight: 400;
font-size: 28rpx;
text-align: center;
color: #484444;
width: 80rpx;
}
.app-container .container-header .header-date { .app-container .container-header .header-date {
padding: 28rpx; padding: 28rpx;
display: flex; display: flex;

View File

@@ -268,11 +268,11 @@ const openSelectPopup = (config) => {
// #endif // #endif
}; };
const tabCurrent = ref(1); const tabCurrent = ref(1);
const salay = [2, 5, 10, 15, 20, 25, 30, 50, 80, 100]; const salay = [2000, 5000, 10000, 15000, 20000, 25000, 30000, 50000, 80000, 100000];
const state = reactive({ const state = reactive({
station: [], station: [],
stationCateLog: 1, stationCateLog: 1,
lfsalay: [2, 5, 10, 15, 20, 25, 30, 50], lfsalay: [2000, 5000, 10000, 15000, 20000, 25000, 30000, 50000],
risalay: JSON.parse(JSON.stringify(salay)), risalay: JSON.parse(JSON.stringify(salay)),
areaText: '', areaText: '',
educationText: '', educationText: '',
@@ -614,10 +614,10 @@ function changeSalay() {
title: '薪资', title: '薪资',
maskClick: true, maskClick: true,
data: [state.lfsalay, state.risalay], data: [state.lfsalay, state.risalay],
unit: 'k', unit: '',
success: (_, [min, max]) => { success: (_, [min, max]) => {
fromValue.salaryMin = min.value * 1000; fromValue.salaryMin = min.value;
fromValue.salaryMax = max.value * 1000; fromValue.salaryMax = max.value;
state.salayText = `${fromValue.salaryMin}-${fromValue.salaryMax}`; state.salayText = `${fromValue.salaryMin}-${fromValue.salaryMax}`;
}, },
change(e) { change(e) {

View File

@@ -75,15 +75,15 @@
<!-- H5端专用按钮 --> <!-- H5端专用按钮 -->
<!-- #ifdef H5 --> <!-- #ifdef H5 -->
<view class="h5-action-buttons" v-if="shouldShowJobSeekerContent"> <view class="h5-action-buttons" v-if="shouldShowJobSeekerContent">
<view class="h5-action-btn press-button" @click="handleH5SalaryClick"> <!-- <view class="h5-action-btn press-button" @click="handleH5SalaryClick">
<view class="btn-text">薪酬信息</view> <view class="btn-text">薪酬信息</view>
</view> </view> -->
<view class="h5-action-btn press-button" @click="handleServiceClick('resume-creation')"> <view class="h5-action-btn press-button" @click="handelGoResumeGuide()">
<view class="btn-text">简历指导</view> <view class="btn-text">简历指导</view>
</view> </view>
</view> </view>
<!-- #endif --> <!-- #endif -->
<!-- 服务功能网格 --> <!-- 服务功能网格 -->
<!-- #ifndef H5 --> <!-- #ifndef H5 -->
<view class="service-grid" v-if="shouldShowJobSeekerContent"> <view class="service-grid" v-if="shouldShowJobSeekerContent">
@@ -148,12 +148,12 @@
</view> </view>
<view class="service-title">职业规划推荐</view> <view class="service-title">职业规划推荐</view>
</view> </view>
<view class="service-item press-button" @click="handleSalaryInfoClick"> <!-- <view class="service-item press-button" @click="handleSalaryInfoClick">
<view class="service-icon service-icon-12"> <view class="service-icon service-icon-12">
<span style="display:block;width:40rpx;height:40rpx;border-radius:100%;border:4rpx #ffffff solid;line-height:40rpx;text-align:center;"></span> <span style="display:block;width:40rpx;height:40rpx;border-radius:100%;border:4rpx #ffffff solid;line-height:40rpx;text-align:center;"></span>
</view> </view>
<view class="service-title">薪酬信息</view> <view class="service-title">薪酬信息</view>
</view> </view> -->
<view class="service-item press-button" @click="handleJobFairClick"> <view class="service-item press-button" @click="handleJobFairClick">
<view class="service-icon service-icon-1"> <view class="service-icon service-icon-1">
<uni-icons type="shop" size="32" color="#FFFFFF"></uni-icons> <uni-icons type="shop" size="32" color="#FFFFFF"></uni-icons>
@@ -166,6 +166,25 @@
</view> </view>
<view class="service-title">帮扶</view> <view class="service-title">帮扶</view>
</view> </view>
<view class="service-item press-button" @click="handleNoticeClick">
<view class="service-icon service-icon-10">
<uni-icons type="sound" size="32" color="#FFFFFF"></uni-icons>
</view>
<view class="service-title">培训评价公告</view>
</view>
<view class="service-item press-button" @click="handleInstitutionClick('training')">
<view class="service-icon service-icon-6">
<uni-icons type="map-pin-ellipse" size="32" color="#FFFFFF"></uni-icons>
<!-- <image class="service-icon-img" src="/static/icon/pxjgxx.png" mode="aspectFit"></image> -->
</view>
<view class="service-title">培训机构信息</view>
</view>
<view class="service-item press-button" @click="handleInstitutionClick('evaluate')">
<view class="service-icon service-icon-7">
<IconfontIcon name="suzhicepingtiku" :size="48" color="#FFFFFF" />
</view>
<view class="service-title">评价机构信息</view>
</view>
</view> </view>
<!-- #endif --> <!-- #endif -->
</view> </view>
@@ -590,6 +609,14 @@ const wxAuthLoginRef = ref(null);
const state = reactive({ const state = reactive({
tabIndex: 'all', tabIndex: 'all',
}); });
//帮扶模块跳转
const helpClick = () => {
navTo('/packageB/priority/helpFilter');
};
//招聘会模块跳转
const handleJobFairClick = () => {
navTo('/pages/careerfair/careerfair');
};
const list = ref([]); const list = ref([]);
const pageState = reactive({ const pageState = reactive({
page: 0, page: 0,
@@ -609,12 +636,13 @@ const rangeOptions = ref([
{ value: 1, text: '最热' }, { value: 1, text: '最热' },
{ value: 2, text: '最新发布' }, { value: 2, text: '最新发布' },
{ value: 3, text: '疆外' }, { value: 3, text: '疆外' },
{ value: 4, text: '零工市场' }
]); ]);
const isLoaded = ref(false); const isLoaded = ref(false);
const isInitialized = ref(false); // 添加初始化标志 const isInitialized = ref(false); // 添加初始化标志
const { columnCount, columnSpace } = useColumnCount(() => { const { columnCount, columnSpace } = useColumnCount(() => {
pageState.pageSize = 10 * (columnCount.value - 1); pageState.pageSize = 10 * (columnCount.value - 1) + 10;
// 只在首次初始化时调用,避免重复调用 // 只在首次初始化时调用,避免重复调用
if (!isInitialized.value) { if (!isInitialized.value) {
@@ -679,6 +707,7 @@ const goToCompanyInfo = () => {
navTo('/pages/mine/company-info'); navTo('/pages/mine/company-info');
}; };
// 组件初始化时加载数据 // 组件初始化时加载数据
onMounted(() => { onMounted(() => {
// 获取企业信息 // 获取企业信息
@@ -746,21 +775,63 @@ const handleLoginSuccess = () => {
//四级联动单点及权限 //四级联动单点及权限
getIsFourLevelLinkagePurview() getIsFourLevelLinkagePurview()
}; };
// H5环境下从URL获取token并自动登录
onLoad(() => {
// #ifdef H5
const token = uni.getStorageSync('zkr-token');
if (token) {
useUserStore().loginSetToken(token);
}
// #endif
});
// 处理附近工作点击 // 处理附近工作点击
const handleNearbyClick = () => { const handleNearbyClick = (options ) => {
// #ifdef MP-WEIXIN
if (checkLogin()) { if (checkLogin()) {
navTo('/pages/nearby/nearby'); navTo('/pages/nearby/nearby');
} }
// #endif
// #ifdef H5
const token = options.token || uni.getStorageSync('zkr-token');
if (token) {
navTo('/pages/nearby/nearby');
}
// #endif
}; };
const handleNoticeClick = () =>{
uni.navigateTo({
url:'/packageB/notice/index'
})
}
function handleInstitutionClick(type){
if(type=='evaluate'){
uni.navigateTo({
url:'/packageB/institution/evaluationAgency'
})
}else if (type=='training'){
uni.navigateTo({
url:'/packageB/institution/trainingInstitution'
})
}
}
// 处理服务功能点击 // 处理服务功能点击
const handleServiceClick = (serviceType) => { const handleServiceClick = (serviceType) => {
if (checkLogin()) { if (checkLogin()) {
navToService(serviceType); navToService(serviceType);
} }
}; };
// H5的简历指导跳转
const handelGoResumeGuide = () => {
const token = uni.getStorageSync('zkr-token');
// myToken.value = token;
if (token) {
// navTo()
navTo('/pages/resume-guide/resume-guide');
}
}
// 处理直播按钮点击 // 处理直播按钮点击
const handleLiveClick = () => { const handleLiveClick = () => {
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
@@ -794,17 +865,12 @@ const handleLiveClick = () => {
const handleSalaryInfoClick = () => { const handleSalaryInfoClick = () => {
navTo('/pages/service/salary-info'); navTo('/pages/service/salary-info');
}; };
const handleJobFairClick = () => {
navTo('/pages/careerfair/careerfair');
};
const handleH5SalaryClick = () => { const handleH5SalaryClick = () => {
const salaryUrl = "https://www.mohrss.gov.cn/SYrlzyhshbzb/laodongguanxi_/fwyd/202506/t20250627_544623.html"; const salaryUrl = "https://www.mohrss.gov.cn/SYrlzyhshbzb/laodongguanxi_/fwyd/202506/t20250627_544623.html";
window.location.assign(salaryUrl); window.location.assign(salaryUrl);
}; };
// 处理帮扶
const helpClick = () => {
navTo('/packageB/priority/helpFilter');
};
async function loadData() { async function loadData() {
try { try {
if (isLoaded.value) return; if (isLoaded.value) return;
@@ -878,15 +944,7 @@ function clearfindJob(job) {
} }
function nextDetail(job) { function nextDetail(job) {
// 登录检查 navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}`);
if (checkLogin()) {
// 记录岗位类型,用作数据分析
if (job.jobCategory) {
const recordData = recommedIndexDb.JobParameter(job);
recommedIndexDb.addRecord(recordData);
}
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}`);
}
} }
function navToService(serviceType) { function navToService(serviceType) {
@@ -982,6 +1040,12 @@ function handelHostestSearch(val) {
isShowJw.value = val.value; isShowJw.value = val.value;
pageState.search.order = val.value; pageState.search.order = val.value;
pageState.search.jobType = val.value === 3 ? 1 : 0; pageState.search.jobType = val.value === 3 ? 1 : 0;
if(val.value === 4) {
pageState.search.type = 4;
} else {
delete pageState.search.type;
}
if (state.tabIndex === 'all') { if (state.tabIndex === 'all') {
getJobRecommend('refresh'); getJobRecommend('refresh');
} else { } else {
@@ -996,12 +1060,16 @@ function getJobRecommend(type = 'add') {
if (waterfallsFlowRef.value) waterfallsFlowRef.value.refresh(); if (waterfallsFlowRef.value) waterfallsFlowRef.value.refresh();
} }
let params = { let params = {
pageSize: pageState.pageSize, pageSize: pageState.pageSize + 10,
sessionId: useUserStore().seesionId, sessionId: useUserStore().seesionId,
...pageState.search, ...pageState.search,
...conditionSearch.value, ...conditionSearch.value,
isPublish: 1, isPublish: 1,
}; };
// 当选中零工市场(4)或疆外(3)时order参数传递0
if (pageState.search.order === 3 || pageState.search.order === 4) {
params.order = 0;
}
// 优先从store获取如果为空则从缓存获取 // 优先从store获取如果为空则从缓存获取
const storeIsCompanyUser = userInfo.value?.isCompanyUser; const storeIsCompanyUser = userInfo.value?.isCompanyUser;
const cachedUserInfo = uni.getStorageSync('userInfo') || {}; const cachedUserInfo = uni.getStorageSync('userInfo') || {};
@@ -1080,11 +1148,15 @@ function getJobList(type = 'add') {
...pageState.search, ...pageState.search,
// ...conditionSearch.value, // ...conditionSearch.value,
}; };
// 当选中零工市场(4)或疆外(3)时order参数传递0
if (pageState.search.order === 3 || pageState.search.order === 4) {
params.order = 0;
}
$api.createRequest('/app/job/list', params).then((resData) => { $api.createRequest('/app/job/list', params).then((resData) => {
const { rows, total } = resData; const { rows, total } = resData;
if (type === 'add') { if (type === 'add') {
const str = pageState.pageSize * (pageState.page - 1); const str = pageState.pageSize * (pageState.page - 1) + 10;
const end = list.value.length; const end = list.value.length;
const reslist = dataToImg(rows); const reslist = dataToImg(rows);
list.value.splice(str, end, ...reslist); list.value.splice(str, end, ...reslist);
@@ -1667,8 +1739,8 @@ defineExpose({ loadData });
font-weight: 400; font-weight: 400;
font-size: 32rpx; font-size: 32rpx;
color: #666D7F; color: #666D7F;
margin-right: 24rpx margin-right: 8rpx
padding: 0rpx 16rpx padding: 0rpx 6rpx
.active .active
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: 32rpx;

View File

@@ -19,10 +19,11 @@ import IndexOne from './components/index-one.vue';
// import IndexTwo from './components/index-two.vue'; // import IndexTwo from './components/index-two.vue';
import { storeToRefs } from 'pinia'; import { storeToRefs } from 'pinia';
import { useReadMsg } from '@/stores/useReadMsg'; import { useReadMsg } from '@/stores/useReadMsg';
import useUserStore from '@/stores/useUserStore';
import { tabbarManager } from '@/utils/tabbarManager'; import { tabbarManager } from '@/utils/tabbarManager';
const { unreadCount } = storeToRefs(useReadMsg()); const { unreadCount } = storeToRefs(useReadMsg());
const userStore = useUserStore();
onLoad(() => { onLoad((options) => {
// useReadMsg().fetchMessages(); // useReadMsg().fetchMessages();
}); });

View File

@@ -194,7 +194,7 @@ const handleLogin = async () => {
icon: 'success' icon: 'success'
}) })
// window.location.assign('http://222.80.110.161:11111/mechine-dual-vue/login') // window.location.assign('http://222.80.110.161:11111/mechine-dual-vue/login')
window.location.assign('https://www.xjksly.cn/mechine-single-vue/login') // window.location.assign('https://www.xjksly.cn/mechine-single-vue/login')
// // 跳转到首页 // // 跳转到首页
// uni.reLaunch({ // uni.reLaunch({
// url: '/pages/index/index' // url: '/pages/index/index'

View File

@@ -5,7 +5,7 @@
<view class="avatar-label">编辑信息</view> <view class="avatar-label">编辑信息</view>
<view class="avatar-container"> <view class="avatar-container">
<image class="company-avatar" :src="companyInfo.avatar || '/static/imgs/avatar.jpg'"></image> <image class="company-avatar" :src="companyInfo.avatar || '/static/imgs/avatar.jpg'"></image>
<uni-icons color="#A2A2A2" type="right" size="16"></uni-icons> <!-- <uni-icons color="#A2A2A2" type="right" size="16"></uni-icons> -->
</view> </view>
</view> </view>
@@ -15,7 +15,7 @@
<view class="info-label">企业名称</view> <view class="info-label">企业名称</view>
<view class="info-content"> <view class="info-content">
<text class="info-value">{{ companyInfo.name || '暂无公司名称' }}</text> <text class="info-value">{{ companyInfo.name || '暂无公司名称' }}</text>
<uni-icons color="#A2A2A2" type="right" size="16"></uni-icons> <!-- <uni-icons color="#A2A2A2" type="right" size="16"></uni-icons> -->
</view> </view>
</view> </view>
@@ -23,7 +23,7 @@
<view class="info-label">统一社会代码</view> <view class="info-label">统一社会代码</view>
<view class="info-content"> <view class="info-content">
<text class="info-value">{{ companyInfo.socialCode || '暂无统一社会代码' }}</text> <text class="info-value">{{ companyInfo.socialCode || '暂无统一社会代码' }}</text>
<uni-icons color="#A2A2A2" type="right" size="16"></uni-icons> <!-- <uni-icons color="#A2A2A2" type="right" size="16"></uni-icons> -->
</view> </view>
</view> </view>
@@ -31,7 +31,7 @@
<view class="info-label">企业注册地点</view> <view class="info-label">企业注册地点</view>
<view class="info-content"> <view class="info-content">
<text class="info-value">{{ companyInfo.location || '暂无注册地点' }}</text> <text class="info-value">{{ companyInfo.location || '暂无注册地点' }}</text>
<uni-icons color="#A2A2A2" type="right" size="16"></uni-icons> <!-- <uni-icons color="#A2A2A2" type="right" size="16"></uni-icons> -->
</view> </view>
</view> </view>
@@ -39,7 +39,7 @@
<view class="info-label">企业信息介绍</view> <view class="info-label">企业信息介绍</view>
<view class="info-content"> <view class="info-content">
<text class="info-value">{{ companyInfo.description || '暂无企业介绍' }}</text> <text class="info-value">{{ companyInfo.description || '暂无企业介绍' }}</text>
<uni-icons color="#A2A2A2" type="right" size="16"></uni-icons> <!-- <uni-icons color="#A2A2A2" type="right" size="16"></uni-icons> -->
</view> </view>
</view> </view>
@@ -47,7 +47,7 @@
<view class="info-label">企业法人姓名</view> <view class="info-label">企业法人姓名</view>
<view class="info-content"> <view class="info-content">
<text class="info-value">{{ companyInfo.legalPerson || '暂无法人信息' }}</text> <text class="info-value">{{ companyInfo.legalPerson || '暂无法人信息' }}</text>
<uni-icons color="#A2A2A2" type="right" size="16"></uni-icons> <!-- <uni-icons color="#A2A2A2" type="right" size="16"></uni-icons> -->
</view> </view>
</view> </view>

View File

@@ -49,9 +49,11 @@
<!-- 行动按钮 --> <!-- 行动按钮 -->
<view class="action-buttons"> <view class="action-buttons">
<!-- #ifdef MP-WEIXIN -->
<view class="primary-button button-click" @click="startCreateResume"> <view class="primary-button button-click" @click="startCreateResume">
开始制作简历 开始制作简历
</view> </view>
<!-- #endif -->
<view class="secondary-button button-click" @click="viewExampleResume"> <view class="secondary-button button-click" @click="viewExampleResume">
查看简历示例 查看简历示例
</view> </view>

BIN
static/icon/pxjgxx.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 942 B

BIN
static/icon/pxpjjg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
static/icon/pxxxcj.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB