118 Commits

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
992fc65020 Merge branch 'main' into yxl 2026-01-13 23:44:42 +08:00
17366c05ee = 职业规划推荐 2026-01-13 23:31:04 +08:00
francis_fh
0d4e8990e5 一体机首页滑动问题解决 2026-01-13 22:55:31 +08:00
xuchao
5e29a47c19 添加内网用户登录 2026-01-13 18:04:24 +08:00
xuchao
c200dc924b fix:招聘会报名、简历投递按钮闪烁问题修复 2026-01-13 13:45:08 +08:00
xuchao
9d37f3a22a 简历投递添加loading 2026-01-12 19:02:11 +08:00
xuchao
9315d0c371 报名招聘会添加loading状态 2026-01-12 17:32:06 +08:00
xuchao
d7d8ed4e49 企业用户我的招聘会列表添加查看简历弹窗 2026-01-12 17:31:19 +08:00
xuchao
cc3f84196c 企业报名招聘会逻辑更改 2026-01-12 12:21:24 +08:00
xuchao
4cf06bb1d1 补充提交 2026-01-10 20:35:34 +08:00
xuchao
e6c6d4fa23 四级帮扶所属区域数据加载方式更改 2026-01-10 20:18:09 +08:00
xuchao
43fb1550e4 招聘会详情 2026-01-09 18:59:39 +08:00
lip
8aec595f6f 修改政策展示问题 2026-01-09 15:27:43 +08:00
xuchao
09a7fb2c13 我的招聘会详情添加展区展位名、签到签退码字段 2026-01-08 16:58:44 +08:00
francis_fh
934f082de4 岗位类型改为岗位标签,字段改为传文字。 2026-01-05 16:38:20 +08:00
francis_fh
2b9663db53 退出登录 首页点击无反修改,发布岗位增加岗位类型 2026-01-05 00:21:24 +08:00
francis_fh
2ab6253fad 11 2025-12-24 20:36:03 +08:00
xuchao
b07d56801b 招聘会页面优化 2025-12-24 17:47:32 +08:00
xuchao
8438946789 企业用户添加招聘会入口 2025-12-24 17:30:35 +08:00
xuchao
74ff0b5238 fix:四级帮扶所属区域条件查询异常 2025-12-24 17:07:01 +08:00
98677bf997 Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service 2025-12-24 10:04:09 +08:00
d566d55bc6 修改功能 2025-12-24 10:04:07 +08:00
xuchao
42e401ef7a 企业用户我的招聘会详情去除查看按钮 2025-12-23 18:35:13 +08:00
d65b8e4bff Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service 2025-12-23 17:47:24 +08:00
8a409b45fe 修改功能 2025-12-23 17:47:22 +08:00
xuchao
e465224773 企业招聘会报名时添加校研 2025-12-23 17:01:14 +08:00
xuchao
84f29ab03e 退出登录后去除Padmin-Token 2025-12-23 13:03:17 +08:00
xuchao
1da5df831c 未登录状态添加招聘会详情跳转 2025-12-23 12:40:12 +08:00
16389e2a7e Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service 2025-12-22 16:00:26 +08:00
f33dde36a4 默认一个dwuserId 2025-12-22 16:00:23 +08:00
6d97f65d7e 增加个人中心素质测评和面试入口,修复面试名称问题 2025-12-22 15:52:53 +08:00
francis_fh
993c22a7f1 Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service 2025-12-22 12:14:29 +08:00
francis_fh
7cb1ce777e ai页面审核问题修改 2025-12-22 12:14:27 +08:00
06f9d3a484 Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service 2025-12-20 13:40:43 +08:00
090366191e 改api:http://222.80.110.161:11111 2025-12-20 13:40:37 +08:00
xuchao
8f119607f2 线下招聘会岗位列表回显 2025-12-19 19:26:32 +08:00
lip
96b8cd5e08 同意修改地址 2025-12-19 18:41:17 +08:00
francis_fh
2b03a8fb17 标题名称修改 2025-12-19 18:26:09 +08:00
francis_fh
523fee1dec 简历详情页面开发 2025-12-19 17:57:36 +08:00
francis_fh
f6b5144daa 申请人列表接口对接 2025-12-19 15:58:25 +08:00
francis_fh
19e1aab840 Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service 2025-12-19 11:21:32 +08:00
francis_fh
3cf0a7d7f5 分页提交 2025-12-19 11:21:30 +08:00
sh
872b68b0f2 修改首页企业岗位分页查询问题 2025-12-19 10:53:57 +08:00
francis_fh
0028c81d7d 11 2025-12-19 10:19:34 +08:00
francis_fh
8d150c7b88 111 2025-12-18 20:41:29 +08:00
francis_fh
94d6caee7f Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service 2025-12-18 19:47:15 +08:00
francis_fh
22d96430d6 漏洞测试 修复 2025-12-18 19:47:13 +08:00
hanguangpu01
38313ee63b 123 2025-12-18 18:02:26 +08:00
xuchao
4e5fa2a39b 四级联动 帮扶单点入参修改 2025-12-18 17:28:27 +08:00
xuchao
dcd6741b37 帮扶智能推荐 2025-12-18 11:46:39 +08:00
sh
ea21fc68a4 修改11111改为80 2025-12-17 11:24:44 +08:00
d6dc210084 Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service 2025-12-16 17:53:21 +08:00
c666b90961 屏蔽退出功能 2025-12-16 17:53:19 +08:00
xuchao
65795492b3 跟进帮扶历史记录接口传参调整 2025-12-16 17:52:49 +08:00
4ef77b2251 网格员账号登录跳转 2025-12-16 17:40:00 +08:00
4fbd32156d 帮扶token修改 2025-12-16 08:59:13 +08:00
xuchao
6d912df3ef 首页帮扶入口添加权限控制 及单点token存储 2025-12-15 18:14:10 +08:00
a88b3a84eb 帮扶 2025-12-15 16:27:23 +08:00
sh
2b0a0993c2 修改互联网端访问的接口 2025-12-12 13:35:22 +08:00
sh
2de7ea4ac9 修改端口 2025-12-12 13:34:50 +08:00
sh
e14be76ac8 修改161:11111改为161:80 2025-12-12 13:32:55 +08:00
xuchao
949caf5589 技能培训添加自动播放上次播放进度功能、首页招聘会入口更改 2025-12-12 12:00:49 +08:00
xuchao
844ff8c582 fix:培训视频播放时长接口调用异常导致重复添加同一组数据bug 2025-12-10 18:45:43 +08:00
francis_fh
f5bd523985 Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service 2025-12-09 17:53:46 +08:00
francis_fh
be47e94196 H5端显示三列岗位列表 2025-12-09 17:53:45 +08:00
hanguangpu01
99aea9e243 feat(careerfair): 优化招聘会页面加载逻辑
- 异步加载招聘会数据
- 移除调试代码
- 简化登录状态检查逻辑
- 优化 exhibitors 页面跳转条件判断
- 移除冗余的登录提示信息
2025-12-09 17:48:07 +08:00
francis_fh
aa4b185aa2 优化展示 2025-12-09 16:24:41 +08:00
francis_fh
92c6488d18 字典映射修改 2025-12-09 16:23:32 +08:00
francis_fh
f1c8d0457b 111 2025-12-09 16:16:21 +08:00
francis_fh
5378031a58 设置密码 2025-12-08 21:54:30 +08:00
francis_fh
d2f61bcc45 岗位对比修改 2025-12-08 21:38:38 +08:00
francis_fh
d79d79f750 111 2025-12-08 21:31:18 +08:00
francis_fh
40127060b8 Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service 2025-12-08 21:20:34 +08:00
francis_fh
16d1e50c85 bug修复 2025-12-08 21:20:33 +08:00
hanguangpu01
6006f5cd28 feat(auth): 实现第三方登录集成
- 在 careerfair.vue 中新增 thirdLogin 方法处理单点登录逻辑
- 修改 goDetail 方法,在跳转前执行第三方登录验证
- 在 packageB/train/index.vue 中增加 onLoad 钩子调用 thirdLogin
- 修改 jumps 方法,确保页面跳转前完成登录验证
- 在 request.js 中注释掉全局错误提示,避免重复提示
- 优化 videoDetail.vue 中的 getHeart 方法,移除冗余跳转逻辑
- 在 videoList.vue 中新增 playVideo 前的登录校验
- 统一多个页面中的 thirdLogin 实现,确保登录态一致性
2025-12-08 21:17:05 +08:00
d78382ba08 Merge remote-tracking branch 'origin/main' into CareerMap 2025-12-08 20:24:39 +08:00
a74cdcc850 Fix career map missing info redirect flow 2025-12-08 20:22:40 +08:00
99 changed files with 4943 additions and 1164 deletions

View File

@@ -16,17 +16,19 @@ export function getJobPathPage(params) {
// 根据职业路径ID获取详情
export function getJobPathDetail(params) {
const {startJobId, endJobId} = params;
const requestParams = {};
if (params?.jobPathId !== undefined && params?.jobPathId !== null && params?.jobPathId !== '') {
requestParams.id = params.jobPathId;
} else if (params?.id !== undefined && params?.id !== null && params?.id !== '') {
requestParams.id = params.id;
if (startJobId !== undefined && startJobId !== null && startJobId !== '') {
requestParams.startJobId = startJobId;
}
if (!requestParams.id) {
return Promise.reject('缺少必需的 id 参数');
if (endJobId !== undefined && endJobId !== null && endJobId !== '') {
requestParams.endJobId = endJobId;
}
if (!startJobId || !endJobId) {
return Promise.reject('缺少必需的 startJobId 和 endJobId 参数');
}
return request({
url: '/jobPath/getJobPathById',
method: 'get',

View File

@@ -1,7 +1,7 @@
/*
* @Date: 2025-10-31 11:06:15
* @LastEditors: shirlwang
* @LastEditTime: 2025-11-03 15:51:28
* @LastEditTime: 2025-12-16 16:29:33
*/
import request from '@/utilsRc/request'
@@ -13,6 +13,14 @@ export function login(data) {
params: data,
})
}
// 登录方法
export function loginByUserId(data) {
return request({
method: 'get',
url: '/ksSso/getTjmhTokenById?userId='+data,
// params: data,
})
}
export function smsLogin(data) {
return request({
method: 'post',

View File

@@ -1,7 +1,7 @@
/*
* @Date: 2024-09-25 11:14:29
* @LastEditors: shirlwang
* @LastEditTime: 2025-11-04 08:56:59
* @LastEditTime: 2025-12-23 17:40:11
*/
import request from '@/utilsRc/request'
@@ -17,7 +17,7 @@ export function listJobRecommend(query) {
export function getWorkListReq(query) {
return request({
// url: '/personnel/personBaseInfo/postRecommend',
url: '/company/unitPostInfo/postElectedList',
url: '/manage/info/postElectedList',
method: 'get',
params: query
})
@@ -43,7 +43,7 @@ export function addJobRecommend(data) {
//岗位推荐保存和办结
export function saveJobRecommend(data) {
return request({
url: '/process/processJobRecommend/create',
url: '/process/processJobRecommend/createJob',
method: 'post',
data: data
})
@@ -70,7 +70,7 @@ export function delJobRecommend(ids) {
export function getAddedJobs(params) {
return request({
// url: '/company/postDeliverInfo/list',
url: '/company/unitPostInfo/no/permission/list',
url: '/manage/info/no/permission/list',
method: 'get',
params,
})

View File

@@ -1,14 +1,14 @@
/*
* @Date: 2025-01-XX
* @LastEditors:
* @LastEditTime:
* @LastEditors: shirlwang
* @LastEditTime: 2025-12-16 16:35:06
*/
import request from '@/utilsRc/request'
// 获取用户信息(职业规划推荐用)
export function appUserInfo() {
return request({
fullUrl: 'http://222.80.110.161:11111/api/ks/app/user/appUserInfo',
fullUrl: 'https://www.xjksly.cn/api/ks/app/user/appUserInfo',
method: 'get'
})
}

View File

@@ -51,7 +51,7 @@ const prePage = () => {
}
// export const urls ='http://10.110.145.145/images/train/'
export const urls ='http://222.80.110.161:11111/images/train/'
export const urls ='https://www.xjksly.cn/images/train/'
/**
* 页面跳转封装,支持 query 参数传递和返回回调
@@ -61,74 +61,74 @@ export const urls ='http://222.80.110.161:11111/images/train/'
* @param {object} options.query - 携带参数
* @param {function} options.onBack - 页面返回时的回调(目标页调用 uni.navigateBack 时传递数据)
*/
export const navTo = function(url, {
needLogin = false,
query = {},
onBack = null
} = {}) {
const userStore = useUserStore();
if (needLogin && !userStore.hasLogin) {
const pages = getCurrentPages();
if (pages.length >= 10) {
uni.redirectTo({
url: '/pages/complete-info/complete-info',
fail: (err) => {
console.error('页面跳转失败:', err);
}
});
} else {
uni.navigateTo({
url: '/pages/complete-info/complete-info',
fail: (err) => {
console.error('页面跳转失败:', err);
uni.redirectTo({
url: '/pages/complete-info/complete-info',
fail: (err2) => {
console.error('redirectTo也失败:', err2);
}
});
}
});
}
return;
}
const queryStr = Object.entries(query)
.map(([key, val]) => `${key}=${encodeURIComponent(val)}`)
.join('&');
const finalUrl = queryStr ? `${url}?${queryStr}` : url;
if (onBack) {
const pages = getCurrentPages();
const currentPage = pages[pages.length - 1];
currentPage.__onBackCallback__ = onBack;
}
const pages = getCurrentPages();
if (pages.length >= 10) {
// 页面栈已满使用redirectTo替代
uni.redirectTo({
url: finalUrl,
fail: (err) => {
console.error('页面跳转失败:', err);
}
});
} else {
uni.navigateTo({
url: finalUrl,
fail: (err) => {
console.error('页面跳转失败:', err);
// 失败后尝试redirectTo
uni.redirectTo({
url: finalUrl,
fail: (err2) => {
console.error('redirectTo也失败:', err2);
}
});
}
});
}
export const navTo = function(url, {
needLogin = false,
query = {},
onBack = null
} = {}) {
const userStore = useUserStore();
if (needLogin && !userStore.hasLogin) {
const pages = getCurrentPages();
if (pages.length >= 10) {
uni.redirectTo({
url: '/pages/complete-info/complete-info',
fail: (err) => {
console.error('页面跳转失败:', err);
}
});
} else {
uni.navigateTo({
url: '/pages/complete-info/complete-info',
fail: (err) => {
console.error('页面跳转失败:', err);
uni.redirectTo({
url: '/pages/complete-info/complete-info',
fail: (err2) => {
console.error('redirectTo也失败:', err2);
}
});
}
});
}
return;
}
const queryStr = Object.entries(query)
.map(([key, val]) => `${key}=${encodeURIComponent(val)}`)
.join('&');
const finalUrl = queryStr ? `${url}?${queryStr}` : url;
if (onBack) {
const pages = getCurrentPages();
const currentPage = pages[pages.length - 1];
currentPage.__onBackCallback__ = onBack;
}
const pages = getCurrentPages();
if (pages.length >= 10) {
// 页面栈已满使用redirectTo替代
uni.redirectTo({
url: finalUrl,
fail: (err) => {
console.error('页面跳转失败:', err);
}
});
} else {
uni.navigateTo({
url: finalUrl,
fail: (err) => {
console.error('页面跳转失败:', err);
// 失败后尝试redirectTo
uni.redirectTo({
url: finalUrl,
fail: (err2) => {
console.error('redirectTo也失败:', err2);
}
});
}
});
}
};
export const navBack = function({

View File

@@ -114,18 +114,28 @@ const generateTabbarList = () => {
// 求职者用户(包括未登录状态):显示招聘会
// H5端隐藏招聘会
// #ifndef H5
baseItems.splice(1, 0, {
id: 1,
text: '招聘会',
path: '/pages/careerfair/careerfair',
iconPath: '/static/tabbar/post.png',
selectedIconPath: '/static/tabbar/posted.png',
centerItem: false,
badge: readMsg.badges[1]?.count || 0,
});
// baseItems.splice(1, 0, {
// id: 1,
// text: '招聘会',
// path: '/pages/careerfair/careerfair',
// iconPath: '/static/tabbar/post.png',
// selectedIconPath: '/static/tabbar/posted.png',
// centerItem: false,
// badge: readMsg.badges[1]?.count || 0,
// });
// #endif
}
if (userType === 0) {
baseItems.splice(2, 0, {
id: 5,
text: '招聘会',
path: '/pages/careerfair/careerfair',
iconPath: '/static/tabbar/careerfair.png',
selectedIconPath: '/static/tabbar/careerfaired.png',
centerItem: false,
badge: 0,
});
}
return baseItems;
};

View File

@@ -274,7 +274,22 @@
$api.myRequest("/jobfair/public/job-info/list", data, "GET", 9100, {
Authorization: `Bearer ${uni.getStorageSync("Padmin-Token")}`
}).then((resData) => {
jobList.value = resData.data.list || [];
if(resData.code == 200){
jobList.value = resData.data.list || [];
// let isPublishJobList = resData.data.list || [];
// jobList.value = isPublishJobList.filter(job => job.isPublish === "1");
// if (isPublishJobList.length > 0 && jobList.value.length === 0) {
// uni.showToast({
// title: '请等待岗位审核通过后,再进行报名',
// icon: 'none'
// });
// }
}else{
uni.showToast({
title: '请前往基本信息中完善企业信息和岗位信息',
icon: 'none'
});
}
});
});
};

View File

@@ -195,7 +195,8 @@ defineExpose({
<style lang="scss" scoped>
.popup-content {
color: #000000;
height: 80vh;
height: 84vh;
position: relative;
}
.popup-bottom {
padding: 40rpx 28rpx 20rpx 28rpx;

View File

@@ -11,7 +11,6 @@
<view class="auth-header">
<image class="auth-logo" src="@/static/logo2-S.png" mode="aspectFit"></image>
<view class="auth-title">欢迎使用就业服务</view>
<view class="auth-subtitle">需要您授权手机号登录</view>
</view>
<!-- 角色选择 -->
@@ -26,7 +25,7 @@
<view class="role-icon">
<uni-icons type="person" size="32" :color="userType === 1 ? '#256BFA' : '#999'"></uni-icons>
</view>
<view class="role-text">我是求职者</view>
<view class="role-text">个人</view>
</view>
<view
class="role-item"
@@ -36,7 +35,7 @@
<view class="role-icon">
<uni-icons type="shop" size="32" :color="userType === 0 ? '#256BFA' : '#999'"></uni-icons>
</view>
<view class="role-text">我是招聘者</view>
<view class="role-text">单位</view>
</view>
</view>
</view>
@@ -67,7 +66,7 @@
@getphonenumber="getPhoneNumber"
>
<uni-icons type="phone" size="20" color="#FFFFFF"></uni-icons>
<text>微信授权登录</text>
<text>手机号快捷登录</text>
</button>
<!-- #endif -->
@@ -75,7 +74,7 @@
<!-- #ifndef MP-WEIXIN -->
<button class="auth-btn primary" @click="wxLogin">
<uni-icons type="phone" size="20" color="#FFFFFF"></uni-icons>
<text>微信授权登录</text>
<text>手机号快捷登录</text>
</button>
<!-- #endif -->
@@ -88,12 +87,12 @@
</view>
<!-- 用户协议 -->
<view class="auth-agreement">
<!-- <view class="auth-agreement">
<text>登录即表示同意</text>
<text class="link" @click="openAgreement('user')">用户协议</text>
<text></text>
<text class="link" @click="openAgreement('privacy')">隐私政策</text>
</view>
</view> -->
</view>
</view>
</uni-popup>
@@ -139,13 +138,15 @@ const validateRole = () => {
const getPhoneNumber = (e) => {
console.log('获取手机号:', e);
console.log('userType.value', userType.value)
// 验证角色是否已选择
if (!validateRole()) {
return;
}
if (e.detail.errMsg === 'getPhoneNumber:ok') {
if (userType.value === null) {
$api.msg('请先选择您的角色');
return true;
}
uni.login({
provider: 'weixin',
success: (loginRes) => {

View File

@@ -1,16 +1,23 @@
/*
* @Descripttion:
* @Author: lip
* @Date: 2025-12-04 13:40:08
* @LastEditors: lip
*/
export default {
// baseUrl: 'http://39.98.44.136:8080', // 测试
baseUrl: 'http://222.80.110.161:11111/api/ks', // 测试
baseUrl: 'https://www.xjksly.cn/api/ks', // 测试
// baseUrl: 'https://www.xjksly.cn/api/ks', // 测试
// baseUrl: 'http://ks.zhaopinzao8dian.com/api/ks', // 测试
// LCBaseUrl:'http://10.110.145.145:9100',//内网端口
// LCBaseUrlInner:'http://10.110.145.145:10100',//招聘、培训、帮扶
// imgBaseUrl:'http://10.110.145.145/images', //图片基础url
// trainVideoImgUrl:'http://10.110.145.145:9100/file/file/minio',
LCBaseUrl:'http://222.80.110.161:11111/prod-api',//内网端口
LCBaseUrlInner:'http://222.80.110.161:11111/prod-psout-api',//招聘、培训、帮扶
imgBaseUrl:'http://222.80.110.161:11111/images', //图片基础url
trainVideoImgUrl:'http://222.80.110.161:11111/prod-api/file/file/minio',
LCBaseUrl:'https://www.xjksly.cn/prod-api',//内网端口
LCBaseUrlInner:'https://www.xjksly.cn/prod-psout-api',//招聘、培训、帮扶
imgBaseUrl:'https://www.xjksly.cn/images', //图片基础url
trainVideoImgUrl:'https://www.xjksly.cn/prod-api/file/file/minio',
// sseAI+
// StreamBaseURl: 'http://39.98.44.136:8000',
StreamBaseURl: 'https://qd.zhaopinzao8dian.com/ai',
@@ -29,7 +36,7 @@ export default {
// 应用信息
appInfo: {
// 应用名称
name: "青岛市就业服务",
name: "喀什市就业服务",
// 地区名
areaName: '喀什',
// AI名称

View File

@@ -19,37 +19,47 @@ export function useColumnCount(onChange = () => {}) {
// columnCount.value = count < 2 ? 2 : count
// }
// }
const calcColumn = () => {
// 使用新的API替代已废弃的getSystemInfoSync
let width
// #ifdef MP-WEIXIN
const mpSystemInfo = uni.getWindowInfo()
width = mpSystemInfo.windowWidth
// #endif
// #ifndef MP-WEIXIN
const otherSystemInfo = uni.getSystemInfoSync()
width = otherSystemInfo.windowWidth
// #endif
let count = 2
if (width >= 1000) {
count = 5
} else if (width >= 750) {
count = 4
} else if (width >= 500) {
count = 3
} else {
count = 2
}
if (count !== columnCount.value) {
columnCount.value = count
}
// 计算间距count=2 => 1count=5 => 2中间线性插值
const spacing = 2 - (count - 2) * (1 / 3)
// console.log('列数:', count, '间距:', spacing.toFixed(2))
columnSpace.value = spacing
const calcColumn = () => {
// 使用新的API替代已废弃的getSystemInfoSync
let width
// #ifdef MP-WEIXIN
const mpSystemInfo = uni.getWindowInfo()
width = mpSystemInfo.windowWidth
// #endif
// #ifndef MP-WEIXIN
const otherSystemInfo = uni.getSystemInfoSync()
width = otherSystemInfo.windowWidth
// #endif
let count = 2
if (width >= 1000) {
// #ifdef H5
count = 3 // H5端最多显示3列
// #endif
// #ifndef H5
count = 5
// #endif
} else if (width >= 750) {
// #ifdef H5
count = 3 // H5端最多显示3列
// #endif
// #ifndef H5
count = 4
// #endif
} else if (width >= 500) {
count = 3
} else {
count = 2
}
if (count !== columnCount.value) {
columnCount.value = count
}
// 计算间距count=2 => 1count=5 => 2中间线性插值
const spacing = 2 - (count - 2) * (1 / 3)
// console.log('列数:', count, '间距:', spacing.toFixed(2))
columnSpace.value = spacing
}
onMounted(() => {

2
package-lock.json generated
View File

@@ -1,5 +1,5 @@
{
"name": "ks-app",
"name": "ks-app-employment-service",
"lockfileVersion": 3,
"requires": true,
"packages": {

View File

@@ -25,9 +25,7 @@
</view>
<view class="conetent-info" :class="{ expanded: isExpanded }">
<view class="info-title">公司介绍</view>
<view class="info-desirption">{{
companyInfo?.description || '暂无公司介绍'
}}</view>
<view class="info-desirption" v-html="companyInfo?.description"></view>
<!-- <view class="info-title title2">公司地址</view>
<view class="locationCompany"></view> -->
</view>
@@ -39,8 +37,8 @@
<scroll-view scroll-y class="Detailscroll-view">
<view class="views">
<view class="Detail-title"><text class="title">在招职位</text></view>
<template v-if="companyInfo.jobList && companyInfo.jobList.length != 0">
<view v-for="job in companyInfo.jobList" :key="job.jobId">
<template v-if="jobInfoList && jobInfoList.length != 0">
<view v-for="job in jobInfoList" :key="job.jobId">
<view class="cards" @click="navToJobDetail(job.jobId)">
<view class="card-company">
<text class="company">{{ job.jobTitle }}</text>
@@ -116,6 +114,7 @@
const companyInfo = ref({
jobList: [],
});
const jobInfoList = ref([]);
const baseUrl = config.imgBaseUrl;
const getItemBackgroundStyle = (imageName) => ({
backgroundImage: `url(${baseUrl}/jobfair/${imageName})`,
@@ -141,6 +140,8 @@
isCollection: resData.data.isCollection || 0,
jobList: resData.data.jobList || [] // 使用正确的jobList字段
};
// 将职位列表数据赋值给jobInfoList用于页面渲染
jobInfoList.value = resData.data.jobList || [];
console.log('Company details loaded successfully');
} else {
console.error('Failed to load company details:', resData?.msg || 'Unknown error');
@@ -152,6 +153,7 @@
isCollection: 0,
jobList: []
};
jobInfoList.value = [];
}
}).catch((error) => {
console.error('API error when fetching company details:', error);
@@ -163,6 +165,7 @@
isCollection: 0,
jobList: []
};
jobInfoList.value = [];
});
}
@@ -212,6 +215,10 @@
if (options.job && typeof options.job === 'string') {
try {
const job=JSON.parse(options.job)
if(job.jobInfoList.length > 0){
jobInfoList.value = job.jobInfoList
}
companyInfo.value = JSON.parse(options.job);
} catch (error) {
console.error('Error parsing job data:', error);
@@ -360,6 +367,7 @@
// 跳转到职位详情页面
function navToJobDetail(jobId) {
return
if (jobId) {
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(jobId)}`);
}
@@ -437,8 +445,13 @@
font-size: 28rpx;
color: #495265;
text-align: justified;
:deep(span) {
background-color: transparent !important;
}
:deep(p > span) {
background-color: transparent !important;
}
}
.title2 {
margin-top: 48rpx;
}

View File

@@ -2,82 +2,83 @@
<view class="job-comparison-container">
<scroll-view class="horizontal-scroll" scroll-x="true">
<view class="comparison-table">
<view class="table-row table-header">
<view class="table-cell fixed-column"></view>
<view v-for="(job, index) in jobs" :key="index" class="table-cell job-title-cell">
<text>{{ job.jobTitle }}</text>
<text class="company">{{ job.company }}</text>
</view>
<view class="table-row table-header">
<view class="table-cell fixed-column"></view>
<view v-for="(job, index) in jobs" :key="index" class="table-cell job-title-cell">
<text>{{ job?.jobTitle || '' }}</text>
<text class="company">{{ job?.company || '' }}</text>
</view>
</view>
<view class="table-row">
<view class="table-cell fixed-column detail-label">
<text>薪资</text>
</view>
<view v-for="(job, index) in jobs" :key="index" class="table-cell detail-content">
<view>
<Salary-Expectation
:max-salary="job.maxSalary"
:min-salary="job.minSalary"
:is-month="true"
></Salary-Expectation>
</view>
<view class="table-row">
<view class="table-cell fixed-column detail-label">
<text>薪资</text>
</view>
<view v-for="(job, index) in jobs" :key="index" class="table-cell detail-content">
<view>
<Salary-Expectation
v-if="job"
:max-salary="job.maxSalary"
:min-salary="job.minSalary"
:is-month="true"
></Salary-Expectation>
</view>
</view>
</view>
<view class="table-row">
<view class="table-cell fixed-column detail-label">
<text>公司名称</text>
</view>
<view v-for="(job, index) in jobs" :key="index" class="table-cell detail-content">
<view>{{ job.companyName }}</view>
</view>
<view class="table-row">
<view class="table-cell fixed-column detail-label">
<text>公司名称</text>
</view>
<view v-for="(job, index) in jobs" :key="index" class="table-cell detail-content">
<view>{{ job?.companyName || '' }}</view>
</view>
</view>
<view class="table-row">
<view class="table-cell fixed-column detail-label">
<text>学历</text>
</view>
<view v-for="(job, index) in jobs" :key="index" class="table-cell detail-content">
<view><dict-Label dictType="education" :value="job.education"></dict-Label></view>
</view>
<view class="table-row">
<view class="table-cell fixed-column detail-label">
<text>学历</text>
</view>
<view v-for="(job, index) in jobs" :key="index" class="table-cell detail-content">
<view><dict-Label dictType="education" :value="job?.education"></dict-Label></view>
</view>
</view>
<view class="table-row">
<view class="table-cell fixed-column detail-label">
<text>经验</text>
</view>
<view v-for="(job, index) in jobs" :key="index" class="table-cell detail-content">
<view><dict-Label dictType="experience" :value="job.experience"></dict-Label></view>
</view>
<view class="table-row">
<view class="table-cell fixed-column detail-label">
<text>经验</text>
</view>
<view v-for="(job, index) in jobs" :key="index" class="table-cell detail-content">
<view><dict-Label dictType="experience" :value="job?.experience"></dict-Label></view>
</view>
</view>
<view class="table-row">
<view class="table-cell fixed-column detail-label">
<text>工作地点</text>
</view>
<view v-for="(job, index) in jobs" :key="index" class="table-cell detail-content">
<view>{{ job.jobLocation }}</view>
</view>
<view class="table-row">
<view class="table-cell fixed-column detail-label">
<text>工作地点</text>
</view>
<view v-for="(job, index) in jobs" :key="index" class="table-cell detail-content">
<view>{{ job?.jobLocation || '' }}</view>
</view>
</view>
<view class="table-row">
<view class="table-cell fixed-column detail-label">
<text>来源</text>
</view>
<view v-for="(job, index) in jobs" :key="index" class="table-cell detail-content">
<view>{{ job.dataSource }}</view>
</view>
<view class="table-row">
<view class="table-cell fixed-column detail-label">
<text>来源</text>
</view>
<view v-for="(job, index) in jobs" :key="index" class="table-cell detail-content">
<view>{{ job?.dataSource || '' }}</view>
</view>
</view>
<view class="table-row">
<view class="table-cell fixed-column detail-label">
<text>职位描述</text>
</view>
<view v-for="(job, index) in jobs" :key="index" class="table-cell detail-content">
<view>{{ job.description }}</view>
</view>
<view class="table-row">
<view class="table-cell fixed-column detail-label">
<text>职位描述</text>
</view>
<view v-for="(job, index) in jobs" :key="index" class="table-cell detail-content">
<view>{{ job?.description || '' }}</view>
</view>
</view>
<view class="table-row">
<view class="table-cell fixed-column detail-label">
<text>工业</text>
@@ -85,9 +86,9 @@
<view v-for="(job, index) in jobs" :key="index" class="table-cell detail-content">
<view>
<dict-tree-Label
v-if="jobInfo.company && jobInfo.company.industry"
v-if="job.company && job.company.industry"
dictType="industry"
:value="jobInfo.company.industry"
:value="job.company.industry"
></dict-tree-Label>
</view>
</view>
@@ -98,7 +99,7 @@
</view>
<view v-for="(job, index) in jobs" :key="index" class="table-cell detail-content">
<view>
<dict-Label dictType="scale" :value="jobInfo.company?.scale"></dict-Label>
<dict-Label dictType="scale" :value="job.company?.scale"></dict-Label>
</view>
</view>
</view>
@@ -108,7 +109,7 @@
</view>
<view v-for="(job, index) in jobs" :key="index" class="table-cell detail-content">
<view>
{{ job.isHot ? '是' : '否' }}
{{ job?.isHot ? '是' : '否' }}
</view>
</view>
</view>
@@ -125,7 +126,7 @@ const jobs = ref([]);
onLoad(() => {
let compareData = uni.getStorageSync('compare');
jobs.value = compareData;
jobs.value = Array.isArray(compareData) ? compareData : [];
});
</script>

View File

@@ -14,12 +14,12 @@
<view class="row1 line_2">{{ fairInfo?.jobFairTitle }}</view>
<view class="row2">
<text>{{ fairInfo?.jobFairAddress }}</text>
<convert-distance :alat="fairInfo?.latitude" :along="fairInfo?.longitude" :blat="latitudeVal"
:blong="longitudeVal"></convert-distance>
<!-- <convert-distance :alat="fairInfo?.latitude" :along="fairInfo?.longitude" :blat="latitudeVal"
:blong="longitudeVal"></convert-distance> -->
</view>
</view>
</view>
<view class="locations">
<!-- <view class="locations">
<image class="location-img" src="/static/icon/mapLine.png"></image>
<view class="location-info">
<view class="info">
@@ -27,14 +27,14 @@
<text class="info-text">位置</text>
</view>
</view>
</view>
</view> -->
<view class="conetent-info" :class="{ expanded: isExpanded }">
<view class="info-title">内容描述</view>
<view class="info-desirption">{{ fairInfo?.jobFairIntroduction }}</view>
<!-- <view class="info-title title2">公司地址</view>
<view class="locationCompany"></view> -->
<view class="company-times">
<view class="info-title">内容描述</view>
<view class="info-title">招聘会时间</view>
<view class="card-times">
<view class="time-left">
<view class="left-date">{{ parseDateTime(fairInfo.jobFairStartTime).time }}</view>
@@ -105,9 +105,9 @@
</view>
<template #footer>
<view class="footer" v-if="hasnext">
<view class="btn-wq button-click" :class="{ 'btn-desbel': fairInfo.isSignUp==1 }"
@click="applyExhibitors">
{{ fairInfo.isSignUp==1 ? '已报名' : '报名招聘会' }}
<view class="btn-wq button-click" :class="{ 'btn-desbel': fairInfo.isSignUp==1 || isLoading }"
@click="applyExhibitors" :disabled="isLoading">
{{ isLoading ? '报名中...' : fairInfo.isSignUp==1 ? '已报名' : '报名招聘会' }}
</view>
</view>
</template>
@@ -161,6 +161,8 @@
// person个人 ent企业
const signRole = ref('ent');
const CompanySignPopup = ref(null)
// 报名loading状态
const isLoading = ref(false)
const jobFairId = ref(null)
@@ -253,6 +255,7 @@
// 报名招聘会
function applyExhibitors() {
if (isLoading.value) return
if (fairInfo.value.isSignUp == 1) {
$api.msg('请勿重复报名');
return
@@ -262,6 +265,7 @@
const headers = token ? {
Authorization: raw.startsWith("Bearer ") ? raw : `Bearer ${token}`
} : {};
isLoading.value = true
$api.myRequest("/dashboard/auth/heart", {}, "POST", 10100, headers).then((resData) => {
if (resData.code == 200) {
@@ -271,6 +275,7 @@
signRole.value = userInfo.userType;
signDialogisshow.value = true
CompanySignPopup.value.open()
isLoading.value = false
}else{
$api.myRequest("/jobfair/public/job-fair-sign-up-person/sign-up", {
personId: userInfo.value.info.userId,
@@ -282,24 +287,29 @@
title: '报名成功',
icon: 'success'
});
getCompanyInfo(userInfo.value.info.userId, jobFairId.value)
fairInfo.value.isSignUp = 1;
getCompanyInfo(userInfo.value.info.userId, jobFairId.value);
} else {
uni.showToast({
title: res.msg || '报名失败',
icon: 'none'
});
}
isLoading.value = false
})
}
} else {
$api.msg('请先登录');
setTimeout(() => {
uni.redirectTo({
url: '/packageB/login'
})
}, 1000)
// setTimeout(() => {
// uni.redirectTo({
// url: '/packageB/login'
// })
// }, 1000)
isLoading.value = false
}
}).catch(() => {
isLoading.value = false
});
}

View File

@@ -67,9 +67,9 @@ const { dictLabel, oneDictData, getDictData } = useDictStore();
const selectJobsModel = ref();
const selectPopupRef = ref();
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({
lfsalay: [2, 5, 10, 15, 20, 25, 30, 50],
lfsalay: [2000, 5000, 10000, 15000, 20000, 25000, 30000, 50000],
risalay: JSON.parse(JSON.stringify(salay)),
salayText: '',
areaText: '',
@@ -81,10 +81,16 @@ const fromValue = reactive({
area: '',
jobTitleId: [],
});
onLoad(async () => {
const needSkill = ref(false);
onLoad(async (options) => {
// 初始化字典数据
await getDictData();
initLoad();
// 检查是否需要继续跳转到技能页面
if (options && options.needSkill === 'true') {
needSkill.value = true;
}
});
const confirm = () => {
if (!fromValue.jobTitleId) {
@@ -94,7 +100,12 @@ const confirm = () => {
$api.msg('完成');
state.disbleDate = true;
getUserResume().then(() => {
navBack();
// 如果需要继续跳转到技能页面,则跳转到个人信息页面(携带 needSkill 标记,便于返回两级)
if (needSkill.value) {
navTo('/packageA/pages/personalInfo/personalInfo?needSkill=true');
} else {
navBack();
}
});
});
};
@@ -126,10 +137,10 @@ const changeSalary = () => {
title: '薪资',
maskClick: true,
data: [state.lfsalay, state.risalay],
unit: 'k',
unit: '',
success: (_, [min, max]) => {
fromValue.salaryMin = min.value * 1000;
fromValue.salaryMax = max.value * 1000;
fromValue.salaryMin = min.value;
fromValue.salaryMax = max.value;
state.salayText = `${fromValue.salaryMin}-${fromValue.salaryMax}`;
},
change(e) {

View File

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

View File

@@ -17,6 +17,19 @@
<view class="input-titile">姓名</view>
<input class="input-con" v-model="fromValue.name" placeholder="请输入您的姓名" />
</view>
<view class="content-input" :class="{ 'input-error': passwordError }">
<view class="input-titile">设置密码</view>
<input
class="input-con"
v-model="fromValue.ytjPassword"
placeholder="请输入密码"
type="password"
maxlength="8"
@input="validatePassword"
/>
<view v-if="passwordError" class="error-message">{{ passwordError }}</view>
<view v-if="fromValue.ytjPassword && !passwordError" class="success-message"> 密码格式正确</view>
</view>
<view class="content-sex">
<view class="sex-titile">性别</view>
<view class="sext-ri">
@@ -150,6 +163,8 @@ const openSelectPopup = (config) => {
};
const percent = ref('0%');
// 当从“先职位后技能”链路进入时,提交后需直接返回职业规划页
const needGoBackTwoStep = ref(false);
const state = reactive({
educationText: '',
politicalAffiliationText: '',
@@ -158,6 +173,7 @@ const state = reactive({
});
const fromValue = reactive({
name: '',
ytjPassword: '', // 新增密码字段
sex: 0,
birthDate: '',
education: '',
@@ -165,10 +181,16 @@ const fromValue = reactive({
idCard: '',
phone: ''
});
// 输入校验相关
const passwordError = ref('');
// 移除重复的onLoad定义已在上方实现
// 在onLoad中初始化数据确保页面加载时就能获取技能信息
onLoad(() => {
onLoad((options = {}) => {
if (options.needSkill === 'true') {
needGoBackTwoStep.value = true;
}
// 初始化页面数据
initLoad();
});
@@ -235,6 +257,7 @@ function initLoad() {
const currentUserInfo = userInfo.value && Object.keys(userInfo.value).length > 0 ? userInfo.value : cachedUserInfo;
fromValue.name = currentUserInfo.name || '';
fromValue.ytjPassword = ''; // 密码输入框默认为空,不加载已有密码
fromValue.sex = currentUserInfo.sex !== undefined ? Number(currentUserInfo.sex) : 0;
fromValue.phone = currentUserInfo.phone || '';
fromValue.birthDate = currentUserInfo.birthDate || '';
@@ -351,6 +374,12 @@ const confirm = () => {
return $api.msg('请输入正确手机号');
}
// 密码校验
validatePassword();
if (fromValue.ytjPassword && passwordError.value) {
return $api.msg(passwordError.value);
}
// 构建appSkillsList数据结构 - 使用新的技能数据结构包含id字段
const appSkillsList = state.skills
.filter(skill => skill.name && skill.name.trim() !== '')
@@ -369,7 +398,12 @@ const confirm = () => {
$api.createRequest('/app/user/resume', params, 'post').then((resData) => {
$api.msg('完成');
getUserResume().then(() => {
navBack();
// 如果从“缺职位+技能”链路进入,回退两层直接返回职业规划页
if (needGoBackTwoStep.value) {
navBack({ delta: 2 });
} else {
navBack();
}
});
});
};
@@ -603,6 +637,54 @@ const changeSex = (sex) => {
fromValue.sex = sex;
};
// 密码实时校验
const validatePassword = () => {
const password = (fromValue.ytjPassword || '').trim();
// 如果为空,清除错误信息
if (!password) {
passwordError.value = '';
return;
}
// 校验规则长度8位包含大小写字母和数字至少各有一个
if (password.length !== 8) {
passwordError.value = '密码长度必须为8位';
return;
}
// 检查是否包含大写字母
const hasUpperCase = /[A-Z]/.test(password);
// 检查是否包含小写字母
const hasLowerCase = /[a-z]/.test(password);
// 检查是否包含数字
const hasNumber = /[0-9]/.test(password);
if (!hasUpperCase) {
passwordError.value = '密码必须包含至少一个大写字母';
return;
}
if (!hasLowerCase) {
passwordError.value = '密码必须包含至少一个小写字母';
return;
}
if (!hasNumber) {
passwordError.value = '密码必须包含至少一个数字';
return;
}
// 检查是否只包含字母和数字
if (!/^[A-Za-z0-9]+$/.test(password)) {
passwordError.value = '密码只能包含大小写字母和数字';
return;
}
// 校验通过
passwordError.value = '';
};
const changePoliticalAffiliation = () => {
openSelectPopup({
title: '政治面貌',
@@ -760,6 +842,19 @@ function getDatePickerIndexes(dateStr) {
height: 80rpx;
border-bottom: 2rpx solid #EBEBEB
position: relative;
.error-message
color: #ff4757;
font-size: 24rpx;
margin-top: 10rpx;
line-height: 1.4;
.success-message
color: #2ed573;
font-size: 24rpx;
margin-top: 10rpx;
line-height: 1.4;
.input-error
.input-con
border-bottom-color: #ff4757;
.triangle::before
position: absolute;
right: 20rpx;

View File

@@ -107,7 +107,7 @@
<text class="title">公司信息</text>
<text
class="btntext button-click"
@click="navTo(`/packageA/pages/UnitDetails/UnitDetails?companyId=${jobInfo.company.companyId}`)"
@click="handleCompanyDetailClick"
>
单位详情
</text>
@@ -171,16 +171,15 @@
</view>
</view>
</view>
<view class="content-card" v-else>
<view class="content-card" v-if="currentUserType === 0">
<view class="card-title">
<view class="title">申请人列表</view>
</view>
<view class="applicant-list">
<view v-for="applicant in applicants" :key="applicant.userId" class="applicant-item">
<view v-for="applicant in jobInfo.applyUsers" :key="applicant.userId" class="applicant-item">
<view class="item-header">
<view class="name">{{ applicant.name }}</view>
<view class="right-header">
<view class="matching-degree">匹配度{{ applicant.matchingDegree }}</view>
<button class="resume-button" @click="viewResume(applicant.userId)">查看简历</button>
</view>
</view>
@@ -205,8 +204,8 @@
期望薪资
<Salary-Expectation
style="display: inline-block"
:max-salary="applicant.maxSalary"
:min-salary="applicant.minSalary"
:max-salary="applicant.salaryMax"
:min-salary="applicant.salaryMin"
:is-month="true"
></Salary-Expectation>
</view>
@@ -268,32 +267,7 @@ const raderData = ref({
const videoPalyerRef = ref(null);
const explainUrlRef = ref('');
const applicants = ref([
{
createTime: null,
userId: 1,
name: '青岛测试账号331',
age: '28', // 假设年龄有值
sex: '1',
birthDate: null,
education: '4',
politicalAffiliation: '',
phone: '',
avatar: '',
salaryMin: '10000',
salaryMax: '15000',
area: '3',
status: '0',
loginIp: '',
loginDate: null,
jobTitleId: '157,233,373',
experience: '3',
isRecommend: 1,
jobTitle: ['人力资源专员/助理', 'Java', '运维工程师'],
applyDate: '2025-09-26',
matchingDegree: 1,
},
]);
// 申请人列表直接使用接口返回的applyUsers数组
onLoad((option) => {
console.log(option, 'option');
@@ -315,7 +289,6 @@ onShow(() => {
}
// #endif
});
function initLoad(option) {
const jobId = decodeURIComponent(option.jobId);
if (jobId !== jobIdRef.value) {
@@ -367,9 +340,14 @@ function getDetail(jobId) {
}
function getCompanyIsAJobs(companyId) {
$api.createRequest(`/app/company/count/${companyId}`).then((resData) => {
companyCount.value = resData.data;
});
if (companyId) {
$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) {
@@ -439,6 +417,11 @@ function getCompetivetuveness(jobId) {
// 申请岗位
function jobApply() {
const tokenValue = uni.getStorageSync('token') || '';
if (!tokenValue) {
$api.msg('请您先登录');
return;
}
const jobId = jobInfo.value.jobId;
$api.createRequest(`/app/job/apply/${jobId}`, {}, 'GET').then((resData) => {
getDetail(jobId);
@@ -525,6 +508,22 @@ function previewImage(url, index) {
current: index
});
}
// 查看简历
function viewResume(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>
<style lang="stylus" scoped>

View File

@@ -0,0 +1,385 @@
<template>
<AppLayout backGorundColor="#F4F4F4">
<template #headerleft>
<view class="btnback">
<image src="@/static/icon/back.png" @click="navBack"></image>
</view>
</template>
<template #header>
<view class="title">简历详情</view>
</template>
<view class="mys-container">
<!-- 个人信息 -->
<view class="mys-tops btn-feel">
<view class="tops-left">
<view class="name">
<text>{{ userInfo.name || '暂无姓名' }}</text>
</view>
<view class="subName">
<dict-Label class="mar_ri10" dictType="sex" :value="userInfo.sex"></dict-Label>
<text class="mar_ri10">{{ userInfo.age }}</text>
<dict-Label class="mar_ri10" dictType="education" :value="userInfo.education"></dict-Label>
<dict-Label
class="mar_ri10"
dictType="affiliation"
:value="userInfo.politicalAffiliation"
></dict-Label>
</view>
<view class="subName">{{ userInfo.phone }}</view>
</view>
<view class="tops-right">
<view class="right-imghead">
<image v-if="userInfo.sex === '0'" src="@/static/icon/boy.png"></image>
<image v-else src="@/static/icon/girl.png"></image>
</view>
<view class="right-sex">
<image v-if="userInfo.sex === '0'" src="@/static/icon/boy1.png"></image>
<image v-else src="@/static/icon/girl1.png"></image>
</view>
</view>
</view>
<!-- 求职期望 -->
<view class="mys-line"></view>
<view class="mys-info">
<view class="mys-h4">
<text>求职期望</text>
</view>
<view class="mys-text">
<text>期望薪资</text>
<text>{{ userInfo.salaryMin / 1000 }}k-{{ userInfo.salaryMax / 1000 }}k</text>
</view>
<view class="mys-text">
<text>期望工作地</text>
<dict-Label dictType="area" :value="Number(userInfo.area)"></dict-Label>
</view>
<view class="mys-list">
<view class="cards" v-for="(title, index) in userInfo.jobTitle" :key="index">
{{ title }}
</view>
</view>
</view>
<!-- 技能列表 -->
<view class="work-experience-container">
<view class="exp-header">
<text class="exp-title">技能</text>
</view>
<view class="exp-list" v-if="userInfo.appSkillsList && userInfo.appSkillsList.length > 0">
<view class="exp-item" v-for="(skill, index) in userInfo.appSkillsList" :key="skill.id">
<view class="exp-company-row">
<text class="exp-company">{{ skill.name }}</text>
<text class="exp-position">{{ getSkillLevelText(skill.levels) }}</text>
</view>
<view class="exp-divider" v-if="index !== userInfo.appSkillsList.length - 1"></view>
</view>
</view>
<view class="exp-empty" v-else>
<image class="empty-img" src="/static/icons/empty-work.png" mode="widthFix"></image>
<text class="empty-text">暂无技能信息</text>
</view>
</view>
<!-- 工作经历 -->
<view class="work-experience-container">
<!-- 标题栏仅显示标题 -->
<view class="exp-header">
<text class="exp-title">工作经历</text>
</view>
<!-- 工作经历列表 -->
<view class="exp-list" v-if="workExperiences.length > 0">
<view class="exp-item" v-for="(item, index) in workExperiences" :key="item.id">
<!-- 公司名称 + 职位 -->
<view class="exp-company-row">
<text class="exp-company">{{ item.companyName }}</text>
<text class="exp-position">{{ item.position }}</text>
</view>
<!-- 工作时间 -->
<view class="exp-date-row">
<text class="exp-label">工作时间</text>
<text class="exp-date">{{ item.startDate }} - {{ item.endDate || '至今' }}</text>
</view>
<!-- 工作描述支持多行 -->
<view class="exp-desc-row" v-if="item.description">
<text class="exp-label">工作描述</text>
<text class="exp-desc">{{ item.description }}</text>
</view>
<!-- 分隔线最后一项不显示 -->
<view class="exp-divider" v-if="index !== workExperiences.length - 1"></view>
</view>
</view>
<!-- 空状态提示无工作经历时显示 -->
<view class="exp-empty" v-else>
<image class="empty-img" src="/static/icons/empty-work.png" mode="widthFix"></image>
<text class="empty-text">暂无工作经历</text>
</view>
</view>
</view>
</AppLayout>
</template>
<script setup>
import { reactive, inject, ref, onMounted } from 'vue';
const { $api, navTo, navBack, config } = inject('globalFunction');
import { onLoad } from '@dcloudio/uni-app';
import useDictStore from '@/stores/useDictStore';
const { getDictData } = useDictStore();
const userInfo = ref({});
const workExperiences = ref([]);
const isLoading = ref(false);
// 获取技能等级文本
const getSkillLevelText = (level) => {
const levelMap = {
'1': '初级',
'2': '中级',
'3': '高级'
};
return levelMap[level] || level || '暂无等级';
};
// 页面加载时获取数据
onLoad((option) => {
const { userId } = option;
if (userId) {
getResumeDetail(userId);
}
});
// 获取简历详情
const getResumeDetail = async (userId) => {
try {
isLoading.value = true;
const resData = await $api.createRequest(`/app/user/userResume/${userId}`);
if (resData.code === 200) {
userInfo.value = resData.data;
// 从简历详情中获取工作经历,而不是单独请求
workExperiences.value = resData.data.experiencesList || [];
}
} catch (error) {
console.error('获取简历详情失败:', error);
$api.msg('获取简历详情失败');
} finally {
isLoading.value = false;
}
};
</script>
<style lang="stylus" scoped>
image{
width: 100%;
height: 100%
}
.mys-container{
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
.mys-tops{
display: flex
justify-content: space-between
padding: 52rpx 48rpx
.tops-left{
.name{
font-family: 'PingFangSC-Medium', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif;
font-weight: 600;
font-size: 44rpx;
color: #333333;
display: flex
align-items: center
justify-content: flex-start
}
.subName{
margin-top: 12rpx
font-weight: 400;
font-size: 32rpx;
color: #333333;
}
}
.tops-right{
position: relative
.right-imghead{
width: 136rpx;
height: 136rpx;
border-radius: 50%;
background: #e8e8e8
overflow: hidden
}
.right-sex{
position: absolute
right: -10rpx
top: -10rpx
width: 50rpx
height: 50rpx
}
}
}
.mys-line{
margin: 0 28rpx
height: 0rpx;
border-radius: 0rpx 0rpx 0rpx 0rpx;
border: 2rpx dashed #000000;
opacity: 0.16;
}
.mys-info{
padding: 28rpx
.mys-h4{
font-family: 'PingFangSC-Medium', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif;
font-weight: 600;
font-size: 32rpx;
color: #000000;
margin-bottom: 8rpx
display: flex;
justify-content: space-between
align-items: center
}
.mys-text{
font-weight: 400;
font-size: 28rpx;
color: #333333;
margin-top: 16rpx
}
.mys-list{
display: flex
align-items: center
flex-wrap: wrap;
.cards{
margin: 28rpx 28rpx 0 0
height: 80rpx;
padding: 0 38rpx;
width: fit-content
display: flex
align-items: center
justify-content: center
border-radius: 12rpx 12rpx 12rpx 12rpx;
border: 2rpx solid #E8EAEE;
}
}
}
}
/* 容器样式适配多端用rpx做单位 */
.work-experience-container {
padding: 20rpx 30rpx;
background-color: #fff;
border-radius: 16rpx;
margin: 20rpx;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
}
/* 标题栏:两端对齐 */
.exp-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25rpx;
}
.exp-title {
font-size: 32rpx;
font-weight: 600;
color: #333;
}
/* 经历列表容器 */
.exp-list {
margin-top: 10rpx;
}
/* 单个经历卡片 */
.exp-item {
padding: 20rpx 0;
}
/* 公司名称 + 职位(横向排列,职位右对齐) */
.exp-company-row {
display: flex;
justify-content: space-between;
margin-bottom: 15rpx;
}
.exp-company {
font-size: 28rpx;
font-weight: bold;
color: #000000;
}
.exp-position {
font-size: 24rpx;
font-weight: bold;
color: #000000;
}
/* 工作时间/描述:标签+内容横向排列 */
.exp-date-row, .exp-desc-row {
display: flex;
margin-bottom: 12rpx;
line-height: 1.6;
color: #000000;
}
/* 标签样式(固定宽度,统一对齐) */
.exp-label {
font-size: 26rpx;
color: #000;
min-width: 160rpx;
}
/* 内容样式 */
.exp-date, .exp-desc {
font-size: 26rpx;
color: #000000;
flex: 1; /* 内容占满剩余宽度,支持换行 */
}
/* 工作描述(支持多行换行) */
.exp-desc {
word-break: break-all;
}
/* 分隔线 */
.exp-divider {
height: 1rpx;
background-color: #f5f5f5;
margin-top: 20rpx;
}
/* 空状态样式 */
.exp-empty {
display: flex;
flex-direction: column;
align-items: center;
padding: 80rpx 0;
color: #999;
}
.empty-img {
width: 140rpx;
height: auto;
margin-bottom: 25rpx;
opacity: 0.6;
}
.empty-text {
font-size: 26rpx;
text-align: center;
line-height: 1.5;
}
.btnback{
width: 64rpx;
height: 64rpx;
}
.title {
font-size: 36rpx;
font-weight: 600;
color: #000000;
text-align: center;
margin-right: 64rpx;
}
</style>

View File

@@ -50,7 +50,8 @@ const { $api, navTo, navBack } = inject('globalFunction');
const weekMap = ['日', '一', '二', '三', '四', '五', '六'];
const calendarData = ref([]);
const current = ref({});
import { Solar, Lunar } from '@/packageA/lib/lunar-javascript@1.7.2.js';
import lunarModule from '@/packageA/lib/lunar-javascript@1.7.2.js';
const { Solar, Lunar } = lunarModule;
const isRecord = ref(false);
const recordNum = ref(4);

View File

@@ -0,0 +1,9 @@
import request from "@/utilsRc/request";
//政策列表
export function getPolicyList(queryParams) {
return request({
url: "/portal/policyInfo/portalList",
method: "get",
params: queryParams,
});
}

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

@@ -28,6 +28,14 @@
<view> 2招聘会主办单位{{ fair.jobFairHostUnit }} </view>
<view> 3招聘会承办单位{{ fair.jobFairOrganizeUnit }} </view>
</view>
<view class="jobfair-title"> 签到签退码 </view>
<view class="jobfair-content">
<view>{{ fair.checkCode }} </view>
</view>
<view class="jobfair-title"> 展区展位名 </view>
<view class="jobfair-content">
<view>{{ fair.jobFairAreaBoothName }} </view>
</view>
<view class="jobfair-title"> 内容描述 </view>
<view class="jobfair-content">
{{ fair.jobFairIntroduction }}
@@ -120,13 +128,13 @@
</view>
<view class="bottom">
<view class="tag">
<view class="tag-item">性别{{ item.personInfo.sex == 0 ? "男" : "女" }}</view>
<view class="tag-item">性别{{ item.personInfo.sex}}</view>
<view class="tag-item success">年龄{{ item.personInfo.age }}</view>
</view>
</view>
<view class="btn">
<button type="primary" plain>查看</button>
<button type="primary" @click="getDetailPopup(item)" plain>查看</button>
<button type="primary" @click="interviewBtn(item)" v-if="item.status == 1">
面试邀请
</button>
@@ -142,7 +150,68 @@
<view v-if="loading" class="loading">加载中...</view>
<view v-if="!loading && detail.list.length >= detail.total" class="no-more">没有更多数据了</view>
</scroll-view>
<!-- 简历详情弹窗 -->
<uni-popup ref="resumeDetailPopup" type="center" :maskClick="false">
<view class="popup-content job-dialog" :style="getItemBackgroundStyle('zphbm-k.png')">
<view class="title">
<image :src="`${imgBaseUrl}/jobfair/xb.png`" mode="aspectFit"></image>
简历
</view>
<view class="dialog-content">
<view class="flexBox detail-item1">
<view class="label">姓名</view>
<view class="value">
{{detailObj.name}}
</view>
</view>
<view class="flexBox detail-item1">
<view class="label">性别</view>
<view class="value">
{{detailObj.sex}}
</view>
</view>
<view class="flexBox detail-item1">
<view class="label">年龄</view>
<view class="value">
{{detailObj.age}}
</view>
</view>
<view class="flexBox detail-item1">
<view class="label">联系方式</view>
<view class="value">
{{detailObj.phone}}
</view>
</view>
<view class="flexBox detail-item1">
<view class="label">期望薪资</view>
<view class="value">
{{detailObj.salaryMin}}-{{ detailObj.salaryMax }}
</view>
</view>
<view class="flexBox detail-item1">
<view class="label">学历</view>
<view class="value">
{{detailObj.education}}
</view>
</view>
<view class="flexBox detail-item1">
<view class="label">期望岗位</view>
<view class="value">
{{detailObj.jobTitleId}}
</view>
</view>
<view class="flexBox detail-item1">
<view class="label">政治面貌</view>
<view class="value">
{{detailObj.politicalAffiliation}}
</view>
</view>
</view>
<view class="btn-box">
<button type="default" @click="closeResumeDetailPopup">关闭</button>
</view>
</view>
</uni-popup>
<!-- 面试邀请弹窗 -->
<uni-popup ref="interviewPopup" type="center" :maskClick="false">
<view class="popup-content job-dialog" :style="getItemBackgroundStyle('zphbm-k.png')">
@@ -365,7 +434,17 @@
loading.value = false;
}
};
const resumeDetailPopup = ref()
const detailObj = reactive({});
//简历详情
const getDetailPopup= (item)=>{
Object.assign(detailObj,item.personInfo);
resumeDetailPopup.value.open();
}
const closeResumeDetailPopup =()=>{
Object.assign(detailObj, {});
resumeDetailPopup.value.close();
}
// 面试邀请
const interviewBtn = (item) => {
Object.assign(openGw, item);
@@ -859,7 +938,9 @@
.dialog-content {
padding: 10rpx;
height: 80%;
.flexBox{
display: flex;
}
.detail-item1 {
// display: flex;
// align-items: center;

View File

@@ -43,7 +43,7 @@
<view class="jobfair-content">
<view class="card-times">
<view class="time-left">
<view class="left-date">{{
<view class="left-date">{{
parseDateTime(fair.jobFairStartTime).time
}}</view>
<view class="left-dateDay">{{
@@ -134,7 +134,9 @@
<text :style="{ color: getStatusText(job.jobFairPersonJob?.status).color }">{{ getStatusText(job.jobFairPersonJob?.status).text }}</text>
</view>
<view v-else class="btn">
<button plain style="color: #1685f7;border-color:#1685f7" @click="deliverResume(job)">简历投递</button>
<button plain :disabled="deliveringJobs[job.jobId]" style="color: #1685f7;border-color:#1685f7" @click="deliverResume(job)">
{{ deliveringJobs[job.jobId] ? '投递中...' : '简历投递' }}
</button>
</view>
</view>
</view>
@@ -317,39 +319,63 @@
const closeFeedBackPopup = () => {
feedBackPopup.value.close();
};
// 投递简历loading状态使用对象存储每个job的投递状态
const deliveringJobs = reactive({});
// 岗位投递
function deliverResume(job) {
const raw = uni.getStorageSync("Padmin-Token");
const token = typeof raw === "string" ? raw.trim() : "";
const headers = token ? {
Authorization: raw.startsWith("Bearer ") ? raw : `Bearer ${token}`
} : {};
$api.myRequest("/dashboard/auth/heart", {}, "POST", 10100, headers).then((resData1) => {
if (resData1.code == 200) {
$api.myRequest("/system/user/login/user/info", {}, "GET", 10100, headers).then((resData) => {
$api.myRequest("/jobfair/public/job-fair-person-job/insert", {
jobFairId: job.jobFairId, // 招聘会id
personId: resData.info.userId, // 当前登录用户id
enterpriseId: job.companyId, // 企业id
jobId: job.jobId, // 岗位id
idCard:resData.info.personCardNo
}, "post", 9100, {
"Content-Type": "application/json"
}).then((data) => {
if (data && data.code === 200) {
$api.msg("简历投递成功");
getList(false);
uni.showModal({
title: "提示",
content: "请确认是否投递简历?",
showCancel: true,
confirmText: "确定",
cancelText: "取消",
success: (res) => {
if(res.confirm){
if(deliveringJobs[job.jobId]) return
deliveringJobs[job.jobId] = true
const raw = uni.getStorageSync("Padmin-Token");
const token = typeof raw === "string" ? raw.trim() : "";
const headers = token ? {
Authorization: raw.startsWith("Bearer ") ? raw : `Bearer ${token}`
} : {};
$api.myRequest("/dashboard/auth/heart", {}, "POST", 10100, headers).then((resData1) => {
if (resData1.code == 200) {
$api.myRequest("/system/user/login/user/info", {}, "GET", 10100, headers).then((resData) => {
$api.myRequest("/jobfair/public/job-fair-person-job/insert", {
jobFairId: job.jobFairId, // 招聘会id
personId: resData.info.userId, // 当前登录用户id
enterpriseId: job.companyId, // 企业id
jobId: job.jobId, // 岗位id
idCard:resData.info.personCardNo
}, "post", 9100, {
"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 {
$api.msg((data && data.msg) || "简历投递失败");
$api.msg('请先登录');
deliveringJobs[job.jobId] =false
}
}).catch(() => {
deliveringJobs[job.jobId] =false;
});
});
} else {
$api.msg('请先登录')
}
}
});
})
}
// 提交面试邀请

View File

@@ -59,7 +59,7 @@
onMounted(() => {
// getCodeImg()
let form={}
if (uni.getStorageSync('userInfo').isCompanyUser=='1') {
if (uni.getStorageSync('userInfo').isCompanyUser=='1' || uni.getStorageSync('userInfo').isCompanyUser=='2') {
form={
usertype: '1',
idno: uni.getStorageSync('userInfo').idCard,

301
packageB/login2.vue Normal file
View File

@@ -0,0 +1,301 @@
<template>
<AppLayout title="" :use-scroll-view="false">
<view class="wrap">
<view class="login_index">
<input class="input" placeholder="请输入账号" placeholder-class="inputplace" v-model="form.username" />
<view class="login_yzm">
<input class="input" type="password" placeholder="请输入密码" placeholder-class="inputplace"
v-model="form.password" />
</view>
<view class="login_yzm">
<input class="input" placeholder="请输入验证码" placeholder-class="inputplace" v-model="form.code" />
<image class="yzm" :src="codeUrl" @click="getCodeImg"></image>
</view>
<button class="com-btn" @click="register"> </button>
</view>
</view>
</AppLayout>
</template>
<script setup>
import {
reactive,
inject,
watch,
ref,
onMounted,
onUnmounted
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app';
const {
$api,
navTo,
vacanciesTo,
navBack
} = inject("globalFunction");
const placeholderStyle = 'font-size:30rpx'
const checked = ref(true)
const codeUrl = ref('')
const flag=ref('nw')
const form = reactive({
username: '',
password: '',
rememberMe: false,
code: '',
uuid: ''
})
onLoad((option) => {
console.log("111")
if(option.flag){
flag.value=option.flag
}
})
onMounted(() => {
getCodeImg()
// let form={}
// if (uni.getStorageSync('userInfo').isCompanyUser=='1') {
// 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: ""
// }
// }
// $api.myRequest('/auth/login2/ks',form,'post',10100).then((res) => {
// if (res.code=='200') {
// uni.setStorageSync('Padmin-Token', res.data.access_token)
// uni.navigateBack({
// delta:2
// })
// }
// }).catch(() => {
// uni.hideLoading()
// uni.showToast({
// icon: 'none',
// title: '登录失败,请重试'
// })
// })
})
function register() {
if (!form.username) {
uni.showToast({
icon: 'none',
title: '请输入用户名'
})
return
}
if (!form.password) {
uni.showToast({
icon: 'none',
title: '请输入密码'
})
return
}
if (!form.uuid) {
uni.showToast({
icon: 'none',
title: '请输入验证码'
})
return
}
uni.showLoading({
title: '登录中...',
mask: true
})
if(flag.value=='hlw'){
$api.myRequest('/auth/login',form,'post',10100).then((res) => {
uni.setStorageSync('Padmin-Token', res.data.access_token)
uni.reLaunch({
url: '/pages/index/index'
})
codeUrl.value = 'data:image/gif;base64,' + res.img
}).catch(() => {
uni.hideLoading()
uni.showToast({
icon: 'none',
title: '登录失败,请重试'
})
})
}else if(flag.value=='nw'){
$api.myRequest('/auth/login',form,'post',9100).then((res) => {
uni.setStorageSync('Padmin-Token', res.data.access_token)
uni.reLaunch({
url: '/packageB/priority/helpFilter'
})
codeUrl.value = 'data:image/gif;base64,' + res.img
}).catch(() => {
uni.hideLoading()
uni.showToast({
icon: 'none',
title: '登录失败,请重试'
})
})
}
}
function getCodeImg() {
if(flag.value=='hlw'){
$api.myRequest('/code',{},'get',10100).then((resData) => {
codeUrl.value = 'data:image/gif;base64,' + resData.img
form.uuid = resData.uuid
});
}else if(flag.value=='nw'){
$api.myRequest('/code',{},'get',9100).then((resData) => {
codeUrl.value = 'data:image/gif;base64,' + resData.img
form.uuid = resData.uuid
});
}
}
</script>
<style scoped lang="stylus">
.wrap {
background-color: #ffffff;
height: 100vh;
position: relative;
.lg-head {
height: 480rpx;
background: #46ca98;
position: relative;
.view_logo {
text-align: center;
.login_logo {
width: 300rpx;
height: 300rpx;
margin-top: 100rpx;
}
}
.bg-cover {
position: absolute;
bottom: -4rpx;
left: 0;
right: 0;
height: 30rpx;
background-size: 100% 100%;
z-index: 1;
}
}
}
.login_index {
font-size: 36rpx;
font-weight: 500;
width: 596rpx;
margin: 0 auto;
::v-deep .is-input-border {
border: 0;
border-bottom: 1px solid #dcdfe6 !important;
border-radius: 0;
}
::v-deep .uni-input-input {
font-size: 32rpx;
padding-left: 10rpx;
}
::v-deep .uniui-contact-filled:before {
color: #46ca98;
font-size: 50rpx;
}
::v-deep .uniui-locked-filled:before {
color: #46ca98;
font-size: 50rpx;
}
.login_yzm {
margin-top: 40rpx;
display: flex;
align-items: center;
.yzm {
width: 200rpx;
height: 80rpx;
}
}
.com-btn {
height: 100rpx;
background: #46ca98;
border-radius: 50rpx;
color: #fff;
margin-top: 100rpx;
}
.login_wt {
margin: 0 auto;
text-align: right;
font-size: 24rpx;
color: rgba(134, 134, 136, 1);
}
}
.lg-bottom {
position: absolute;
bottom: -3px;
left: 0;
width: 100%;
.bottom-svg {
position: absolute;
bottom: -3px;
left: 0;
width: 100%;
}
}
.login_tongyi {
font-size: 26rpx;
color: rgba(196, 196, 196, 1);
width: 620rpx;
margin: 32rpx auto;
text-align: center;
text {
color: rgba(86, 176, 236, 1);
}
}
.input {
padding: 0 30rpx 0 80rpx;
height: 80rpx;
background: #FFFFFF;
border-radius: 75rpx 75rpx 75rpx 75rpx;
font-size: 28rpx;
}
.inputplace {
font-weight: 400;
font-size: 28rpx;
color: #B5B5B5;
}
</style>

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

@@ -40,7 +40,7 @@
<!-- 所属区域下拉选择 -->
<view class="search-item">
<text class="label">所属区域</text>
<uni-data-picker ref="picker" class="picker" placeholder="请选择所属区域" popup-title="请选择所属区域" :localdata="regions" v-model="formData.helpArea"
<uni-data-picker ref="picker" class="picker" placeholder="请选择所属区域" popup-title="请选择所属区域" :localdata="regions" v-model="formData.deptTags"
@change="onchange" >
</uni-data-picker>
</view>
@@ -158,7 +158,7 @@
<view class="form-btns">
<button class="mini-btn form-box-btn detail-btn" size="mini" v-if="false">详情</button>
<button class="mini-btn form-box-btn follow-btn" size="mini" @click="goFollow(item)">跟进</button>
<button class="mini-btn form-box-btn recommend-btn" size="mini" >智能推荐</button>
<button class="mini-btn form-box-btn recommend-btn" size="mini" @click="goRecommend(item)">智能推荐</button>
</view>
</view>
</view>
@@ -180,10 +180,11 @@ const initialForm = {
idCard: '',
taskType: '',
createByName: '',
helpArea: [],
startTime: '',
endTime: '',
deptId:''
// helpArea: [],
// startTime: '',
// endTime: '',
// deptId:'',
deptTags:''
}
const formData = reactive({ ...initialForm });
const taskTypeOptions=ref([])
@@ -226,12 +227,22 @@ const handleReset = () =>{
getDataList('refresh')
}
onMounted(async () => {
await loadLevelData('201');
// await loadLevelData('201');
});
onLoad(() => {
getDictionary()
// getDeptOptions()
getDataList('refresh');
let token=uni.getStorageSync('fourLevelLinkage-token')
if(token){
$api.myRequest("/system/user/login/user/info", {}, "GET", 9100, {
Authorization: `Bearer ${uni.getStorageSync("fourLevelLinkage-token")}`
}).then(async (resData) => {
await loadLevelData(resData.sysUser.dept.deptId);
getDictionary()
getDataList('refresh');
});
}else{
navTo('/packageB/login2');
}
});
function getDictionary(){
$api.myRequest('/system/public/dict/data/type/assist_task_type').then((resData) => {
@@ -254,9 +265,9 @@ function getTaskTypeLabelByValue(value) {
return item ? item.text : '暂无帮扶类型'
}
// 加载某一级的数据parentId 为空表示根)
async function loadLevelData(parentId) {
async function loadLevelData(parentId,node) {
let header = {
'Authorization': uni.getStorageSync('Padmin-Token'),
'Authorization': uni.getStorageSync('fourLevelLinkage-token'),
'Content-Type': "application/x-www-form-urlencoded"
};
let params = { parentId };
@@ -269,15 +280,14 @@ async function loadLevelData(parentId) {
}
const formatted = (resData.data || []).map(item => ({
text: item.deptName,
value: item.deptId,
value: item.tags,
deptId: item.deptId,
children: []
}));
if (parentId === '201') {
// 第一层
regions.value = formatted;
} else {
// 找到父节点并注入 children
if(node){
injectChildren(parentId, formatted);
}else{
regions.value=formatted
}
} catch (error) {
console.error("加载部门数据失败:", error);
@@ -288,7 +298,7 @@ async function loadLevelData(parentId) {
function injectChildren(parentValue, childrenData) {
const findAndInject = (nodes) => {
for (let node of nodes) {
if (node.value === parentValue) {
if (node.deptId === parentValue) {
// 如果 children 已存在且非空,避免重复加载
if (!node.children || node.children.length === 0) {
node.children = childrenData;
@@ -308,7 +318,7 @@ function injectChildren(parentValue, childrenData) {
// 当用户选择时触发注意change 在每级选择后都会触发)
function onchange(e) {
const selectedValues = e.detail.value;
formData.deptId=selectedValues.map(item => item.value).join(',');
// formData.deptId=selectedValues.map(item => item.value).join(',');
if (selectedValues.length === 0) return;
// 获取最后一级选中的 value
const lastSelectedValue = selectedValues[selectedValues.length - 1];
@@ -317,7 +327,7 @@ function onchange(e) {
if (node && (!node.children || node.children.length === 0)) {
// 检查接口是否还有下一级(可通过接口返回判断,或先尝试加载)
// 这里我们直接尝试加载下一级
loadLevelData(lastSelectedValue.value);
loadLevelData(node.deptId , node);
picker.value.show()
}
}
@@ -336,7 +346,7 @@ function findNodeByValue(nodes, value) {
}
function getDeptOptions(){
let header={
'Authorization':uni.getStorageSync('Padmin-Token'),
'Authorization':uni.getStorageSync('fourLevelLinkage-token'),
'Content-Type': "application/x-www-form-urlencoded"
}
let params={
@@ -349,7 +359,7 @@ function getDataList(type = 'add') {
let maxPage=Math.ceil(totalNum.value/pageSize.value)
let params=({...formData})
let header={
'Authorization':uni.getStorageSync('Padmin-Token'),
'Authorization':uni.getStorageSync('fourLevelLinkage-token'),
'Content-Type': "application/x-www-form-urlencoded"
}
if (type === 'refresh') {
@@ -374,7 +384,11 @@ function getDataList(type = 'add') {
}
}
function goFollow(item) {
navTo(`/packageB/priority/helpFollow?id=${item.goal_person_id}&&name=${item.name}&&taskType=${getTaskTypeLabelByValue(item.task_type)}`);
navTo(`/packageB/priority/helpFollow?task_id=${item.task_id}&person_id=${item.person_id}&&name=${item.name}&&taskType=${getTaskTypeLabelByValue(item.task_type)}`);
}
//智能推荐
const goRecommend = (item) => {
navTo('/packageB/priority/recommend');
}
</script>

View File

@@ -105,7 +105,8 @@ const formData = reactive({
const personInfo=ref({
goalPersonId:'',
name:'',
taskType:''
taskType:'',
task_id:''
})
const followWays = ref([])
const followList = ref([])
@@ -161,11 +162,12 @@ const onDateChange = ( e) => {
}
function getFollowList(){
let header={
'Authorization':uni.getStorageSync('Padmin-Token'),
'Authorization':uni.getStorageSync('fourLevelLinkage-token'),
'Content-Type': "application/x-www-form-urlencoded"
}
let params={
goalPersonId:personInfo.value.goalPersonId
personId:personInfo.value.person_id,
taskId:personInfo.value.task_id
}
$api.myRequest('/dispatch/assist/records/getFollowList', params,'get',9100,header).then((resData) => {
console.log("resData",resData)
@@ -209,7 +211,7 @@ const handleSubmit = () => {
formRef.value?.validate()
.then(() => {
let header={
'Authorization':uni.getStorageSync('Padmin-Token')
'Authorization':uni.getStorageSync('fourLevelLinkage-token')
}
formData.goalPersonId=personInfo.value.goalPersonId
$api.myRequest('/dispatch/assist/records/addRecords', formData,'post',9100,header).then((resData) => {
@@ -245,9 +247,10 @@ const handleReset = () => {
formData.nextContactDate = '';
}
onLoad((options) => {
personInfo.value.goalPersonId=options.id
personInfo.value.person_id=options.person_id
personInfo.value.name=options.name
personInfo.value.taskType=options.taskType
personInfo.value.task_id=options.task_id
getDictionary()
getFollowList()
});

View File

@@ -0,0 +1,412 @@
<template>
<AppLayout :title="title" :show-bg-image="false">
<view class="main-list" :style="getBackgroundStyle('k.png')">
<view class="list-top">
<view class="list-title">
<text>岗位推荐列表</text>
<view class="title-line" style="left: 70rpx"></view>
</view>
</view>
<view class="jobListBox">
<view class="item" v-for="(job, index) in list" :key="index">
<view class="falls-card">
<view class="falls-card-pay">
<view class="pay-text">
<Salary-Expectation
:max-salary="job.maxSalary"
:min-salary="job.minSalary"
:is-month="true"
></Salary-Expectation>
</view>
<image
v-if="job.isHot"
class="flame"
src="/static/icon/flame.png"
></image>
</view>
<view class="falls-card-title">{{ job.jobTitle }}</view>
<view class="fl_box fl_warp">
<view class="falls-card-education mar_ri10" v-if="job.education">
<dict-Label
dictType="education"
:value="job.education"
></dict-Label>
</view>
<view class="falls-card-experience" v-if="job.experience">
<dict-Label
dictType="experience"
:value="job.experience"
></dict-Label>
</view>
</view>
<view class="falls-card-company">
{{ config.appInfo.areaName }}
<dict-Label
dictType="area"
:value="job.jobLocationAreaCode"
></dict-Label>
</view>
<view class="falls-card-pepleNumber">
<view>
<image class="point2" src="/static/icon/pintDate.png"></image>
<view class="fl_1">
{{ job.postingDate || "发布日期" }}
</view>
</view>
<view>
<image
class="point3"
src="/static/icon/pointpeople.png"
></image>
<view class="fl_1">
{{ vacanciesTo(job.vacancies) }}
</view>
</view>
</view>
<view class="falls-card-company2">
<image class="point3" src="/static/icon/point3.png"></image>
<view class="fl_1">
{{ job.companyName }}
</view>
</view>
</view>
</view>
</view>
</view>
<view class="main-list" :style="getBackgroundStyle('k.png')">
<view class="list-top">
<view class="list-title">
<text>政策推荐列表</text>
<view class="title-line" style="left: 70rpx"></view>
</view>
</view>
<view
style="margin-bottom: 24rpx; border-radius: 16rpx"
class="policy-list"
v-for="(item, index) in policyList"
:key="index"
@click="goPolicyDetail(item)"
>
<view class="sign">推荐</view>
<view class="title">
<image src="../../packageRc/static/zcLeft.png" />
{{ item.zcmc }}</view
>
<view class="infos">
<view v-if="item.zcLevel">{{ item.zcLevel }}</view>
<view v-if="item.sourceUnit">{{ item.sourceUnit }}</view>
</view>
<view class="bottom-line">
<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>
</AppLayout>
</template>
<script setup>
import { inject, ref, reactive, onMounted } from "vue";
const { $api, navTo, navBack, vacanciesTo } = inject("globalFunction");
import config from "@/config.js";
import { getPolicyList } from "@/packageB/apiRc/policy/index.js";
import AppLayout from "@/components/AppLayout/AppLayout.vue";
import dictLabel from "@/components/dict-Label/dict-Label.vue";
const title = ref("");
const baseUrl = config.imgBaseUrl;
const list = ref([]);
const getBackgroundStyle = (imageName) => ({
backgroundImage: `url(${baseUrl}/dispatch/${imageName})`,
backgroundSize: "cover", // 覆盖整个容器
backgroundPosition: "center", // 居中
backgroundRepeat: "no-repeat",
});
onMounted(() => {
getJobRecommend();
getPolicyData();
});
function getJobRecommend() {
$api
.createRequest(
"/cms/job/recommend",
{ pageSize: 8 },
"GET",
false,
{},
false
)
.then((resData) => {
if (resData.code == 200) {
list.value = resData.data
}
});
}
const policyList = ref([]);
function getPolicyData() {
getPolicyList({ pageNum: 1, pageSize: 8 }).then((res) => {
if(res.code == 200){
policyList.value = res.rows;
}
});
}
function goPolicyDetail(item) {
uni.navigateTo({
url: `/packageRc/pages/policy/policyDetail?id=${item.id}`
});
}
</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;
}
.list-top {
display: flex;
align-items: center;
justify-content: space-between;
}
.list-title {
font-weight: bold;
font-size: 36rpx;
color: #404040;
position: relative;
}
.title-line {
position: absolute;
bottom: -10rpx;
left: 36rpx;
width: 70rpx;
height: 8rpx;
background: linear-gradient(90deg, #ffad58 0%, #ff7a5b 100%);
border-radius: 4rpx;
}
.jobListBox {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding-top: 28rpx;
margin-top: 10rpx;
}
.item {
width: 48%;
position: relative;
border-radius: 6px;
margin-bottom: 10px;
background-color: #fff;
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.05);
.falls-card {
padding: 30rpx;
.falls-card-title {
font-family: "PingFangSC-Medium", "PingFang SC", "Helvetica Neue",
Helvetica, Arial, "Microsoft YaHei", sans-serif;
color: #606060;
text-align: left;
word-break: break-all;
font-weight: 500;
font-size: 32rpx;
color: #333333;
margin-top: 10rpx;
}
.falls-card-pay {
// height: 50rpx;
word-break: break-all;
color: #002979;
text-align: left;
display: flex;
align-items: end;
position: relative;
.pay-text {
font-family: DIN-Medium;
color: #4c6efb;
padding-right: 10rpx;
font-weight: 500;
font-size: 28rpx;
color: #4c6efb;
line-height: 45rpx;
text-align: left;
}
.flame {
position: absolute;
bottom: 0;
right: -10rpx;
transform: translate(0, -30%);
width: 24rpx;
height: 31rpx;
}
}
.falls-card-education,
.falls-card-experience {
width: fit-content;
height: 30rpx;
background: #f4f4f4;
border-radius: 4rpx;
padding: 6rpx 20rpx;
line-height: 30rpx;
font-weight: 400;
font-size: 24rpx;
color: #6c7282;
text-align: center;
margin-top: 20rpx;
white-space: nowrap;
}
.falls-card-company,
.falls-card-pepleNumber {
margin-top: 20rpx;
font-size: 24rpx;
color: #999999;
line-height: 25rpx;
text-align: left;
}
.falls-card-pepleNumber {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
margin-top: 10rpx;
font-weight: 400;
font-size: 24rpx;
color: #999999;
line-height: 46rpx;
view {
display: flex;
align-items: center;
white-space: nowrap;
.point2 {
margin: 0rpx 6rpx 0 2rpx;
height: 22rpx;
width: 22rpx;
}
.point3 {
margin: 0rpx 4rpx 0 0;
height: 28rpx;
width: 28rpx;
}
}
}
.falls-card-matchingrate {
margin-top: 10rpx;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 21rpx;
color: #4778ec;
text-align: left;
}
.falls-card-company2 {
margin-top: 4rpx;
font-size: 24rpx;
color: #999999;
text-align: left;
display: flex;
.point3 {
margin: 4rpx 4rpx 0 0;
height: 26rpx;
width: 26rpx;
}
}
}
}
.policy-list {
width: 100%;
margin: 0 auto;
color: #333333;
border-radius: 24rpx;
background: #ffffff;
padding: 28rpx 22rpx;
margin-top: 24rpx;
box-sizing: border-box;
position: relative;
.sign {
position: absolute;
font-size: 24rpx;
right: 0;
top: 0;
padding: 4rpx 14rpx;
border: 1rpx solid #ec4827;
background: rgba(227, 79, 49, 0.09);
border-top-right-radius: 24rpx;
border-bottom-left-radius: 24rpx;
color: #ec4827;
}
.top-line {
display: flex;
justify-content: space-between;
font-size: 24rpx;
color: #a2a2a2;
margin-bottom: 16rpx;
.salary {
font-size: 32rpx;
color: #4c6efb;
font-weight: bold;
}
}
.title {
font-size: 32rpx;
font-weight: bold;
color: #282828;
margin-bottom: 16rpx;
display: flex;
image {
width: 46rpx;
height: 46rpx;
margin-right: 11rpx;
}
}
.infos {
display: flex;
flex-wrap: wrap;
font-size: 24rpx;
margin-bottom: 16rpx;
line-height: 42rpx;
view {
padding: 0 16rpx;
margin-right: 10rpx;
background: #f2f2f2;
}
}
.bottom-line {
display: flex;
justify-content: space-between;
font-size: 24rpx;
color: #a2a2a2;
margin-top: 12rpx;
}
}
</style>

View File

@@ -13,7 +13,7 @@
</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>
<view>
<text>专项练习</text>
@@ -58,8 +58,57 @@ const { $api, navTo, vacanciesTo, formatTotal, config } = inject('globalFunction
import useUserStore from '@/stores/useUserStore';
import useDictStore from '@/stores/useDictStore';
function jumps(url){
navTo(url);
onLoad(() => {
thirdLogin()
});
async function jumps(url){
if(await thirdLogin()){
navTo(url);
}
}
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>

View File

@@ -129,6 +129,7 @@
<script setup>
import { inject, ref, reactive } from 'vue';
import { onLoad, onShow } from '@dcloudio/uni-app';
import dayjs from "dayjs";
const { $api, navTo, navBack,urls } = inject('globalFunction');
import config from "@/config.js"
const userInfo = ref({});
@@ -152,13 +153,7 @@ onLoad(() => {
});
onShow(()=>{
getDictionary()
const date = new Date();
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
dates.value=dayjs().format('YYYY-MM-DD HH:mm:ss')
Authorization.value=uni.getStorageSync('Padmin-Token')||''
getHeart();
})
@@ -337,13 +332,12 @@ function handleOperation(row,i) {
height: 90%;
.cards{
width: 100%;
height: 280rpx;
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;
padding: 30rpx 40rpx 10rpx;
box-sizing: border-box
.cardHead{
display: flex;

View File

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

View File

@@ -109,7 +109,7 @@
<div>题号</div>
<div style="font-size: 40rpx;" @click="clones()">×</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>
</div>
@@ -125,6 +125,7 @@ import useUserStore from '@/stores/useUserStore';
import useDictStore from '@/stores/useDictStore';
const userInfo = ref({});
const Authorization = ref('');
const cataType = ref('');
const radio = ref('');
const radio2 = ref('');
const checkList = ref([]);
@@ -161,6 +162,7 @@ watch(questionIndex, (newVal, oldVal) => {
// });
onLoad((options) => {
cataType.value = options.cataType;
Authorization.value=uni.getStorageSync('Padmin-Token')||''
getHeart();
});
@@ -202,7 +204,8 @@ function queryData(){
'Content-Type':"application/x-www-form-urlencoded"
}
$api.myRequest('/train/public/trainPractice/getQuestions', {
userId: userInfo.value.userId
userId: userInfo.value.userId,
category: cataType.value
},'post',9100,header).then((resData) => {
if(resData&&resData.code==200){
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

@@ -9,10 +9,20 @@
<view class="video-detail-container">
<!-- 视频播放组件 -->
<view class="video-wrapper">
<video v-if="videoInfo && videoInfo.cover" id="myVideo" :src="videoInfo.currentUrl" :poster="trainVideoImgUrl+ videoInfo.cover" @seeked="onSeeked"
preload="metadata"
enable-danmu controls style="width: 100%;" @pause="onPause" @timeupdate="onTimeupdate" @ended="onEnded"></video>
<video
v-if="videoInfo && videoInfo.cover && isVideoReady"
id="myVideo"
:src="videoInfo.currentUrl"
:poster="trainVideoImgUrl+ videoInfo.cover"
:initial-time="initialTime"
:autoplay="shouldAutoPlay"
enable-danmu
controls
style="width: 100%;"
@pause="onPause"
@timeupdate="onTimeupdate"
@ended="onEnded">
</video>
</view>
</view>
<view class="video-info" :style="getItemBackgroundStyle('video-bj2.png')">
@@ -134,7 +144,7 @@
</template>
<script setup>
import { inject, reactive,ref, onMounted, onUnmounted, nextTick } from 'vue';
import { inject, reactive,ref, onMounted, onUnmounted, nextTick ,watch} from 'vue';
import { onLoad,onHide,onUnload } from '@dcloudio/uni-app';
const { $api, navTo, navBack } = inject('globalFunction');
import config from "@/config.js"
@@ -148,10 +158,13 @@ const trainVideoImgUrl=config.trainVideoImgUrl
const categories=ref([])
const levalLabels=ref([])
const latestTime = ref(0)
const initialTime = ref(0)
const totalTime=ref(0)
const baseUrl = config.imgBaseUrl
const pageEnterTime = ref(0)
const currentChapter = ref(0)
const isVideoReady = ref(false)
const shouldAutoPlay = ref(false)
const getItemBackgroundStyle = (imageName) => ({
backgroundImage: `url(${baseUrl}/train/${imageName})`,
backgroundSize: '100% 100%', // 覆盖整个容器
@@ -168,18 +181,38 @@ const params = reactive({
videoId: '',
userId: ''
})
// 监听 initialTime 变化,确保设置完成后再渲染
watch(initialTime, (newVal) => {
if (newVal >= 0 && videoInfo.value && videoInfo.value.cover) {
// 延迟渲染,确保初始时间设置生效
nextTick(() => {
isVideoReady.value = true
shouldAutoPlay.value = newVal > 0
})
}
})
// 监听 videoInfo 变化
watch([videoInfo, initialTime], ([newVideoInfo, newInitialTime]) => {
if (newVideoInfo && newVideoInfo.cover && newInitialTime >= 0) {
nextTick(() => {
isVideoReady.value = true
shouldAutoPlay.value = newInitialTime > 0
})
}
}, { deep: true })
onLoad((options) => {
getHeart()
pageEnterTime.value = Date.now() // 记录毫秒时间戳
videoId.value=options.id
getDictionary()
});
onHide(() => {
updateVideoInfo() // 用缓存值,不要调 getCurrentTime
reportPageDuration()
})
// onHide(() => {
// updateVideoInfo() // 用缓存值,不要调 getCurrentTime
// reportPageDuration()
// })
onUnload(() => {
updateVideoInfo()
//updateVideoInfo()
saveCurrentChapterProgress()
reportPageDuration()
})
function getData() {
@@ -197,17 +230,22 @@ function getData() {
videoInfo.value.currentUrl=trainVideoImgUrl+videoInfo.value.trainClassList[0].url
videoInfo.value.percentage=((videoInfo.value.process/(videoInfo.value.hour*60))*100).toFixed(2)
videoInfo.value.uploadTime=videoInfo.value.uploadTime.split(' ')[0]
if(videoInfo.value.process !=null){
queryModelUserPlay(videoInfo.value.trainClassList[0].classId)
} else {
// 如果没有历史进度,直接准备渲染
initialTime.value = 0
}
updateVideoInfo()
});
}
function getHeart() {
const raw = uni.getStorageSync("Padmin-Token");
const token = typeof raw === "string" ? raw.trim() : "";
const headers = token ? { Authorization: raw.startsWith("Bearer ") ? raw : `Bearer ${token}` }: {}
const headers = token ? { Authorization: raw.startsWith("Bearer ") ? raw : `Bearer ${token}` }: {};
$api.myRequest("/dashboard/auth/heart", {}, "POST", 10100, headers).then((resData) => {
if (resData.code == 200) {
getUserInfo();
} else {
navTo('/packageB/login')
}
});
}
@@ -246,16 +284,18 @@ function getLevelLabelByValue(value) {
}
function onPause(e){
updateVideoInfo()
saveCurrentChapterProgress()
}
function onEnded(e){
updateVideoInfo()
saveCurrentChapterProgress()
}
function onTimeupdate(e){
latestTime.value = e.detail.currentTime
}
function onSeeked(){
updateVideoInfo()
}
// function onSeeked(){
// updateVideoInfo()
// }
// 更新播放时长
function updateVideoInfo(){
totalTime.value=0
@@ -277,15 +317,20 @@ function updateVideoInfo(){
'Authorization':uni.getStorageSync('Padmin-Token'),
'Content-Type': "application/x-www-form-urlencoded"
}
if(videoInfo.value.isCollect===null && videoInfo.value.process ===null){
$api.myRequest('/train/public/videoUser/add', paramsData,'post',9100,header).then((resData) => {
console.log("视频播放时长更新成功")
});
}else{
$api.myRequest('/train/public/videoUser/update', paramsData,'post',9100,header).then((resData) => {
console.log("视频播放时长更新成功")
});
}
$api.myRequest("/dashboard/auth/heart", {}, "POST", 10100, header).then((resData) => {
if (resData.code == 200) {
if(videoInfo.value.isCollect===null && videoInfo.value.process ===null && paramsData.process ==0 ){
$api.myRequest('/train/public/videoUser/add', paramsData,'post',9100,header).then((resData) => {
console.log("视频播放时长更新成功")
});
}else{
$api.myRequest('/train/public/videoUser/update', paramsData,'post',9100,header).then((resData) => {
console.log("视频播放时长更新成功")
});
}
}
})
}
// 计算并上报停留时长
function reportPageDuration() {
@@ -309,8 +354,58 @@ function reportPageDuration() {
}
}
function chapterChange(video,index){
saveCurrentChapterProgress()
currentChapter.value=index
videoInfo.value.currentUrl=trainVideoImgUrl+video.url
isVideoReady.value = false
shouldAutoPlay.value = false
queryModelUserPlay(video.classId)
}
const updateUserPlayClassHousr = (classId,hour) => {
let paramsData={
userId:userId.value,
classId:classId,
hour:hour,
dqHour:latestTime.value
}
let header={
'Authorization':uni.getStorageSync('Padmin-Token'),
'Content-Type': "application/x-www-form-urlencoded"
}
$api.myRequest('/train/public/videoUser/updateUserPlayClassHousr', paramsData,'post',9100,header).then((resData) => {
if(resData.code == 200){
console.log("学习时长更新成功")
}
});
}
const queryModelUserPlay = (classId) => {
let queryParams = {
classId: classId,
userId: userId.value,
};
let header = {
Authorization: uni.getStorageSync("Padmin-Token"),
"Content-Type": "application/x-www-form-urlencoded",
};
$api.myRequest("/train/public/videoUser/modelUserPlay", queryParams, "post", 9100, header).then((resData) => {
if(resData.code == 200){
initialTime.value=Number(resData?.data?.dqHour ?? 0)
}else {
initialTime.value = 0
}
}).catch(() => {
initialTime.value = 0
});
}
// 保存当前章节进度
function saveCurrentChapterProgress() {
if (videoInfo.value.trainClassList && videoInfo.value.trainClassList.length > 0) {
const currentVideo = videoInfo.value.trainClassList[currentChapter.value];
if (currentVideo) {
updateUserPlayClassHousr(currentVideo.classId, currentVideo.hour);
}
}
}
onUnmounted(() => {
@@ -491,4 +586,4 @@ onUnmounted(() => {
font-size: 28rpx;
color: #303133;
}
</style>
</style>

View File

@@ -80,7 +80,8 @@ const getItemBackgroundStyle = (imageName) => ({
});
const trainVideoImgUrl=config.trainVideoImgUrl
onLoad(() => {
onLoad(async () => {
await thirdLogin()
getDataList('refresh');
});
@@ -135,8 +136,53 @@ function getDataList(type = 'add') {
// 播放视频
function playVideo(video) {
navTo(`/packageB/train/video/videoDetail?id=${video.videoId}`);
async function playVideo(video) {
if(await thirdLogin()){
navTo(`/packageB/train/video/videoDetail?id=${video.videoId}`);
}
}
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>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -123,7 +123,6 @@
data() {
return {
platform: uni.getDeviceInfo().platform,
barHeight: wx.getWindowInfo().statusBarHeight,
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",
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() {
return {
platform: uni.getDeviceInfo().platform,
barHeight: wx.getWindowInfo().statusBarHeight,
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",
introduceUrl: "https://51xuanxiao.oss-cn-hangzhou.aliyuncs.com/Resource/xcx_sygh/report/personalTestReport.png",

View File

@@ -49,7 +49,6 @@
},
data() {
return {
barHeight: wx.getWindowInfo().statusBarHeight,
showVideo: 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",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,7 +1,7 @@
/*
* @Date: 2024-09-25 11:14:29
* @LastEditors: shirlwang
* @LastEditTime: 2025-11-04 08:56:59
* @LastEditTime: 2025-12-23 17:40:23
*/
import request from '@/utilsRc/request'
@@ -17,7 +17,7 @@ export function listJobRecommend(query) {
export function getWorkListReq(query) {
return request({
// url: '/personnel/personBaseInfo/postRecommend',
url: '/company/unitPostInfo/postElectedList',
url: '/manage/info/postElectedList',
method: 'get',
params: query
})
@@ -43,7 +43,7 @@ export function addJobRecommend(data) {
//岗位推荐保存和办结
export function saveJobRecommend(data) {
return request({
url: '/process/processJobRecommend/create',
url: '/process/processJobRecommend/createJob',
method: 'post',
data: data
})
@@ -70,7 +70,7 @@ export function delJobRecommend(ids) {
export function getAddedJobs(params) {
return request({
// url: '/company/postDeliverInfo/list',
url: '/company/unitPostInfo/no/permission/list',
url: '/manage/info/no/permission/list',
method: 'get',
params,
})

View File

@@ -1,7 +1,7 @@
<!--
* @Date: 2025-10-16 15:15:47
* @LastEditors: shirlwang
* @LastEditTime: 2025-11-06 16:09:23
* @LastEditTime: 2025-12-24 09:53:12
-->
<template>
<view>
@@ -572,6 +572,7 @@ view{box-sizing: border-box;display: block;}
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
.name{
font-size: 32rpx;
display: flex;

View File

@@ -412,7 +412,7 @@
@close="showTime = false"
></u-datetime-picker> -->
<!-- 社区端 - 显示隐藏退出组件 -->
<exitPopup />
<!-- <exitPopup /> -->
<DealDone ref="dealDone" @finished="getListPersonDemand();"/>
<!-- <uni-popup background-color="#fff" type="bottom"
ref="openDeal"

View File

@@ -1,7 +1,7 @@
<!--
* @Date: 2024-10-08 14:29:36
* @LastEditors: shirlwang
* @LastEditTime: 2025-11-04 16:16:45
* @LastEditTime: 2025-12-16 17:50:45
-->
<template>
<view class="page" style="background-image: url('../../../packageRc/static/pageBg.png');">
@@ -25,7 +25,7 @@
<trainService v-if="activeType == 4" :needId="id" :name="name" ref="type4" />
<otherService v-if="activeType == 5" :needId="id" :name="name" ref="type5" />
<!-- 社区端 - 显示隐藏退出组件 -->
<exitPopup />
<!-- <exitPopup /> -->
</view>
</template>

View File

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

View File

@@ -1,7 +1,7 @@
<!--
* @Date: 2024-10-08 14:29:36
* @LastEditors: shirlwang
* @LastEditTime: 2025-11-04 17:16:49
* @LastEditTime: 2025-12-16 17:50:03
-->
<template>
<view class="page" style="background-image: url('../../../packageRc/static/pageBg.png');">
@@ -21,7 +21,7 @@
<trainService v-if="activeType == 4" :needId="id" :name="name" ref="type4" />
<otherService v-if="activeType == 5" :needId="id" :name="name" ref="type5" />
<!-- 社区端 - 显示隐藏退出组件 -->
<exitPopup />
<!-- <exitPopup /> -->
</view>
</template>

View File

@@ -153,7 +153,7 @@
<!-- 社区端 - 显示隐藏退出组件 -->
<exitPopup />
<!-- <exitPopup /> -->
</view>
</template>
<script>

View File

@@ -273,14 +273,14 @@ import {
returnPerson,
updatePersonInfo,
} from "../../api/company/index.js";
import exitPopup from "../../components/exitPopup.vue";
// import exitPopup from "../../components/exitPopup.vue";
import {
getDicts
} from '@/packageRc/apiRc/system/dict.js'
export default {
name: "personnelList",
components: {
exitPopup,
// exitPopup,
},
data() {
return {

View File

@@ -16,18 +16,16 @@
</view>
</view>
<view class="tags">
<view class="tag">政策{{ policyDetail.zcLevel }}</view>
<view class="tag">政策级别{{ policyDetail.zcLevel }}</view>
</view>
<view class="infos">
<view class="info">发文单位{{ policyDetail.sourceUnit }}</view>
<view class="info">受理单位{{ policyDetail.acceptingUnit }}</view>
<view class="info">发布时间{{ policyDetail.publishTime || '--' }}</view>
<view class="info">浏览次数{{ policyDetail.viewNum }}</view>
</view>
</view>
<view class="main-ceontent-list">
<!-- 人才政策 -->
<view v-if="policyDetail.zcsylx == '1'">
<view>
<view
class="main-ceontent-list-item"
v-if="policyDetail.applicableObjects"
@@ -67,30 +65,15 @@
<span v-else> -- </span>
</view>
</view>
<view class="main-ceontent-list-item" v-if="policyDetail.zczc">
<view class="main-ceontent-list-item">
<view class="main-ceontent-list-item-title">政策内容</view>
<view class="main-ceontent-list-item-content">
<span v-if="policyDetail.zczc" v-html="policyDetail.zczc"></span>
<span v-else> -- </span>
</view>
</view>
<view class="main-ceontent-list-item" v-if="policyDetail.validity">
<view class="main-ceontent-list-item-title">政策申报时间</view>
<view class="main-ceontent-list-item-content">
{{ policyDetail.validity || "--" }}
</view>
</view>
</view>
<view class="main-ceontent-list-item" v-if="policyDetail.zcsylx == '2'">
<view class="main-ceontent-list-item-title">政策文件</view>
<view class="main-ceontent-list-item-content">
<span v-if="policyDetail.zcwj" v-html="policyDetail.zcwj"></span>
<span v-else> -- </span>
</view>
</view>
<view class="main-ceontent-list-item" v-if="policyDetail.zcsylx == '2'">
<view class="main-ceontent-list-item" >
<view class="main-ceontent-list-item-title">补贴标准</view>
<view class="main-ceontent-list-item-content">
<span v-if="policyDetail.btbz" v-html="policyDetail.btbz"></span>
@@ -98,153 +81,14 @@
</view>
</view>
<view class="main-ceontent-list-item" v-if="policyDetail.zcsylx == '2'">
<view class="main-ceontent-list-item" >
<view class="main-ceontent-list-item-title">经办渠道</view>
<view class="main-ceontent-list-item-content">
<span v-if="policyDetail.jbqd" v-html="policyDetail.jbqd"></span>
<span v-else> -- </span>
</view>
</view>
<view class="main-ceontent-list-item" v-if="policyDetail.zcsylx == '2'">
<view class="main-ceontent-list-item-title">申报条件</view>
<view class="main-ceontent-list-item-content">
<span
v-if="policyDetail.applyCondition"
v-html="policyDetail.applyCondition"
></span>
<span v-else> -- </span>
</view>
</view>
</view>
<!-- 社保政策 -->
<view class="main-ceontent-list" v-if="policyDetail.zcsylx == '3'">
<view class="main-ceontent-list-item">
<view class="main-ceontent-list-item-title">政策内容</view>
<view class="main-ceontent-list-item-content">
<span v-if="policyDetail.zczc" v-html="policyDetail.zczc"></span>
<span v-else> -- </span>
</view>
</view>
</view>
<view class="main-ceontent-list">
<view class="main-ceontent-list-item" v-if="policyDetail.sourceUnit">
<view class="main-ceontent-list-item-title">发文单位</view>
<view class="main-ceontent-list-item-content">
{{ policyDetail.sourceUnit || "--" }}
</view>
</view>
<view class="main-ceontent-list-item" v-if="policyDetail.publishTime">
<view class="main-ceontent-list-item-title">发文时间</view>
<view class="main-ceontent-list-item-content">
{{ policyDetail.publishTime || "--" }}
</view>
</view>
<view class="main-ceontent-list-item" v-if="policyDetail.acceptingUnit">
<view class="main-ceontent-list-item-title">受理单位</view>
<view class="main-ceontent-list-item-content">
{{ policyDetail.acceptingUnit || "--" }}
</view>
</view>
<view class="main-ceontent-list-item" v-if="policyDetail.phone">
<view class="main-ceontent-list-item-title">咨询电话</view>
<view class="main-ceontent-list-item-content">
<span v-if="policyDetail.phone" v-html="policyDetail.phone"></span>
<span v-else> -- </span>
</view>
</view>
</view>
<view
class="main-ceontent-list"
v-if="
policyDetail.applyGuide && policyDetail.zcsylx == '2' && policyDetail.sqcl
"
>
<view class="main-ceontent-list-item" v-if="policyDetail.applyGuide">
<view class="main-ceontent-list-item-title">申报指南</view>
<view class="main-ceontent-list-item-content">
<span
v-if="policyDetail.applyGuide"
v-html="policyDetail.applyGuide"
></span>
<span v-else> -- </span>
</view>
</view>
<!-- <view
class="main-ceontent-list-item"
v-if="policyDetail.zcsylx == '1' && policyDetail.practicable"
>
<view class="main-ceontent-list-item-title">申报流程</view>
<view class="main-ceontent-list-item-content">
{{ policyDetail.practicable || "--" }}
</view>
</view> -->
<view class="main-ceontent-list-item" v-if="policyDetail.zcsylx == '2'">
<view class="main-ceontent-list-item-title">申请材料</view>
<view class="main-ceontent-list-item-content">
<span v-if="policyDetail.sqcl" v-html="policyDetail.sqcl"></span>
<span v-else> -- </span>
</view>
</view>
</view>
<!-- <view class="main-ceontent-list" v-if="policyDetail.fileList">
<view class="main-ceontent-list-item">
<view class="main-ceontent-list-item-title">文件列表</view>
<view class="main-ceontent-list-item-content">
<el-table
ref="fileTable"
v-loading="fileTableLoading"
:data="fileTableData"
highlight-current-row
style="width: 100%"
header-row-class-name="header_class"
border
>
<el-table-column
label="序号"
type="index"
align="center"
width="100"
/>
<el-table-column
prop="fileName"
label="文件名称"
align="center"
show-overflow-tooltip=""
>
<template #default="scope">
<el-button
link
type="primary"
@click="downLoadFile(scope.row)"
>
{{ scope.row.fileName }}
</el-button>
</template>
</el-table-column>
<el-table-column
prop="operation"
label="操作"
align="center"
width="200"
show-overflow-tooltip
>
<template #default="scope">
<el-button
type="primary"
link
@click.stop="downLoadFile(scope.row)"
>
下载
</el-button>
</template>
</el-table-column>
</el-table>
</view>
</view>
</view> -->
</view>
</view>
</scroll-view>

View File

@@ -6,30 +6,23 @@
<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()" />
</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-bottom: 16px;color: #000;"> -->
<text> {{ total }} </text>
</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 - 202rpx);position: relative;z-index: 1;"
<scroll-view :scroll-y="true" style="height: calc(100vh - 232rpx);position: relative;z-index: 1;"
@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 class="sign">推荐</view>
<view class="title">
<image src="../../../packageRc/static/zcLeft.png"/>
{{item.zcmc}}</view>
<view class="infos">
<view v-if="item.zclx">{{item.zclx}}</view>
<view v-if="item.zcLevel">{{item.zcLevel}}</view>
<view v-if="item.sourceUnit">{{item.sourceUnit}}</view>
</view>
<view class="bottom-line">
<view><uni-icons color="#A2A2A2" type="info" size="12"></uni-icons>日期{{item.createTime}}</view>
<view>浏览数<text style="color: #6AA7E8">{{item.viewNum}}</text></view>
<view><uni-icons color="#A2A2A2" type="info" size="12"></uni-icons>日期{{item.publishTime}}</view>
</view>
</view>
<view style="padding-bottom: 24rpx;">
@@ -55,7 +48,6 @@ import { getPolicyList } from "@/packageRc/apiRc/policy";
},
data() {
return {
checkData: [],
queryParams: {
pageNum: 1,
pageSize: 10,
@@ -66,8 +58,8 @@ import { getPolicyList } from "@/packageRc/apiRc/policy";
loading: false,
}
},
onLoad() {
this.getCheckData()
onLoad(options) {
this.queryParams.zclx = options.zclx
},
onShow() {
this.search();
@@ -78,64 +70,10 @@ import { getPolicyList } from "@/packageRc/apiRc/policy";
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() {
this.showMorePage = true;
this.queryParams.pageNum = 1;
this.queryParams.pageSize = 10;
this.queryParams.pageSize = 20;
this.tableData = [];
this.total = 0;
this.getList();

View File

@@ -1,7 +1,7 @@
<!--
* @Date: 2024-10-08 14:29:36
* @LastEditors: shirlwang
* @LastEditTime: 2025-11-04 16:18:56
* @LastEditTime: 2025-12-24 09:41:00
-->
<template>
<view>
@@ -78,9 +78,9 @@
<view class="part-title" style="margin-top: 32rpx;">人员推荐记录</view>
<view class="inner-part">
<view v-for="(item, index) in tuijianList" :key="index" class="job-list">
<view>{{ item.postName }}</view>
<view style="color: #8492a6;margin-top: 7rpx;">工种{{item.recruitWorkTypeName}}</view>
<view style="color: #8492a6;margin-top: 7rpx;">单位名称{{item.unitName}}</view>
<view>{{ item.jobTitle }}</view>
<view style="color: #8492a6;margin-top: 7rpx;">工种{{item.jobCategory}}</view>
<view style="color: #8492a6;margin-top: 7rpx;">单位名称{{item.companyName}}</view>
<view class="del-btn" @click="removeTuijian(item)">删除</view>
</view>
<img v-if="!tuijianList.length" src="https://rc.jinan.gov.cn/qcwjyH5/static/images/person/empty.png"

View File

@@ -25,25 +25,25 @@
:class="{active: activeJobList.indexOf(item.id)!=-1}">
<!-- 岗位名称和薪资 -->
<view class="job-header">
<text class="job-title">{{item.postName}}</text>
<text class="job-salary">{{formatSalary(item.minRecruitmentSalary, item.highRecruitmentSalary)}}</text>
<text class="job-title">{{item.jobTitle}}</text>
<text class="job-salary">{{formatSalary(item.minSalary, item.maxSalary)}}</text>
</view>
<!-- 标签区域 -->
<view class="tag-area">
<text class="tag">{{getDictLabel(item.minEducation, xue_li) || '学历不限'}}</text>
<text class="tag">{{item.profession || '专业不限'}}</text>
<text class="tag">全职</text>
<text class="tag">{{item.minEducation || '学历不限'}}</text>
<!-- <text class="tag">{{item.profession || '专业不限'}}</text> -->
<!-- <text class="tag">全职</text> -->
</view>
<!-- 公司信息 -->
<view class="company-info">
<view class="company-detail">
<text class="company-name">{{item.unitName}}</text>
<text class="company-name">{{item.companyName}}</text>
<view class="location-line">
<text class="location">
<text class="location-icon">📍</text>
{{item.workLocation || '暂无地址'}}
{{item.jobLocation || '暂无地址'}}
</text>
</view>
@@ -115,7 +115,7 @@ export default {
// this.workParams = workParams
this.workParams = {
// ...workParams,
recruitWorkType: workParams.recruitWorkType,
jobCategory: workParams.recruitWorkType,
// longitude: workParams.longitude,
// latitude: workParams.latitude,
pageNum: 1,

View File

@@ -138,18 +138,18 @@
"navigationBarTitleText": "简历示例"
}
},
{
"path": "pages/service/salary-info",
"style": {
"navigationBarTitleText": "薪酬信息"
}
},
{
"path": "pages/service/guidance",
"style": {
"navigationBarTitleText": "服务指导"
}
}
{
"path": "pages/service/salary-info",
"style": {
"navigationBarTitleText": "薪酬信息"
}
},
{
"path": "pages/service/guidance",
"style": {
"navigationBarTitleText": "服务指导"
}
}
],
"subpackages": [
{
@@ -298,6 +298,14 @@
"navigationBarTitleText": " 企业详情",
"navigationBarBackgroundColor": "#FFFFFF"
}
},
{
"path": "pages/resumeDetail/resumeDetail",
"style": {
"navigationBarTitleText": "简历详情",
"navigationBarBackgroundColor": "#4778EC",
"navigationBarTextStyle": "white"
}
}
]
},
@@ -322,12 +330,24 @@
"navigationBarTitleText": "登录"
}
},
{
"path": "login2",
"style": {
"navigationBarTitleText": "登录"
}
},
{
"path": "train/index",
"style": {
"navigationBarTitleText": "技能评价"
}
},
{
"path": "train/practice/startPracticingList",
"style": {
"navigationBarTitleText": "专项训练"
}
},
{
"path": "train/practice/startPracticing",
"style": {
@@ -381,6 +401,12 @@
"style": {
"navigationBarTitleText": "跟进"
}
},
{
"path": "priority/recommend",
"style": {
"navigationBarTitleText": "推荐"
}
},
{
"path": "train/wrongAnswer/mistakeNotebook",
@@ -399,6 +425,42 @@
"style": {
"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,12 +22,68 @@
@click="getFair('refresh')"></uni-icons>
<input class="input" placeholder="招聘会" placeholder-class="inputplace"
v-model="pageState.jobFairTitle" />
<view class="btn-feel" v-show="state.current != 3" @click="openFilter">筛选</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">
<scroll-view scroll-y class="main-scroll" @scrolltolower="handleScrollToLower">
<scroll-view scroll-y class="main-scroll" :class="{fullHeightScroll:!showTabar}" @scrolltolower="handleScrollToLower">
<view class="cards" v-if="fairList.length">
<view class="card press-button" v-for="(item, index) in fairList" :key="index"
@click="goDetail(item.jobFairId)">
@@ -74,10 +130,12 @@
</scroll-view>
</view>
<!-- 自定义tabbar -->
<CustomTabBar :currentPage="1" />
<template v-if="showTabar">
<CustomTabBar :currentPage="5" />
</template>
<!-- 微信授权登录弹窗 -->
<WxAuthLogin ref="wxAuthLoginRef" @success="handleLoginSuccess"></WxAuthLogin>
<!-- <WxAuthLogin ref="wxAuthLoginRef" @success="handleLoginSuccess"></WxAuthLogin> -->
</view>
</view>
</template>
@@ -108,7 +166,7 @@
longitudeVal,
latitudeVal
} = storeToRefs(useLocationStore());
const wxAuthLoginRef = ref(null);
// const wxAuthLoginRef = ref(null);
const {
$api,
navTo,
@@ -131,8 +189,8 @@
jobFairTitle: "",
});
const baseUrl = config.imgBaseUrl;
onLoad(() => {
const showTabar = ref(false);
onLoad(async () => {
// const today = new Date();
// const year = today.getFullYear();
// const month = String(today.getMonth() + 1).padStart(2, '0');
@@ -149,18 +207,118 @@
onShow(() => {
// 更新自定义tabbar选中状态
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;
};
onMounted(() => {
// 监听退出登录事件,显示微信登录弹窗
uni.$on("showLoginModal", () => {
wxAuthLoginRef.value?.open();
});
});
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){
let form={}
if (uni.getStorageSync('userInfo') && (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') && uni.getStorageSync('userInfo').isCompanyUser=='0') {
form={
usertype: "2",
enterprisecode: uni.getStorageSync('userInfo').idCard,
enterprisename: uni.getStorageSync('userInfo').name,
contactperson: "",
contactphone: "",
idno: "",
name: ""
}
}else{
if(needToast){
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)
isLogin.value = true;
return true;
}else{
uni.showToast({
icon: 'none',
title: '单点异常'
})
return false;
}
}
onUnmounted(() => {
uni.$off("showLoginModal");
});
// onMounted(() => {
// // 监听退出登录事件,显示微信登录弹窗
// uni.$on("showLoginModal", () => {
// wxAuthLoginRef.value?.open();
// });
// });
watch(() => userInfo.value.userType, (newVal) => {
if(newVal=='ent'){
showTabar.value = true
}else{
showTabar.value = false
}
},{ immediate: true ,deep: true})
// onUnmounted(() => {
// uni.$off("showLoginModal");
// });
// 登录成功回调
const handleLoginSuccess = () => {
@@ -168,19 +326,21 @@
// 可以在这里添加登录成功后的处理逻辑
};
function goDetail(jobFairId){
if(state.current != 3){
navTo('/packageA/pages/exhibitors/exhibitors?jobFairId=' + jobFairId)
}else{
console.log(userInfo.value, 'userInfo');
if(userInfo.value){
if(userInfo.value.userType=='ent'){
navTo('/packageB/jobFair/detailCom?jobFairId=' + jobFairId)
}else{
navTo('/packageB/jobFair/detailPerson?jobFairId=' + jobFairId)
async function goDetail(jobFairId){
if(state.current != 3 ){
await thirdLogin()
navTo('/packageA/pages/exhibitors/exhibitors?jobFairId=' + jobFairId)
}else{
if(await thirdLogin('1')){
if(userInfo.value){
if(userInfo.value.userType=='ent'){
navTo('/packageB/jobFair/detailCom?jobFairId=' + jobFairId)
}else{
navTo('/packageB/jobFair/detailPerson?jobFairId=' + jobFairId)
}
}
}
}
}
}
function toSelectDate() {
@@ -210,22 +370,25 @@
state.current = currented;
}
function seemsg(index) {
state.current = index;
async function seemsg(index) {
if (index != 3) {
state.current = index;
getFair("refresh");
} else {
if (!isLogin.value) {
getHeart();
return;
}
// 确保获取到用户信息后再请求“我参与的”列表
if (!userInfo.value?.info?.userId) {
getUser().then(() => {
if(await thirdLogin('1')){
if (!isLogin.value) {
getHeart();
return;
}
state.current = index;
// 确保获取到用户信息后再请求“我参与的”列表
if (!userInfo.value?.info?.userId) {
getUser().then(() => {
getMyFair("refresh");
});
} else {
getMyFair("refresh");
});
} else {
getMyFair("refresh");
}
}
}
}
@@ -244,20 +407,25 @@
}
};
function getHeart() {
async function getHeart() {
const raw = uni.getStorageSync("Padmin-Token");
const token = typeof raw === "string" ? raw.trim() : "";
var isLogins = await thirdLogin();
const headers = token ? {
Authorization: raw.startsWith("Bearer ") ? raw : `Bearer ${token}`
} : {};
$api.myRequest("/dashboard/auth/heart", {}, "POST", 10100, headers).then((resData) => {
if (resData.code == 200) {
if (isLogins) {
isLogin.value = true;
getUser();
} else {
isLogin.value = false;
$api.msg('请先登录')
getFair("refresh");
}
});
@@ -274,11 +442,27 @@
// 正确映射响应为用户信息(优先使用 data 字段)
const data = resData?.data ?? resData;
userInfo.value = data || {};
if(data?.info?.entCreditCode && data?.info?.userId){
updateEnterpriseId({
unifiedSocialCreditCode: data?.info?.entCreditCode,
userId: data?.info?.userId,
})
}
getFair("refresh");
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") {
if (type === "refresh") {
pageState.pageNum = 1;
@@ -339,6 +523,7 @@
pageSize: pageState.pageSize,
jobFairTitle: pageState.jobFairTitle,
jobFairType: state.current,
dictValue: selectedValues.value,
};
if (isLogin.value) {
if (userInfo.value.userType == "ent") {
@@ -496,7 +681,168 @@
return dates;
}
</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">
.app-custom-root {
position: fixed;
@@ -514,7 +860,7 @@
}
.app-container .container-header {
background: url("@/static/icon/background2.png") 0 0 no-repeat;
// background: url("@/static/icon/background2.png") 0 0 no-repeat;
background-size: 100% 400rpx;
}
@@ -558,6 +904,8 @@
padding: 0 24rpx;
width: calc(100% - 48rpx);
position: relative;
display: flex;
align-items: center;
}
.app-container .container-header .header-input .iconsearch {
@@ -573,6 +921,7 @@
background: #ffffff;
border-radius: 75rpx;
font-size: 28rpx;
flex:1
}
.app-container .container-header .header-input .inputplace {
@@ -580,7 +929,13 @@
font-size: 28rpx;
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 {
padding: 28rpx;
display: flex;
@@ -641,7 +996,9 @@
width: 100%;
height: calc(100% - 150rpx);
}
.fullHeightScroll{
height: 100% !important;
}
.cards {
padding: 28rpx;
}

View File

@@ -184,7 +184,6 @@
src="/static/icon/addGroup.png"
></image>
</view>
<!-- sendmessgae Button-->
<view class="btn-box purple" v-if="textInput && !isTyping" @click="sendMessage">
<image class="send-btn" src="/static/icon/send3.png"></image>
@@ -199,6 +198,7 @@
<view class="btn-box-round"></view>
</view>
</view>
<view class="ai-tips">本服务为AI生成内容结果仅供参考</view>
<!-- btn -->
<CollapseTransition :show="showfile">
<view class="area-tips">
@@ -1021,13 +1021,26 @@ image-margin-top = 40rpx
}
.input-area {
padding: 32rpx 28rpx 24rpx 28rpx;
padding-bottom: calc(24rpx + env(safe-area-inset-bottom) + 40rpx - 40rpx);
/* #ifdef H5 */
padding-bottom: calc(24rpx + env(safe-area-inset-bottom) + 70rpx);
/* #endif */
/* #ifdef MP-WEIXIN */
/* 小程序不支持CSS中的本地图片使用image标签替代 */
padding-bottom: calc(24rpx + env(safe-area-inset-bottom) + 40rpx - 50rpx);
/* #endif */
position: relative;
background: #FFFFFF;
box-shadow: 0rpx -4rpx 10rpx 0rpx rgba(11,44,112,0.06);
transition: height 2s ease-in-out;
z-index: 1001;
}
.ai-tips{
font-size: 24rpx;
color: #8c8c8c;
line-height: 33rpx;
margin-top: 18rpx;
text-align: center;
}
.input-area::after
position: absolute
content: ''

View File

@@ -268,11 +268,11 @@ const openSelectPopup = (config) => {
// #endif
};
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({
station: [],
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)),
areaText: '',
educationText: '',
@@ -614,10 +614,10 @@ function changeSalay() {
title: '薪资',
maskClick: true,
data: [state.lfsalay, state.risalay],
unit: 'k',
unit: '',
success: (_, [min, max]) => {
fromValue.salaryMin = min.value * 1000;
fromValue.salaryMax = max.value * 1000;
fromValue.salaryMin = min.value;
fromValue.salaryMax = max.value;
state.salayText = `${fromValue.salaryMin}-${fromValue.salaryMax}`;
},
change(e) {

View File

@@ -25,9 +25,7 @@
<view class="company-info">
<view class="company-name">{{ companyInfo.name || '企业名称' }}</view>
<view class="company-details">
<text class="industry">{{ companyInfo.industry || '互联网' }}</text>
<text class="separator">·</text>
<text class="size">{{ companyInfo.scale || '100-999人' }}</text>
<text class="size">企业规模: {{ getDictLabel('scale', companyInfo.scale) || '暂无规模数据' }}</text>
</view>
</view>
@@ -77,15 +75,15 @@
<!-- H5端专用按钮 -->
<!-- #ifdef H5 -->
<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>
<view class="h5-action-btn press-button" @click="handleServiceClick('resume-creation')">
</view> -->
<view class="h5-action-btn press-button" @click="handelGoResumeGuide()">
<view class="btn-text">简历指导</view>
</view>
</view>
<!-- #endif -->
<!-- 服务功能网格 -->
<!-- #ifndef H5 -->
<view class="service-grid" v-if="shouldShowJobSeekerContent">
@@ -150,11 +148,42 @@
</view>
<view class="service-title">职业规划推荐</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">
<span style="display:block;width:40rpx;height:40rpx;border-radius:100%;border:4rpx #ffffff solid;line-height:40rpx;text-align:center;"></span>
</view>
<view class="service-title">薪酬信息</view>
</view> -->
<view class="service-item press-button" @click="handleJobFairClick">
<view class="service-icon service-icon-1">
<uni-icons type="shop" size="32" color="#FFFFFF"></uni-icons>
</view>
<view class="service-title">招聘会</view>
</view>
<view class="service-item press-button" v-if="isFourLevelLinkagePurview" @click="helpClick">
<view class="service-icon service-icon-1">
<uni-icons type="shop" size="32" color="#FFFFFF"></uni-icons>
</view>
<view class="service-title">帮扶</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>
<!-- #endif -->
@@ -252,6 +281,7 @@
@scrolltolower="scrollBottom"
:enable-back-to-top="false"
:scroll-with-animation="false"
@touchmove.stop.prevent
>
<view class="falls" v-if="list.length">
<!-- #ifdef MP-WEIXIN -->
@@ -516,7 +546,7 @@ const shouldShowCompanyContent = computed(() => {
});
import useDictStore from '@/stores/useDictStore';
const { getTransformChildren, oneDictData } = useDictStore();
const { getTransformChildren, oneDictData, dictLabel: getDictLabel, industryLabel } = useDictStore();
import useLocationStore from '@/stores/useLocationStore';
import selectFilter from '@/components/selectFilter/selectFilter.vue';
import { useRecommedIndexedDBStore, jobRecommender } from '@/stores/useRecommedIndexedDBStore.js';
@@ -579,6 +609,14 @@ const wxAuthLoginRef = ref(null);
const state = reactive({
tabIndex: 'all',
});
//帮扶模块跳转
const helpClick = () => {
navTo('/packageB/priority/helpFilter');
};
//招聘会模块跳转
const handleJobFairClick = () => {
navTo('/pages/careerfair/careerfair');
};
const list = ref([]);
const pageState = reactive({
page: 0,
@@ -598,12 +636,13 @@ const rangeOptions = ref([
{ value: 1, text: '最热' },
{ value: 2, text: '最新发布' },
{ value: 3, text: '疆外' },
{ value: 4, text: '零工市场' }
]);
const isLoaded = ref(false);
const isInitialized = ref(false); // 添加初始化标志
const { columnCount, columnSpace } = useColumnCount(() => {
pageState.pageSize = 10 * (columnCount.value - 1);
pageState.pageSize = 10 * (columnCount.value - 1) + 10;
// 只在首次初始化时调用,避免重复调用
if (!isInitialized.value) {
@@ -668,24 +707,44 @@ const goToCompanyInfo = () => {
navTo('/pages/mine/company-info');
};
// 组件初始化时加载数据
onMounted(() => {
// 获取企业信息
getCompanyInfo();
// 监听退出登录事件,显示微信登录弹窗
// pageNull.value = 0;
uni.$on('showLoginModal', () => {
wxAuthLoginRef.value?.open();
pageNull.value = 0;
});
});
onMounted(() => {
// 在组件挂载时绑定事件监听,确保只绑定一次
// 先移除可能存在的旧监听,避免重复绑定
uni.$off('showLoginModal');
// 绑定新的监听
uni.$on('showLoginModal', () => {
console.log('收到showLoginModal事件打开登录弹窗');
wxAuthLoginRef.value?.open();
pageNull.value = 0;
});
// 获取企业信息
getCompanyInfo();
});
onUnmounted(() => {
// 组件销毁时移除事件监听
uni.$off('showLoginModal');
});
onShow(() => {
// 获取最新的企业信息
// 页面显示时获取最新的企业信息
getCompanyInfo();
// 四级联动单点及权限
getIsFourLevelLinkagePurview();
});
// 监听用户信息变化,当登录状态改变时重新获取企业信息
@@ -713,22 +772,66 @@ const handleLoginSuccess = () => {
// 重新获取企业信息
getCompanyInfo();
//四级联动单点及权限
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()) {
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) => {
if (checkLogin()) {
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 = () => {
// #ifdef MP-WEIXIN
@@ -762,6 +865,7 @@ const handleLiveClick = () => {
const handleSalaryInfoClick = () => {
navTo('/pages/service/salary-info');
};
const handleH5SalaryClick = () => {
const salaryUrl = "https://www.mohrss.gov.cn/SYrlzyhshbzb/laodongguanxi_/fwyd/202506/t20250627_544623.html";
window.location.assign(salaryUrl);
@@ -776,12 +880,13 @@ async function loadData() {
throw err;
}
}
const pageNull = ref(0);
function scrollBottom() {
if (loadmoreRef.value && typeof loadmoreRef.value.change === 'function') {
loadmoreRef.value.change('loading');
}
if (state.tabIndex === 'all') {
pageNull.value++;
getJobRecommend();
} else {
getJobList();
@@ -839,15 +944,7 @@ function clearfindJob(job) {
}
function nextDetail(job) {
// 登录检查
if (checkLogin()) {
// 记录岗位类型,用作数据分析
if (job.jobCategory) {
const recordData = recommedIndexDb.JobParameter(job);
recommedIndexDb.addRecord(recordData);
}
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}`);
}
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}`);
}
function navToService(serviceType) {
@@ -943,6 +1040,12 @@ function handelHostestSearch(val) {
isShowJw.value = val.value;
pageState.search.order = val.value;
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') {
getJobRecommend('refresh');
} else {
@@ -957,12 +1060,26 @@ function getJobRecommend(type = 'add') {
if (waterfallsFlowRef.value) waterfallsFlowRef.value.refresh();
}
let params = {
pageSize: pageState.pageSize,
pageSize: pageState.pageSize + 10,
sessionId: useUserStore().seesionId,
...pageState.search,
...conditionSearch.value,
isPublish: 1,
};
// 当选中零工市场(4)或疆外(3)时order参数传递0
if (pageState.search.order === 3 || pageState.search.order === 4) {
params.order = 0;
}
// 优先从store获取如果为空则从缓存获取
const storeIsCompanyUser = userInfo.value?.isCompanyUser;
const cachedUserInfo = uni.getStorageSync('userInfo') || {};
const cachedIsCompanyUser = cachedUserInfo.isCompanyUser;
const userType = storeIsCompanyUser !== undefined ? Number(storeIsCompanyUser) : Number(cachedIsCompanyUser);
console.log('---------userType-----', userType)
// 只有企业用户(isCompanyUser=0)才添加current字段
if (userType === 0) {
params.current = pageNull.value;
}
let comd = { recommend: true, jobCategory: '', tip: '确认你的兴趣,为您推荐更多合适的岗位' };
$api.createRequest('/app/job/recommend', params).then((resData) => {
const { data, total } = resData;
@@ -994,6 +1111,11 @@ function getJobRecommend(type = 'add') {
const reslist = dataToImg(data);
list.value = reslist;
}
if (data.length > 0) {
pageNull.value++;
} else {
$api.msg('没有更多岗位了');
}
// 切换状态
if (loadmoreRef.value && typeof loadmoreRef.value.change === 'function') {
if (data.length < pageState.pageSize) {
@@ -1020,17 +1142,21 @@ function getJobList(type = 'add') {
// waterfallsFlowRef.value.refresh();
if (waterfallsFlowRef.value) waterfallsFlowRef.value.refresh();
}
let params = {
current: pageState.page,
pageSize: pageState.pageSize,
...pageState.search,
// ...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) => {
const { rows, total } = resData;
if (type === 'add') {
const str = pageState.pageSize * (pageState.page - 1);
const str = pageState.pageSize * (pageState.page - 1) + 10;
const end = list.value.length;
const reslist = dataToImg(rows);
list.value.splice(str, end, ...reslist);
@@ -1049,7 +1175,21 @@ function getJobList(type = 'add') {
}
});
}
const isFourLevelLinkagePurview=ref(false)
const getIsFourLevelLinkagePurview=()=>{
let userInfo = uni.getStorageSync('userInfo')
if(userInfo){
$api.myRequest('/auth/login2/ks',{userid: userInfo.dwUserid, idcardno: userInfo.idCard},"POST",9100,{}).then(res=>{
if(res.code == 200){
uni.setStorageSync('fourLevelLinkage-token',res.data.access_token)
let roleIdList= ['103','106','107']
if(res.data.roleIdList.some(item=>roleIdList.includes(item))){
isFourLevelLinkagePurview.value=true
}
}
})
}
}
function dataToImg(data) {
const result = data.map((item) => ({
...item,
@@ -1065,10 +1205,24 @@ import storeRc from '@/utilsRc/store/index.js';
function goRc(){
if (checkLogin()) {
let userInfo = uni.getStorageSync('userInfo')
storeRc.dispatch('LoginByUserInfo', userInfo).then(res => {
// console.log(res, "'res");
navTo('/packageRc/pages/index/index');
});
if(userInfo.isCompanyUser == 2){
storeRc.dispatch('LoginByID', userInfo.dwUserid || 2025111679160750).then(res => {
// storeRc.dispatch('LoginByID', 2025111679160750).then(res => {
storeRc.dispatch('GetInfo').then(res => {
navTo('/packageRc/pages/daiban/daiban');
});
});
// test0001 202511491561998
// test0002 202511381669113
// test0003 2025111679160750
}else if(userInfo.isCompanyUser == 1){
storeRc.dispatch('LoginByUserInfo', userInfo).then(res => {
navTo('/packageRc/pages/index/index');
})
}else{
showToast('企业账号无法查看此模块~');
}
// storeRc.dispatch('LoginByID', userInfo.userId).then(res => {
}
}
// 跳转到素质测评
@@ -1076,7 +1230,7 @@ function goCa(){
if (checkLogin()) {
let userInfo = uni.getStorageSync('userInfo')
storeRc.dispatch('LoginByUserInfo', userInfo).then(res => {
navTo(`/packageCa/search/search?name=${userInfo.name}&idCard=${userInfo.idCard}`);
navTo(`/packageCa/search/search?name=${userInfo.name}&userId=${userInfo.idCard}`);
});
}
}
@@ -1085,7 +1239,7 @@ function goCaAI(){
if (checkLogin()) {
let userInfo = uni.getStorageSync('userInfo')
storeRc.dispatch('LoginByUserInfo', userInfo).then(res => {
navTo(`/packageCa/search/AIAudition?name=${userInfo.name}&idCard=${userInfo.idCard}`);
navTo(`/packageCa/search/AIAudition?name=${userInfo.name}&userId=${userInfo.idCard}`);
});
}
}
@@ -1585,8 +1739,8 @@ defineExpose({ loadData });
font-weight: 400;
font-size: 32rpx;
color: #666D7F;
margin-right: 24rpx
padding: 0rpx 16rpx
margin-right: 8rpx
padding: 0rpx 6rpx
.active
font-weight: 500;
font-size: 32rpx;
@@ -1605,12 +1759,24 @@ defineExpose({ loadData });
background: #F4F4F4
flex: 1
overflow: hidden
height: 0; // 确保flex容器正确计算高度
// 确保flex容器正确计算高度
position: relative;
.falls-scroll
width: 100%
height: 100%
// 确保滚动容器可以正常滚动
-webkit-overflow-scrolling: touch;
// 解决H5端嵌套环境滑动问题
touch-action: pan-y;
/* #ifdef H5 */
// 修复H5端在一体机嵌套环境中的滚动问题
overflow-y: auto;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
/* #endif */
.falls
padding: 28rpx 28rpx;
.item

View File

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

View File

@@ -132,6 +132,19 @@
<view class="picker-text" data-placeholder="请选择岗位分类">{{ selectedJobCategory || '请选择岗位分类' }}</view>
</picker>
</view>
<!-- 新增岗位类型 -->
<view class="form-group">
<view class="label">岗位标签</view>
<view
class="picker"
@click="openJobTypeSelector"
>
<view class="picker-text" :class="{ 'placeholder': !selectedJobTypeLabel }">
{{ selectedJobTypeLabel || '请选择岗位标签' }}
</view>
</view>
</view>
</view>
<!-- 图片上传区块 -->
@@ -216,6 +229,14 @@
v-model="contact.name"
/>
</view>
<view class="form-group">
<view class="label">职位</view>
<input
class="input"
placeholder="请输入职位"
v-model="contact.position"
/>
</view>
<view class="form-group">
<view class="label">联系电话</view>
<input
@@ -245,6 +266,9 @@
<!-- 自定义tabbar -->
<CustomTabBar :currentPage="1" />
<!-- 岗位类型选择器 -->
<selectJobs ref="jobTypeSelector" />
</view>
</template>
@@ -257,6 +281,7 @@ import config from '@/config.js';
import useDictStore from '@/stores/useDictStore';
import useUserStore from '@/stores/useUserStore';
import UniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue';
import selectJobs from '@/components/selectJobs/selectJobs.vue';
const userStore = useUserStore();
const cachedUserInfo = uni.getStorageSync('userInfo') || {};
// 表单数据
@@ -268,7 +293,8 @@ const formData = reactive({
vacancies: '', // 招聘人数
description: '', // 对应接口字段 description
jobRequirements: '',
jobCategory: '', // 新增:岗位分类
type: '', // 岗位分类用户指示使用type字段
jobCategory: '', // 岗位类型
companyId: '', // 新增企业id
latitude: '', // 新增:纬度
longitude: '', // 新增:经度
@@ -280,6 +306,7 @@ const formData = reactive({
contacts: [
{
name: '',
position: '',
phone: ''
}
]
@@ -304,10 +331,15 @@ const selectedExperience = ref('');
const selectedWorkDistrict = ref('');
const selectedWorkLocation = ref('');
const selectedJobCategory = ref('');
const selectedJobTypeLabel = ref(''); // 新增:岗位类型显示文本
const selectedJobTypeIds = ref(''); // 新增岗位类型ID多个用逗号分隔
// 滚动视图高度
const scrollViewHeight = ref('calc(100vh - 200rpx)');
// 岗位类型选择器引用
const jobTypeSelector = ref(null);
// 计算滚动视图高度
const calculateScrollViewHeight = () => {
const systemInfo = uni.getSystemInfoSync();
@@ -404,19 +436,18 @@ const initFormData = async () => {
// 设置区县选项(从字典获取)
workDistricts.value = dictStore.state.area;
// 设置岗位分类选项
// 只有就业见习基地才能选择"实习实训"选项
// 设置岗位分类选项 - 从字典获取 position_type
const positionTypeDict = await dictStore.getDictSelectOption('position_type');
console.log('从字典获取的岗位类型数据:', positionTypeDict);
// 过滤岗位类型选项:只有就业见习基地才能选择"实习实训"选项
// 假设实习实训的 value 为 '3'
if (isInternshipBase.value) {
jobCategories.value = [
{ label: '普通', value: '1' },
{ label: '零工', value: '2' },
{ label: '实习实训', value: '3' }
];
// 如果是就业见习基地,显示所有选项
jobCategories.value = positionTypeDict;
} else {
jobCategories.value = [
{ label: '普通', value: '1' },
{ label: '零工', value: '2' }
];
// 如果不是就业见习基地,过滤掉实习实训选项
jobCategories.value = positionTypeDict.filter(item => item.dictSort !== 2);
}
console.log('岗位分类选项:', jobCategories.value);
@@ -478,7 +509,27 @@ const onJobCategoryChange = (e) => {
const index = e.detail.value;
const selectedItem = jobCategories.value[index];
selectedJobCategory.value = selectedItem.label;
formData.jobCategory = selectedItem.value;
formData.type = selectedItem.value; // 岗位分类保存到type字段
};
// 打开岗位类型选择器
const openJobTypeSelector = () => {
if (!jobTypeSelector.value) return;
jobTypeSelector.value.open({
title: '选择岗位类型',
success: (ids, labels) => {
// 保存选中的岗位类型
selectedJobTypeIds.value = ids;
selectedJobTypeLabel.value = labels;
// 将岗位类型文字保存到formData.jobCategory字段
formData.jobCategory = labels;
console.log('选择的岗位类型ID:', ids, '标签:', labels);
},
cancel: () => {
console.log('取消选择岗位类型');
}
});
};
// 选择位置
@@ -504,6 +555,7 @@ const addContact = () => {
if (formData.contacts.length < 3) {
formData.contacts.push({
name: '',
position: '',
phone: ''
});
}
@@ -627,10 +679,10 @@ const handleCompanySelected = (company) => {
// 发布岗位
const publishJob = async () => {
// 表单验证
if (!validateForm()) {
return;
}
// 表单验证
if (!validateForm()) {
return;
}
try {
uni.showLoading({
@@ -650,10 +702,15 @@ const publishJob = async () => {
latitude: formData.latitude,
longitude: formData.longitude,
description: formData.description,
jobCategory: formData.jobCategory,
type: formData.type, // 岗位分类
jobCategory: formData.jobCategory, // 岗位类型
companyId: formData.companyId,
companyName: formData.companyName,
jobContactList: formData.contacts.filter(contact => contact.name.trim() && contact.phone.trim()),
jobContactList: formData.contacts.filter(contact => contact.name.trim() && contact.phone.trim()).map(contact => ({
contactPerson: contact.name,
contactPersonPhone: contact.phone,
position: contact.position
})),
filesList: formData.images.map(image => ({ bussinessid: image.bussinessid })) // 新增岗位图片列表使用bussinessid
};
@@ -708,11 +765,14 @@ const validateForm = () => {
{ field: 'jobLocationAreaCode', message: '请选择工作区县' },
{ field: 'vacancies', message: '请输入招聘人数' },
{ field: 'description', message: '请输入岗位描述' },
{ field: 'jobCategory', message: '请选择岗位分类' }
{ field: 'type', message: '请选择岗位分类' },
{ field: 'jobCategory', message: '请选择岗位类型' }
];
for (const { field, message } of requiredFields) {
if (!formData[field] || formData[field].toString().trim() === '') {
const value = formData[field];
// 特殊处理0 应该被视为有效值
if (value === undefined || value === null || value === '' || value.toString().trim() === '') {
uni.showToast({
title: message,
icon: 'none'

View File

@@ -193,7 +193,8 @@ const handleLogin = async () => {
title: '登录成功',
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')
// // 跳转到首页
// uni.reLaunch({
// url: '/pages/index/index'

View File

@@ -5,7 +5,7 @@
<view class="avatar-label">编辑信息</view>
<view class="avatar-container">
<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>
@@ -15,7 +15,7 @@
<view class="info-label">企业名称</view>
<view class="info-content">
<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>
@@ -23,7 +23,7 @@
<view class="info-label">统一社会代码</view>
<view class="info-content">
<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>
@@ -31,7 +31,7 @@
<view class="info-label">企业注册地点</view>
<view class="info-content">
<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>
@@ -39,7 +39,7 @@
<view class="info-label">企业信息介绍</view>
<view class="info-content">
<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>
@@ -47,7 +47,7 @@
<view class="info-label">企业法人姓名</view>
<view class="info-content">
<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 File

@@ -74,7 +74,7 @@
</view>
<view class="row-right">已认证</view>
</view>
<view class="main-row btn-feel">
<view class="main-row btn-feel" @click="goCa()">
<view class="row-left">
<image class="left-img" src="@/static/icon/server2.png"></image>
<text class="left-text">素质测评</text>
@@ -83,7 +83,7 @@
<uni-icons color="#909090" type="right" size="14"></uni-icons>
</view>
</view>
<view class="main-row btn-feel">
<view class="main-row btn-feel" @click="goCaAI()">
<view class="row-left">
<image class="left-img" src="@/static/icon/server3.png"></image>
<text class="left-text">AI面试</text>
@@ -203,6 +203,17 @@ function goToJobHelper() {
// 跳转到求职者信息补全页面
navTo('/pages/complete-info/complete-info');
}
// 跳转到素质测评
function goCa(){
let userInfo = uni.getStorageSync('userInfo')
navTo(`/packageCa/search/search?name=${userInfo.name}&userId=${userInfo.idCard}`);
}
// 跳转到AI面试
function goCaAI(){
let userInfo = uni.getStorageSync('userInfo')
navTo(`/packageCa/search/AIAudition?name=${userInfo.name}&userId=${userInfo.idCard}`);
}
</script>
<style lang="stylus" scoped>

View File

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

View File

@@ -143,6 +143,11 @@ function openRemindPopup() {
// 检查用户是否完善了个人信息(调用接口获取)
let hasCheckedRemindInfo = false;
// 保存缺失信息的标识
const missingInfo = ref({
hasJobInfo: false,
hasSkills: false
});
async function getRemindInfo() {
if (hasCheckedRemindInfo) {
@@ -186,6 +191,10 @@ async function getRemindInfo() {
return skillName && skillName.trim() !== '';
});
// 保存缺失信息标识(只保存职位信息和技能标签,身份证信息跳转到个人信息页面)
missingInfo.value.hasJobInfo = hasJobInfo;
missingInfo.value.hasSkills = hasSkills;
// 判断信息是否完整idCard、职位信息、技能标签都必须有
const isComplete = hasIdCard && hasJobInfo && hasSkills;
@@ -250,6 +259,10 @@ async function getRemindInfo() {
return skillName && skillName.trim() !== '';
});
// 保存缺失信息标识
missingInfo.value.hasJobInfo = hasJobInfo;
missingInfo.value.hasSkills = hasSkills;
// 判断信息是否完整idCard、职位信息、技能标签都必须有
const isComplete = hasIdCard && hasJobInfo && hasSkills;
@@ -299,8 +312,25 @@ function handleCancel() {
async function handleConfirm() {
remindPopup.value?.close();
// 跳转到完善信息页面
navTo('/packageA/pages/personalInfo/personalInfo');
const { hasJobInfo, hasSkills } = missingInfo.value;
// 如果同时缺少职位信息和技能标签:先跳转到职位信息页面,并传递参数表示完成后需要继续跳转到技能页面
if (!hasJobInfo && !hasSkills) {
// 跳转到职位信息页面,传递参数表示完成后需要继续跳转到技能页面
navTo('/packageA/pages/jobExpect/jobExpect?needSkill=true');
}
// 如果只缺少技能标签:直接跳转到技能页面(个人信息页面的技能部分)
else if (!hasSkills) {
navTo('/packageA/pages/personalInfo/personalInfo');
}
// 如果只缺少职位信息:直接跳转到职位信息页面
else if (!hasJobInfo) {
navTo('/packageA/pages/jobExpect/jobExpect');
}
// 如果只缺少身份证信息:跳转到个人信息页面
else {
navTo('/packageA/pages/personalInfo/personalInfo');
}
}
// 切换tab

View File

@@ -6,22 +6,22 @@
<uni-icons type="search" size="18" color="#286BFA"></uni-icons>
<text class="title-text">职业路径查询</text>
</view>
<view class="input-group">
<view class="input-item">
<text class="input-label">当前职位</text>
<input
class="input-field"
<input
class="input-field"
:value="currentPosition"
placeholder="市场专员"
placeholder-style="color: #999999"
disabled
/>
</view>
<view class="input-item">
<text class="input-label">目标职业</text>
<picker
<picker
mode="selector"
:range="targetCareerOptions"
range-key="label"
@@ -37,7 +37,7 @@
</picker>
</view>
</view>
<button class="query-btn" @click="handleQuery">
<text>查询职业发展路径</text>
<uni-icons type="search" size="18" color="#FFFFFF"></uni-icons>
@@ -53,7 +53,7 @@
<uni-icons type="person-filled" size="24" color="#000000"></uni-icons>
<text class="title-text">职业发展路径</text>
</view>
<view class="timeline">
<!-- 起点 -->
<view class="timeline-item start">
@@ -61,9 +61,9 @@
<view class="timeline-content">
<view class="step-title">起点: {{ pathData.start.title }}</view>
<view class="skill-tags">
<view
class="skill-tag"
v-for="(skill, index) in pathData.start.skills"
<view
class="skill-tag"
v-for="(skill, index) in pathData.start.skills"
:key="index"
>
{{ skill }}
@@ -73,18 +73,18 @@
</view>
<!-- 步骤 -->
<view
class="timeline-item step"
v-for="(step, index) in pathData.steps"
<view
class="timeline-item step"
v-for="(step, index) in pathData.steps"
:key="index"
>
<view class="timeline-marker step-marker"></view>
<view class="timeline-content">
<view class="step-title">{{ index + 1 }}: {{ step.title }}</view>
<view class="skill-tags">
<view
class="skill-tag"
v-for="(skill, sIndex) in step.skills"
<view
class="skill-tag"
v-for="(skill, sIndex) in step.skills"
:key="sIndex"
>
{{ skill }}
@@ -99,9 +99,9 @@
<view class="timeline-content">
<view class="step-title">终点: {{ pathData.end.title }}</view>
<view class="skill-tags">
<view
class="skill-tag"
v-for="(skill, index) in pathData.end.skills"
<view
class="skill-tag"
v-for="(skill, index) in pathData.end.skills"
:key="index"
>
{{ skill }}
@@ -180,15 +180,17 @@ async function fetchTargetCareerOptions(keyword = '') {
pageNo: 1,
pageSize: 100
});
const list = response?.data?.list || response?.list || [];
targetCareerOptions.value = list.map(item => ({
label: item.endJob || item.startJob || '未知职位',
value: item.id,
startJob: item.startJob,
endJob: item.endJob,
jobOrder: item.jobOrder
jobOrder: item.jobOrder,
startJobId: item.startJobId,
endJobId: item.endJobId
}));
if (targetCareerOptions.value.length === 0) {
@@ -215,8 +217,8 @@ async function fetchPathCount() {
}
}
async function loadPathDetail(jobPathId) {
if (!jobPathId || jobPathId === null || jobPathId === undefined || jobPathId === '') {
async function loadPathDetail(startJobId, endJobId) {
if (startJobId === null || startJobId === undefined || startJobId === '' || endJobId === null || endJobId === undefined || endJobId === '') {
uni.showToast({
title: '职业路径ID无效',
icon: 'none'
@@ -224,16 +226,17 @@ async function loadPathDetail(jobPathId) {
resetPathData();
return;
}
try {
const requestParams = {
jobPathId: jobPathId
startJobId,
endJobId
};
const response = await getJobPathDetail(requestParams);
const details = Array.isArray(response?.data) ? response.data : [];
if (details.length === 0) {
resetPathData();
uni.showToast({
@@ -257,13 +260,14 @@ async function loadPathDetail(jobPathId) {
steps,
end
};
// 通知父组件路径数据已更新
emit('path-data-updated', {
pathData: pathData.value,
targetCareer: targetCareerOptions.value[selectedTargetIndex.value]?.label || ''
});
} catch (error) {
console.warn(error, 22222);
uni.showToast({
title: '获取路径详情失败',
icon: 'none'
@@ -301,16 +305,16 @@ async function handleQuery() {
return;
}
let jobPathId = option.value;
isLoadingPath.value = true;
uni.showLoading({
title: '加载中...',
mask: true
});
console.log(option);
try {
if (!jobPathId) {
let { value: jobPathId, startJobId, endJobId } = option;
/*if (!jobPathId) {
const response = await getJobPathPage({
jobName: option.label,
pageNo: 1,
@@ -326,11 +330,12 @@ async function handleQuery() {
});
resetPathData();
return;
}
}*/
selectedJobPathId.value = jobPathId;
await loadPathDetail(jobPathId);
// selectedJobPathId.value = jobPathId;
await loadPathDetail(startJobId, endJobId);
} catch (error) {
console.warn(error, 11111);
uni.showToast({
title: '查询失败,请重试',
icon: 'none'
@@ -473,11 +478,11 @@ onMounted(async () => {
.timeline-item {
position: relative;
margin-bottom: 32rpx;
&:last-child {
margin-bottom: 0;
}
&:not(:last-child)::before {
content: '';
position: absolute;

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -97,31 +97,31 @@ const useDictStore = defineStore("dict", () => {
return null
}
function dictLabel(dictType, value) {
if (state[dictType] && Array.isArray(state[dictType])) {
for (let i = 0; i < state[dictType].length; i++) {
let element = state[dictType][i];
if (element.value === value) {
return element.label
}
}
}
return ''
function dictLabel(dictType, value) {
if (state[dictType] && Array.isArray(state[dictType])) {
for (let i = 0; i < state[dictType].length; i++) {
let element = state[dictType][i];
if (element.value === value) {
return element.label
}
}
}
return ''
}
function oneDictData(dictType, value) {
if (!value) {
return state[dictType]
}
if (state[dictType]) {
for (let i = 0; i < state[dictType].length; i++) {
let element = state[dictType][i];
if (element.value === value) {
return element
}
}
}
return null
function oneDictData(dictType, value) {
if (!value) {
return state[dictType]
}
if (state[dictType]) {
for (let i = 0; i < state[dictType].length; i++) {
let element = state[dictType][i];
if (element.value === value) {
return element
}
}
}
return null
}
function getTransformChildren(dictType, title = '', key = '') {

View File

@@ -72,7 +72,7 @@ const useUserStore = defineStore("user", () => {
role.value = {}
uni.removeStorageSync('userInfo')
uni.removeStorageSync('token')
uni.removeStorageSync('Padmin-Token')
// 如果需要显示登录弹窗,则通过事件通知页面显示微信登录弹窗
if (showLoginModal) {
// 通过 uni.$emit 发送全局事件,通知页面显示登录弹窗

View File

@@ -1,247 +0,0 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>社保登录流程测试</title>
<style>
body {
font-family: Arial, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #f5f5f5;
}
.container {
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
h1 {
color: #333;
text-align: center;
}
.test-case {
margin: 20px 0;
padding: 15px;
border: 1px solid #ddd;
border-radius: 5px;
background: #f9f9f9;
}
.test-case h3 {
margin-top: 0;
color: #4778EC;
}
.code {
background: #f4f4f4;
padding: 10px;
border-radius: 4px;
font-family: monospace;
overflow-x: auto;
}
.btn {
background: #4778EC;
color: white;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
margin: 10px 5px;
}
.btn:hover {
background: #256BFA;
}
.result {
margin-top: 10px;
padding: 10px;
border-radius: 4px;
display: none;
}
.success {
background: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.error {
background: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
</style>
</head>
<body>
<div class="container">
<h1>社保登录流程测试</h1>
<div class="test-case">
<h3>测试用例 1: Base64 解码测试</h3>
<p>测试 Base64 解码功能是否正常工作</p>
<div class="code">
// 测试数据: "142634199305163418" 的 Base64 编码<br>
// 原始身份证号: 142634199305163418<br>
// Base64 编码: MTQyNjM0MTk5MzA1MTYzNDE4
</div>
<button class="btn" onclick="testBase64Decode()">测试 Base64 解码</button>
<div id="base64Result" class="result"></div>
</div>
<div class="test-case">
<h3>测试用例 2: URL 参数解析测试</h3>
<p>测试从 URL 中获取 idCard 参数的功能</p>
<div class="code">
// 测试 URL: http://localhost:5173/ks_app/#/pages/login/id-card-login?idCard=MTQyNjM0MTk5MzA1MTYzNDE4<br>
// 预期结果: 成功获取到 idCard 参数值
</div>
<button class="btn" onclick="testUrlParams()">测试 URL 参数解析</button>
<div id="urlResult" class="result"></div>
</div>
<div class="test-case">
<h3>测试用例 3: 完整登录流程测试</h3>
<p>模拟完整的社保登录流程</p>
<div class="code">
1. 从 URL 获取 idCard 参数 (Base64 编码)<br>
2. Base64 解码得到明文身份证号<br>
3. 调用 /app/idCardLogin 接口<br>
4. 处理登录结果
</div>
<button class="btn" onclick="testFullLoginFlow()">测试完整登录流程</button>
<div id="loginResult" class="result"></div>
</div>
<div class="test-case">
<h3>测试用例 4: 生成测试链接</h3>
<p>生成用于测试的社保登录链接</p>
<div class="code">
身份证号: <input type="text" id="testIdCard" value="142634199305163418" style="width: 200px; padding: 5px;">
</div>
<button class="btn" onclick="generateTestLink()">生成测试链接</button>
<div id="linkResult" class="result"></div>
</div>
</div>
<script>
// Base64 解码函数 (与前端代码保持一致)
function decodeBase64(base64Str) {
try {
return atob(base64Str);
} catch (error) {
console.error('Base64解码失败:', error);
throw new Error('身份证号码解码失败');
}
}
// 测试 Base64 解码
function testBase64Decode() {
const base64Str = "MTQyNjM0MTk5MzA1MTYzNDE4";
const resultDiv = document.getElementById('base64Result');
try {
const decoded = decodeBase64(base64Str);
resultDiv.innerHTML = `<strong>成功!</strong><br>
Base64 编码: ${base64Str}<br>
解码结果: ${decoded}<br>
预期结果: 142634199305163418<br>
匹配: ${decoded === "142634199305163418" ? "✓" : "✗"}`;
resultDiv.className = 'result success';
resultDiv.style.display = 'block';
} catch (error) {
resultDiv.innerHTML = `<strong>失败!</strong><br>错误信息: ${error.message}`;
resultDiv.className = 'result error';
resultDiv.style.display = 'block';
}
}
// 测试 URL 参数解析
function testUrlParams() {
const testUrl = "http://localhost:5173/ks_app/#/pages/login/id-card-login?idCard=MTQyNjM0MTk5MzA1MTYzNDE4";
const resultDiv = document.getElementById('urlResult');
try {
const urlObj = new URL(testUrl);
const idCardParam = urlObj.searchParams.get('idCard');
resultDiv.innerHTML = `<strong>成功!</strong><br>
URL: ${testUrl}<br>
获取到的 idCard 参数: ${idCardParam}<br>
参数存在: ${idCardParam ? "✓" : "✗"}`;
resultDiv.className = 'result success';
resultDiv.style.display = 'block';
} catch (error) {
resultDiv.innerHTML = `<strong>失败!</strong><br>错误信息: ${error.message}`;
resultDiv.className = 'result error';
resultDiv.style.display = 'block';
}
}
// 测试完整登录流程
function testFullLoginFlow() {
const resultDiv = document.getElementById('loginResult');
resultDiv.innerHTML = '<strong>测试中...</strong>';
resultDiv.className = 'result';
resultDiv.style.display = 'block';
setTimeout(() => {
try {
// 模拟登录流程
const base64IdCard = "MTQyNjM0MTk5MzA1MTYzNDE4";
const decodedIdCard = decodeBase64(base64IdCard);
// 验证身份证格式
if (!decodedIdCard || decodedIdCard.length < 15) {
throw new Error('身份证号码格式不正确');
}
resultDiv.innerHTML = `<strong>成功!</strong><br>
完整登录流程测试通过:<br>
1. Base64 参数获取: ✓<br>
2. Base64 解码: ✓ (${decodedIdCard})<br>
3. 身份证格式验证: ✓<br>
4. 接口调用准备: ✓<br>
<br>
<em>注意: 实际接口调用需要在真实环境中测试</em>`;
resultDiv.className = 'result success';
} catch (error) {
resultDiv.innerHTML = `<strong>失败!</strong><br>错误信息: ${error.message}`;
resultDiv.className = 'result error';
}
}, 1000);
}
// 生成测试链接
function generateTestLink() {
const idCardInput = document.getElementById('testIdCard');
const idCard = idCardInput.value.trim();
const resultDiv = document.getElementById('linkResult');
if (!idCard) {
resultDiv.innerHTML = '<strong>错误!</strong><br>请输入身份证号码';
resultDiv.className = 'result error';
resultDiv.style.display = 'block';
return;
}
try {
const base64IdCard = btoa(idCard);
const testLink = `http://localhost:5173/ks_app/#/pages/login/id-card-login?idCard=${base64IdCard}`;
resultDiv.innerHTML = `<strong>测试链接已生成!</strong><br>
原始身份证号: ${idCard}<br>
Base64 编码: ${base64IdCard}<br>
<br>
<strong>测试链接:</strong><br>
<a href="${testLink}" target="_blank" style="word-break: break-all;">${testLink}</a><br>
<br>
<em>复制此链接在开发环境中测试社保登录功能</em>`;
resultDiv.className = 'result success';
resultDiv.style.display = 'block';
} catch (error) {
resultDiv.innerHTML = `<strong>生成失败!</strong><br>错误信息: ${error.message}`;
resultDiv.className = 'result error';
resultDiv.style.display = 'block';
}
}
</script>
</body>
</html>

View File

@@ -73,7 +73,7 @@ export function request({
* @param header Objectheaders默认{}
* @returns promise
**/
export function createRequest(url, data = {}, method = 'GET', loading = false, headers = {}) {
export function createRequest(url, data = {}, method = 'GET', loading = false, headers = {},needHeader = true) {
if (loading) {
uni.showLoading({
title: '请稍后',
@@ -86,7 +86,9 @@ export function createRequest(url, data = {}, method = 'GET', loading = false, h
}
const header = headers || {};
header["Authorization"] = encodeURIComponent(Authorization);
if(needHeader){
header["Authorization"] = encodeURIComponent(Authorization);
}
return new Promise((resolve, reject) => {
uni.request({
url: config.baseUrl + url,
@@ -215,41 +217,41 @@ export function myRequest(url, data = {}, method = 'GET', port = 9100, headers =
resolve(resData.data)
return
}
// 处理业务错误
if (resData.data?.code === 401 || resData.data?.code === 402) {
const pages = getCurrentPages();
if (pages.length >= 10) {
// 页面栈已满使用redirectTo替代
uni.redirectTo({
url:'/packageB/login?flag=nw',
fail: (err) => {
console.error('页面跳转失败:', err);
}
});
} else {
uni.navigateTo({
url:'/packageB/login?flag=nw',
fail: (err) => {
console.error('页面跳转失败:', err);
// 失败后尝试redirectTo
uni.redirectTo({
url:'/packageB/login?flag=nw',
fail: (err2) => {
console.error('redirectTo也失败:', err2);
}
});
}
});
}
useUserStore().logOut()
// 处理业务错误
if (resData.data?.code === 401 || resData.data?.code === 402) {
const pages = getCurrentPages();
if (pages.length >= 10) {
// 页面栈已满使用redirectTo替代
uni.redirectTo({
url:'/packageB/login?flag=nw',
fail: (err) => {
console.error('页面跳转失败:', err);
}
});
} else {
uni.navigateTo({
url:'/packageB/login?flag=nw',
fail: (err) => {
console.error('页面跳转失败:', err);
// 失败后尝试redirectTo
uni.redirectTo({
url:'/packageB/login?flag=nw',
fail: (err2) => {
console.error('redirectTo也失败:', err2);
}
});
}
});
}
useUserStore().logOut()
}
// 显示具体的错误信息
const errorMsg = msg || '请求出现异常,请联系工作人员'
uni.showToast({
title: errorMsg,
icon: 'none'
})
// uni.showToast({
// title: errorMsg,
// icon: 'none'
// })
const err = new Error(errorMsg)
err.error = resData
reject(err)

View File

@@ -2,7 +2,7 @@
* @Descripttion:
* @Author: lip
* @Date: 2022-12-28 13:59:09
* @LastEditors: lip
* @LastEditors: shirlwang
*/
// 应用全局配置
import config from '@/config.js'
@@ -10,7 +10,9 @@ import config from '@/config.js'
let exports = {
// ========== baseUrl 配置方式选择 ==========
// 方式1硬编码baseUrlmain分支使用合并到main时不会影响现有功能
baseUrl: 'http://222.80.110.161:11111/sdrc-api', // 正式环境在济南人才上部署(不要轻易连接)
baseUrl: 'https://www.xjksly.cn/sdrc-api', // 正式环境在济南人才上部署(不要轻易连接)
// baseUrl: 'http://10.160.0.5:8907', // 开发环境
// baseUrl: 'http://172.20.1.48:8903', // 开发环境
// 方式2引用根目录config.js的baseUrlCareerMap分支可选方式如需使用请注释掉方式1取消注释此方式
// baseUrl: config.baseUrl, // 引用根目录config.js的baseUrl避免重复配置
@@ -26,13 +28,13 @@ let exports = {
// baseUrl: 'http://ks.zhaopinzao8dian.com/api/ks', // 已从根目录config.js引用不再重复配置
// ========== 职业图谱专用baseUrl ==========
zytpBaseUrl: 'http://222.80.110.161:11111/career-map/api/ks_zytp/admin-api/zytp',
zytpBaseUrl: 'https://www.xjksly.cn/career-map/api/ks_zytp/admin-api/zytp',
// ========== 用户接口专用baseUrl其他用户接口使用 ==========
userBaseUrl: 'http://ks.zhaopinzao8dian.com/api/ks', // 用户相关接口使用根目录config.js的baseUrl
// ========== appUserInfo接口专用baseUrl ==========
appUserInfoBaseUrl: 'http://222.80.110.161:11111/api/ks', // appUserInfo接口专用与其他接口路径不一致
appUserInfoBaseUrl: 'https://www.xjksly.cn/api/ks', // appUserInfo接口专用与其他接口路径不一致

View File

@@ -27,6 +27,7 @@ const request = config => {
// 从存储中获取微信登录的 token
const token = getToken()
if (token && !isToken && !isZytpApi) {
// config.header['Authorization'] = 'Bearer ' + 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiJzeXNfdXNlcjoxIiwicm5TdHIiOiJhb0Y4RmJPQWJ6ZVA3NlpzaENyM0tPSEZTbU85U0ZhViIsInVzZXJJZCI6MX0.kPEDm7D8eVvFlwAiUiE57evWaCX5EcSEOq-LEYGTm9Q'
config.header['Authorization'] = 'Bearer ' + token
}
let requestBaseUrl = baseUrl

View File

@@ -4,6 +4,7 @@ import constant from '@/utilsRc/constant'
import {
login,
// logout,
loginByUserId,
getInfo,
register,
smsLogin,
@@ -107,6 +108,25 @@ const user = {
})
})
},
// 网格员登录
LoginByID({
commit,
// state
}, userInfo) {
return new Promise((resolve, reject) => {
// const info = JSON.parse(JSON.stringify(userInfo))
// info.password = '04' + sm2.doEncrypt(info.password, state.publicKey, 0)
// info.username = '04' + sm2.doEncrypt(info.username, state.publicKey, 0)
loginByUserId(userInfo).then(res => {
setToken(res.token)
commit('SET_TOKEN', res.token)
resolve(res)
}).catch(error => {
reject(error)
})
})
},
// 登录
Login({
commit,