Compare commits
112 Commits
e465224773
...
yxl
| Author | SHA1 | Date | |
|---|---|---|---|
| a8a9d792a3 | |||
|
|
7634a24c3a | ||
|
|
a128926c21 | ||
|
|
3387ea8dbc | ||
|
|
05105488bd | ||
|
|
910862cb5f | ||
|
|
fb88fdbb89 | ||
|
|
1de0bacebf | ||
|
|
95a23be4bf | ||
|
|
40eb1b29e8 | ||
|
|
dbdb330189 | ||
|
|
e0f8faf757 | ||
|
|
951905fd09 | ||
| bde805e905 | |||
| 3f714d4a69 | |||
|
|
360d4f96ea | ||
|
|
a3bc821bc3 | ||
|
|
7a7aa33128 | ||
|
|
cbf8bd7c41 | ||
|
|
07e0f3083b | ||
|
|
c4c6cea579 | ||
| c3d26cdd54 | |||
| b030d45d49 | |||
| a45b247496 | |||
|
|
ebb6bc6e33 | ||
|
|
7bfc765a73 | ||
|
|
34cad2543d | ||
|
|
134c900946 | ||
|
|
5bf94a6223 | ||
|
|
b92e3b8adb | ||
|
|
292b8ae33c | ||
| e0efa9c1cf | |||
| 4dce6d3e39 | |||
| 172d4fab05 | |||
| fce328566a | |||
| 1d2b0458a5 | |||
|
|
80bd1ee181 | ||
|
|
96c89e0210 | ||
|
|
598a3205fa | ||
|
|
f73d3f7a8c | ||
| bd0c2d0497 | |||
| ef9d38d41f | |||
| dcbb3e02a7 | |||
|
|
98e0d5d833 | ||
| 7480651af2 | |||
| 3f7664f017 | |||
|
|
d817ce2524 | ||
| a5e30ac7f5 | |||
|
|
5430678eaf | ||
| 699035026e | |||
| abd2e79a15 | |||
|
|
7dcfbd35fe | ||
| 9cf5905d5f | |||
|
|
a1a94b264c | ||
|
|
cf3ed1bae2 | ||
|
|
445121ac8d | ||
|
|
afcb29c51c | ||
|
|
fe7eed4c1a | ||
| ba38158d4c | |||
| 385274b3ef | |||
| d983bb272b | |||
| fb95e1c74e | |||
| ce7d261e4b | |||
| f8a7f94433 | |||
|
|
d6b6fdcc38 | ||
|
|
1508a1a717 | ||
|
|
e444f07dc4 | ||
| ef25f954a4 | |||
| 211c950ab7 | |||
| f506c4154a | |||
| 07c84cef8a | |||
|
|
a663010b61 | ||
|
|
a299608fca | ||
|
|
637d50c811 | ||
|
|
3246958704 | ||
| b7c54c3c2e | |||
|
|
4d4ecdb858 | ||
|
|
d2653c8394 | ||
| 0cfe2d5448 | |||
| 30e3804dfa | |||
|
|
cc6da8adfd | ||
|
|
daa2ce254a | ||
|
|
d8bd4e7759 | ||
|
|
33faac2ff2 | ||
|
|
74b9c32b03 | ||
|
|
782242beec | ||
|
|
0f374530a1 | ||
| 992fc65020 | |||
| 17366c05ee | |||
|
|
0d4e8990e5 | ||
|
|
5e29a47c19 | ||
|
|
c200dc924b | ||
|
|
9d37f3a22a | ||
|
|
9315d0c371 | ||
|
|
d7d8ed4e49 | ||
|
|
cc3f84196c | ||
|
|
4cf06bb1d1 | ||
|
|
e6c6d4fa23 | ||
|
|
43fb1550e4 | ||
| 8aec595f6f | |||
|
|
09a7fb2c13 | ||
|
|
934f082de4 | ||
|
|
2b9663db53 | ||
|
|
2ab6253fad | ||
|
|
b07d56801b | ||
|
|
8438946789 | ||
|
|
74ff0b5238 | ||
| 98677bf997 | |||
| d566d55bc6 | |||
|
|
42e401ef7a | ||
| d65b8e4bff | |||
| 8a409b45fe |
@@ -1,33 +0,0 @@
|
||||
/*
|
||||
* @Date: 2025-11-12
|
||||
* @Description: 职业推荐相关接口
|
||||
*/
|
||||
import request from '@/utilsRc/request'
|
||||
|
||||
function createFormData(payload = {}) {
|
||||
if (typeof FormData !== 'undefined') {
|
||||
const formData = new FormData()
|
||||
Object.keys(payload).forEach(key => {
|
||||
const value = payload[key]
|
||||
if (value !== undefined && value !== null && value !== '') {
|
||||
formData.append(key, value)
|
||||
}
|
||||
})
|
||||
return formData
|
||||
}
|
||||
return payload
|
||||
}
|
||||
|
||||
export function recommendJob(data) {
|
||||
const params = {};
|
||||
if (data?.jobName !== undefined && data?.jobName !== null && data?.jobName !== '') {
|
||||
params.jobName = String(data.jobName);
|
||||
}
|
||||
|
||||
return request({
|
||||
url: '/job/recommendJobByJobName',
|
||||
method: 'get',
|
||||
params: params,
|
||||
baseUrlType: 'zytp'
|
||||
})
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
/*
|
||||
* @Date: 2025-11-12
|
||||
* @Description: 职业技能相关接口
|
||||
*/
|
||||
import request from '@/utilsRc/request'
|
||||
|
||||
export function getJobSkillDetail(params) {
|
||||
return request({
|
||||
url: '/jobSkillDet/getJobSkillDet',
|
||||
method: 'get',
|
||||
params,
|
||||
baseUrlType: 'zytp'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取技能权重
|
||||
export function getJobSkillWeight(params) {
|
||||
return request({
|
||||
url: '/jobSkillDet/getJobSkillWeight',
|
||||
method: 'get',
|
||||
params,
|
||||
baseUrlType: 'zytp'
|
||||
})
|
||||
}
|
||||
|
||||
// 暂未使用 - 如果需要在 CareerPath.vue 中点击路径职位查看详细技能信息时使用
|
||||
// 使用场景:获取职业路径中某个职位的详细技能信息(包含技能分数、类型等)
|
||||
// export function getJobPathSkill(data) {
|
||||
// let formData
|
||||
// if (typeof FormData !== 'undefined') {
|
||||
// formData = new FormData()
|
||||
// if (data?.pathId !== undefined && data?.pathId !== null) {
|
||||
// formData.append('pathId', data.pathId)
|
||||
// }
|
||||
// if (data?.currentJobName !== undefined && data?.currentJobName !== null) {
|
||||
// formData.append('currentJobName', data.currentJobName)
|
||||
// }
|
||||
// } else {
|
||||
// formData = {
|
||||
// pathId: data?.pathId ?? '',
|
||||
// currentJobName: data?.currentJobName ?? ''
|
||||
// }
|
||||
// }
|
||||
|
||||
// return request({
|
||||
// url: '/jobSkillDet/getJobPathSkill',
|
||||
// method: 'post',
|
||||
// data: formData,
|
||||
// baseUrlType: 'zytp',
|
||||
// header: {
|
||||
// 'content-type': 'multipart/form-data'
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
|
||||
37
apiRc/service/careerPath.js
Normal file
37
apiRc/service/careerPath.js
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* @Date: 2024-09-25 11:14:29
|
||||
* @LastEditors: shirlwang
|
||||
* @LastEditTime: 2025-12-23 17:40:11
|
||||
* @Description: 职业路径相关接口
|
||||
*/
|
||||
import request from '@/utilsRc/request'
|
||||
|
||||
// 获取当前职位
|
||||
export function getCurrentPosition(query) {
|
||||
return request({
|
||||
url: '/jobPath/getJob',
|
||||
method: 'get',
|
||||
params: query,
|
||||
baseUrlType: 'zytp'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取路径列表
|
||||
export function getPath(query) {
|
||||
return request({
|
||||
url: '/jobPath/getJobPathList',
|
||||
method: 'get',
|
||||
params: query,
|
||||
baseUrlType: 'zytp'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取路径详情
|
||||
export function getPathDetail(query) {
|
||||
return request({
|
||||
url: '/jobPath/getJobPathById',
|
||||
method: 'get',
|
||||
params: query,
|
||||
baseUrlType: 'zytp'
|
||||
})
|
||||
}
|
||||
37
apiRc/service/careerRecommendation.js
Normal file
37
apiRc/service/careerRecommendation.js
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* @Date: 2024-09-25 11:14:29
|
||||
* @LastEditors: shirlwang
|
||||
* @LastEditTime: 2025-12-23 17:40:11
|
||||
* @Description: 职业推荐相关接口
|
||||
*/
|
||||
import request from '@/utilsRc/request'
|
||||
|
||||
// 获取职业列表
|
||||
export function getProfessions(query) {
|
||||
return request({
|
||||
url: '/jobSimilarity/getJob',
|
||||
method: 'get',
|
||||
params: query,
|
||||
baseUrlType: 'zytp'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取技能标签
|
||||
export function getSkillTags(query) {
|
||||
return request({
|
||||
url: '/jobSkillDet/getJobSkill',
|
||||
method: 'get',
|
||||
params: query,
|
||||
baseUrlType: 'zytp'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取推荐职业
|
||||
export function getRecommend(query) {
|
||||
return request({
|
||||
url: '/jobSimilarity/recommendJobByJobName',
|
||||
method: 'get',
|
||||
params: query,
|
||||
baseUrlType: 'zytp'
|
||||
})
|
||||
}
|
||||
@@ -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',
|
||||
@@ -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,17 +70,22 @@ 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,
|
||||
})
|
||||
}
|
||||
|
||||
// // 获取推荐岗位
|
||||
// export function getAddedJobs(params) {
|
||||
// return request({
|
||||
// url: '/personnel/personBaseInfo/postRecommend',
|
||||
// method: 'get',
|
||||
// params,
|
||||
// })
|
||||
// }
|
||||
export function recommendJob(data) {
|
||||
const params = {};
|
||||
if (data?.jobName !== undefined && data?.jobName !== null && data?.jobName !== '') {
|
||||
params.jobName = String(data.jobName);
|
||||
}
|
||||
|
||||
return request({
|
||||
url: '/job/recommendJobByJobName',
|
||||
method: 'get',
|
||||
params: params,
|
||||
baseUrlType: 'zytp'
|
||||
})
|
||||
}
|
||||
|
||||
24
apiRc/service/jobSkill.js
Normal file
24
apiRc/service/jobSkill.js
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* @Date: 2025-11-12
|
||||
* @Description: 职业技能相关接口
|
||||
*/
|
||||
import request from '@/utilsRc/request'
|
||||
|
||||
export function getJobSkillDetail(params) {
|
||||
return request({
|
||||
url: '/jobSkillDet/getJobSkillDet',
|
||||
method: 'get',
|
||||
params,
|
||||
baseUrlType: 'zytp'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取技能权重
|
||||
export function getJobSkillWeight(params) {
|
||||
return request({
|
||||
url: '/jobSkillDet/getJobSkillWeight',
|
||||
method: 'get',
|
||||
params,
|
||||
baseUrlType: 'zytp'
|
||||
})
|
||||
}
|
||||
27
apiRc/service/skillDevelopment.js
Normal file
27
apiRc/service/skillDevelopment.js
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* @Date: 2024-09-25 11:14:29
|
||||
* @LastEditors: shirlwang
|
||||
* @LastEditTime: 2025-12-23 17:40:11
|
||||
* @Description: 技能发展相关接口
|
||||
*/
|
||||
import request from '@/utilsRc/request'
|
||||
|
||||
// 获取技能信息
|
||||
export function getCareerPath(query) {
|
||||
return request({
|
||||
url: '/jobPath/getJobPathJobList',
|
||||
method: 'get',
|
||||
params: query,
|
||||
baseUrlType: 'zytp'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取技能信息
|
||||
export function getSkillResult(query) {
|
||||
return request({
|
||||
url: '/jobDimScore/getJobDimScoreList',
|
||||
method: 'get',
|
||||
params: query,
|
||||
baseUrlType: 'zytp'
|
||||
})
|
||||
}
|
||||
@@ -72,18 +72,18 @@ export const navTo = function(url, {
|
||||
const pages = getCurrentPages();
|
||||
if (pages.length >= 10) {
|
||||
uni.redirectTo({
|
||||
url: '/pages/complete-info/complete-info',
|
||||
url: '/packageA/pages/complete-info/complete-info',
|
||||
fail: (err) => {
|
||||
console.error('页面跳转失败:', err);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: '/pages/complete-info/complete-info',
|
||||
url: '/packageA/pages/complete-info/complete-info',
|
||||
fail: (err) => {
|
||||
console.error('页面跳转失败:', err);
|
||||
uni.redirectTo({
|
||||
url: '/pages/complete-info/complete-info',
|
||||
url: '/packageA/pages/complete-info/complete-info',
|
||||
fail: (err2) => {
|
||||
console.error('redirectTo也失败:', err2);
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ const generateTabbarList = () => {
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
text: 'AI+',
|
||||
text: '智能客服',
|
||||
path: '/pages/chat/chat',
|
||||
iconPath: '/static/tabbar/logo3.png',
|
||||
selectedIconPath: '/static/tabbar/logo3.png',
|
||||
@@ -104,7 +104,7 @@ const generateTabbarList = () => {
|
||||
baseItems.splice(1, 0, {
|
||||
id: 1,
|
||||
text: '发布岗位',
|
||||
path: '/pages/job/publishJob',
|
||||
path: '/packageA/pages/job/publishJob',
|
||||
iconPath: '/static/tabbar/post.png',
|
||||
selectedIconPath: '/static/tabbar/posted.png',
|
||||
centerItem: false,
|
||||
@@ -125,7 +125,17 @@ const generateTabbarList = () => {
|
||||
// });
|
||||
// #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;
|
||||
};
|
||||
|
||||
@@ -163,9 +173,10 @@ const switchTab = (item, index) => {
|
||||
|
||||
// 检查是否为需要登录的页面
|
||||
const loginRequiredPages = [
|
||||
'/pages/job/publishJob',
|
||||
'/packageA/pages/job/publishJob',
|
||||
'/pages/mine/mine',
|
||||
'/pages/mine/company-mine'
|
||||
'/pages/mine/company-mine',
|
||||
'/pages/msglog/msglog'
|
||||
];
|
||||
|
||||
if (loginRequiredPages.includes(item.path)) {
|
||||
@@ -180,7 +191,7 @@ const switchTab = (item, index) => {
|
||||
}
|
||||
|
||||
// 已登录,处理特定页面的逻辑
|
||||
if (item.path === '/pages/job/publishJob') {
|
||||
if (item.path === '/packageA/pages/job/publishJob') {
|
||||
// 检查企业信息是否完整
|
||||
const cachedUserInfo = uni.getStorageSync('userInfo') || {};
|
||||
const storeUserInfo = userInfo.value || {};
|
||||
@@ -190,12 +201,12 @@ const switchTab = (item, index) => {
|
||||
if (!currentUserInfo.company || currentUserInfo.company === null) {
|
||||
// 企业信息为空,跳转到企业信息补全页面
|
||||
uni.navigateTo({
|
||||
url: '/pages/complete-info/company-info',
|
||||
url: '/packageA/pages/complete-info/company-info',
|
||||
});
|
||||
} else {
|
||||
// 企业信息完整,跳转到发布岗位页面
|
||||
uni.navigateTo({
|
||||
url: '/pages/job/publishJob',
|
||||
url: '/packageA/pages/job/publishJob',
|
||||
});
|
||||
}
|
||||
|
||||
@@ -269,7 +280,7 @@ onMounted(() => {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 88rpx;
|
||||
height: 100rpx;
|
||||
background-color: #ffffff;
|
||||
border-top: 1rpx solid #e5e5e5;
|
||||
display: flex;
|
||||
@@ -296,8 +307,8 @@ onMounted(() => {
|
||||
}
|
||||
|
||||
.tabbar-icon {
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
margin-bottom: 4rpx;
|
||||
position: relative;
|
||||
}
|
||||
@@ -308,7 +319,7 @@ onMounted(() => {
|
||||
}
|
||||
|
||||
.tabbar-text {
|
||||
font-size: 20rpx;
|
||||
font-size: 22rpx;
|
||||
line-height: 1;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
@@ -322,14 +333,14 @@ onMounted(() => {
|
||||
position: absolute;
|
||||
top: 4rpx;
|
||||
right: 20rpx;
|
||||
min-width: 30rpx;
|
||||
height: 30rpx;
|
||||
min-width: 32rpx;
|
||||
height: 32rpx;
|
||||
background-color: #ff4444;
|
||||
color: #fff;
|
||||
font-size: 18rpx;
|
||||
border-radius: 15rpx;
|
||||
font-size: 19rpx;
|
||||
border-radius: 16rpx;
|
||||
text-align: center;
|
||||
line-height: 30rpx;
|
||||
line-height: 32rpx;
|
||||
padding: 0 10rpx;
|
||||
transform: scale(0.8);
|
||||
}
|
||||
@@ -337,8 +348,8 @@ onMounted(() => {
|
||||
/* 中间按钮特殊样式 */
|
||||
.tabbar-item:has(.center-item) {
|
||||
.tabbar-icon {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
width: 68rpx;
|
||||
height: 68rpx;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -275,14 +275,15 @@
|
||||
Authorization: `Bearer ${uni.getStorageSync("Padmin-Token")}`
|
||||
}).then((resData) => {
|
||||
if(resData.code == 200){
|
||||
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'
|
||||
});
|
||||
}
|
||||
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: '请前往基本信息中完善企业信息和岗位信息',
|
||||
|
||||
@@ -1,13 +1,45 @@
|
||||
<template>
|
||||
<view class="markdown-body">
|
||||
<rich-text class="markdownRich" id="markdown-content" :nodes="renderedHtml" @itemclick="handleItemClick" />
|
||||
<!-- <view class="markdown-body" v-html="renderedHtml"></view> -->
|
||||
<!-- 根据不同平台使用不同的渲染方式 -->
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<!-- 微信小程序端:使用v-for遍历岗位卡片列表,每个卡片单独渲染,支持点击事件 -->
|
||||
<scroll-view class="markdownRich" id="markdown-content">
|
||||
<!-- 渲染普通markdown内容 -->
|
||||
<rich-text :nodes="renderedHtml" />
|
||||
|
||||
<!-- 单独渲染岗位卡片,支持点击事件 -->
|
||||
<view v-if="localJobCardsList.length > 0" class="job-cards-container">
|
||||
<view
|
||||
v-for="(card, index) in localJobCardsList"
|
||||
:key="index"
|
||||
class="custom-card"
|
||||
@tap="navigateToJobDetail(card.jobId)"
|
||||
>
|
||||
<view class="card-title">
|
||||
<text class="title-text">{{ card.jobTitle }}</text>
|
||||
<view class="card-salary">{{ card.salary }}</view>
|
||||
</view>
|
||||
<view class="card-company">{{ card.location }}·{{ card.companyName }}</view>
|
||||
<view class="card-info">
|
||||
<view class="info-item">
|
||||
<view class="card-tag">{{ card.education }}</view>
|
||||
<view class="card-tag">{{ card.experience }}</view>
|
||||
</view>
|
||||
<view class="info-item">查看详情<view class="position-nav"></view></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<!-- #endif -->
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<view class="markdown-body" v-html="renderedHtml" @click="handleH5Click"></view>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed, onMounted, inject } from 'vue';
|
||||
import { parseMarkdown, codeDataList } from '@/utils/markdownParser';
|
||||
import { computed, onMounted, inject, ref, watch, nextTick } from 'vue';
|
||||
import { parseMarkdown, codeDataList, jobCardsList } from '@/utils/markdownParser';
|
||||
const { navTo } = inject('globalFunction');
|
||||
const props = defineProps({
|
||||
content: {
|
||||
@@ -21,30 +53,191 @@ const props = defineProps({
|
||||
});
|
||||
|
||||
const renderedHtml = computed(() => parseMarkdown(props.content));
|
||||
const markdownContainer = ref(null);
|
||||
// 响应式岗位卡片列表,用于微信小程序端单独渲染
|
||||
const localJobCardsList = ref([]);
|
||||
|
||||
const handleItemClick = (e) => {
|
||||
let { attrs } = e.detail.node;
|
||||
console.log(attrs);
|
||||
let { 'data-copy-index': codeDataIndex, 'data-job-id': jobId, class: className } = attrs;
|
||||
switch (className) {
|
||||
case 'custom-card':
|
||||
return navTo('/packageA/pages/post/post?jobId=' + jobId);
|
||||
case 'custom-more':
|
||||
return navTo('/packageA/pages/moreJobs/moreJobs?jobId=' + jobId);
|
||||
case 'copy-btn':
|
||||
uni.setClipboardData({
|
||||
data: codeDataList[codeDataIndex],
|
||||
showToast: false,
|
||||
success() {
|
||||
uni.showToast({
|
||||
title: '复制成功',
|
||||
icon: 'none',
|
||||
});
|
||||
},
|
||||
});
|
||||
break;
|
||||
// 监听content的变化,当内容更新时,解析岗位卡片
|
||||
watch(() => props.content, (newContent) => {
|
||||
if (newContent) {
|
||||
// 直接调用parseMarkdown来触发jobCardsList的更新
|
||||
parseMarkdown(newContent);
|
||||
// 将解析器生成的岗位卡片列表赋值给响应式数据
|
||||
localJobCardsList.value = [...jobCardsList];
|
||||
console.log('Content changed, jobCardsList updated:', localJobCardsList.value);
|
||||
}
|
||||
}, { immediate: true });
|
||||
|
||||
// 同时监听renderedHtml的变化作为备份
|
||||
watch(() => renderedHtml.value, (newVal) => {
|
||||
console.log('renderedHtml changed, jobCardsList from parser:', jobCardsList);
|
||||
// 将解析器生成的岗位卡片列表赋值给响应式数据
|
||||
localJobCardsList.value = [...jobCardsList];
|
||||
});
|
||||
|
||||
// 微信小程序端导航到岗位详情页面
|
||||
const navigateToJobDetail = (jobId) => {
|
||||
console.log('navigateToJobDetail called with jobId:', jobId);
|
||||
if (jobId && jobId !== 'undefined' && jobId !== 'null') {
|
||||
// 跳转到岗位详情页面
|
||||
uni.navigateTo({
|
||||
url: `/packageA/pages/post/post?jobId=${jobId}`,
|
||||
success: (res) => {
|
||||
console.log('navigateTo success:', res);
|
||||
},
|
||||
fail: (err) => {
|
||||
console.error('navigateTo failed:', err);
|
||||
// 如果navigateTo失败,尝试redirectTo
|
||||
uni.redirectTo({
|
||||
url: `/packageA/pages/post/post?jobId=${jobId}`,
|
||||
success: (res2) => {
|
||||
console.log('redirectTo success:', res2);
|
||||
},
|
||||
fail: (err2) => {
|
||||
console.error('redirectTo also failed:', err2);
|
||||
// 如果还是失败,显示错误提示
|
||||
uni.showToast({
|
||||
title: '跳转失败,请稍后重试',
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
console.error('Invalid jobId:', jobId);
|
||||
uni.showToast({
|
||||
title: '岗位信息不完整',
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// 微信小程序端点击事件处理已移除,改用v-for遍历岗位卡片列表,每个卡片单独渲染,支持点击事件
|
||||
// 微信小程序端和H5端的jobId取值方式一致,都是从JSON数据的appJobUrl字段提取
|
||||
// 不同的是,微信小程序端现在使用v-for遍历渲染,而H5端使用v-html渲染
|
||||
|
||||
// H5平台点击事件处理
|
||||
// 微信小程序端和H5端的jobId取值方式一致,都是从JSON数据的appJobUrl字段提取
|
||||
// 不同的是,H5端可以直接从DOM属性获取,而微信小程序端使用v-for遍历渲染
|
||||
const handleH5Click = (e) => {
|
||||
console.log('H5 click event triggered:', e.target);
|
||||
let target = e.target;
|
||||
// 查找最接近的带有class的元素
|
||||
while (target && target.tagName !== 'BODY') {
|
||||
console.log('Checking target:', target, 'className:', target.className, 'tagName:', target.tagName);
|
||||
|
||||
// 直接使用closest方法查找,不依赖className
|
||||
const cardElement = target.closest('.custom-card');
|
||||
const moreElement = target.closest('.custom-more');
|
||||
|
||||
console.log('Found elements:', { cardElement, moreElement });
|
||||
|
||||
if (cardElement) {
|
||||
// 尝试多种方式获取jobId
|
||||
let jobId = cardElement.getAttribute('data-job-id');
|
||||
console.log('Found custom-card, data-job-id attribute:', jobId);
|
||||
|
||||
// 如果data-job-id为空,尝试从onclick事件中提取jobId
|
||||
if (!jobId) {
|
||||
const onclick = cardElement.getAttribute('onclick');
|
||||
if (onclick) {
|
||||
const match = onclick.match(/jobId=(\w+)/);
|
||||
if (match && match[1]) {
|
||||
jobId = match[1];
|
||||
console.log('Extracted jobId from onclick:', jobId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (jobId) {
|
||||
console.log('Final jobId for navigation:', jobId);
|
||||
try {
|
||||
// 直接使用uni.navigateTo,避免navTo函数的潜在问题
|
||||
uni.navigateTo({
|
||||
url: `/packageA/pages/post/post?jobId=${jobId}`,
|
||||
success: (res) => {
|
||||
console.log('navigateTo success:', res);
|
||||
},
|
||||
fail: (err) => {
|
||||
console.error('navigateTo failed:', err);
|
||||
// 如果navigateTo失败,尝试redirectTo
|
||||
uni.redirectTo({
|
||||
url: `/packageA/pages/post/post?jobId=${jobId}`,
|
||||
success: (res2) => {
|
||||
console.log('redirectTo success:', res2);
|
||||
},
|
||||
fail: (err2) => {
|
||||
console.error('redirectTo also failed:', err2);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Navigation error:', error);
|
||||
}
|
||||
return;
|
||||
} else {
|
||||
console.error('No jobId found for custom-card');
|
||||
}
|
||||
} else if (moreElement) {
|
||||
// 尝试多种方式获取jobId
|
||||
let jobId = moreElement.getAttribute('data-job-id');
|
||||
console.log('Found custom-more, data-job-id attribute:', jobId);
|
||||
|
||||
// 如果data-job-id为空,尝试从onclick事件中提取jobId
|
||||
if (!jobId) {
|
||||
const onclick = moreElement.getAttribute('onclick');
|
||||
if (onclick) {
|
||||
const match = onclick.match(/jobId=(\w+)/);
|
||||
if (match && match[1]) {
|
||||
jobId = match[1];
|
||||
console.log('Extracted jobId from onclick:', jobId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (jobId) {
|
||||
console.log('Final jobId for more jobs:', jobId);
|
||||
try {
|
||||
// 直接使用uni.navigateTo,避免navTo函数的潜在问题
|
||||
uni.navigateTo({
|
||||
url: `/packageA/pages/moreJobs/moreJobs?jobId=${jobId}`,
|
||||
success: (res) => {
|
||||
console.log('navigateTo success:', res);
|
||||
},
|
||||
fail: (err) => {
|
||||
console.error('navigateTo failed:', err);
|
||||
// 如果navigateTo失败,尝试redirectTo
|
||||
uni.redirectTo({
|
||||
url: `/packageA/pages/moreJobs/moreJobs?jobId=${jobId}`,
|
||||
success: (res2) => {
|
||||
console.log('redirectTo success:', res2);
|
||||
},
|
||||
fail: (err2) => {
|
||||
console.error('redirectTo also failed:', err2);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Navigation error:', error);
|
||||
}
|
||||
return;
|
||||
} else {
|
||||
console.error('No jobId found for custom-more');
|
||||
}
|
||||
}
|
||||
|
||||
target = target.parentElement;
|
||||
}
|
||||
};
|
||||
|
||||
// 移除旧的事件监听逻辑,改用全局点击处理
|
||||
|
||||
onMounted(() => {
|
||||
console.log('onMounted called');
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@@ -267,7 +460,7 @@ ol {
|
||||
</style>
|
||||
|
||||
<style lang="stylus">
|
||||
.custom-more{
|
||||
.custom-more
|
||||
display: flex
|
||||
justify-content: center
|
||||
align-items: center
|
||||
@@ -282,15 +475,16 @@ ol {
|
||||
transition: all 0.3s ease
|
||||
position: relative
|
||||
overflow: hidden
|
||||
.more-icon{
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
background: url('@/static/svg/seemore.svg') center center no-repeat;
|
||||
|
||||
.more-icon
|
||||
width: 32rpx
|
||||
height: 32rpx
|
||||
background: url('@/static/svg/seemore.svg') center center no-repeat
|
||||
background-size: 100% 100%
|
||||
margin-left: 12rpx
|
||||
filter: brightness(0) invert(1)
|
||||
}
|
||||
&::before {
|
||||
|
||||
&::before
|
||||
content: ''
|
||||
position: absolute
|
||||
top: 0
|
||||
@@ -299,93 +493,492 @@ ol {
|
||||
height: 100%
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent)
|
||||
transition: left 0.5s ease
|
||||
}
|
||||
&:active {
|
||||
|
||||
&:active
|
||||
transform: translateY(2rpx)
|
||||
box-shadow: 0rpx 4rpx 16rpx rgba(37, 107, 250, 0.4)
|
||||
}
|
||||
&:active::before {
|
||||
|
||||
&:active::before
|
||||
left: 100%
|
||||
|
||||
/* 为小程序专门优化的样式 */
|
||||
/* #ifdef MP-WEIXIN */
|
||||
.rich-text-container
|
||||
padding: 0 20rpx
|
||||
|
||||
.markdownRich
|
||||
padding: 0
|
||||
/* #endif */
|
||||
|
||||
/* H5端和小程序端样式优化 */
|
||||
.custom-card
|
||||
background: #FFFFFF !important
|
||||
box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(0,0,0,0.04) !important
|
||||
border-radius: 20rpx !important
|
||||
padding: 28rpx 24rpx !important
|
||||
font-weight: 400 !important
|
||||
font-size: 28rpx !important
|
||||
color: #333333 !important
|
||||
margin-bottom: 22rpx !important
|
||||
position: relative !important
|
||||
display: block !important
|
||||
flex-direction: column !important
|
||||
/* 确保在所有平台中边距正确应用 */
|
||||
margin-left: auto !important
|
||||
margin-right: auto !important
|
||||
width: 100% !important
|
||||
box-sizing: border-box !important
|
||||
text-decoration: none !important
|
||||
overflow: hidden !important
|
||||
|
||||
.custom-card .card-title
|
||||
font-weight: 600 !important
|
||||
display: flex !important
|
||||
align-items: center !important
|
||||
justify-content: space-between !important
|
||||
margin-bottom: 16rpx !important
|
||||
|
||||
.custom-card .card-title .title-text
|
||||
font-family: 'PingFangSC-Medium', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif !important
|
||||
max-width: calc(100% - 160rpx) !important
|
||||
overflow: hidden !important
|
||||
text-overflow: ellipsis !important
|
||||
font-size: 32rpx !important
|
||||
line-height: 1.4 !important
|
||||
white-space: nowrap !important
|
||||
margin-bottom: 0 !important
|
||||
|
||||
.custom-card .card-title .card-salary
|
||||
font-family: DIN-Medium !important
|
||||
font-size: 32rpx !important
|
||||
color: #4C6EFB !important
|
||||
line-height: 1.4 !important
|
||||
font-weight: 500 !important
|
||||
margin-bottom: 0 !important
|
||||
|
||||
.custom-card .card-company
|
||||
margin-bottom: 18rpx !important
|
||||
max-width: 100% !important
|
||||
overflow: hidden !important
|
||||
text-overflow: ellipsis !important
|
||||
color: #6C7282 !important
|
||||
line-height: 1.4 !important
|
||||
white-space: nowrap !important
|
||||
font-size: 28rpx !important
|
||||
margin-top: 0 !important
|
||||
display: block !important
|
||||
|
||||
.custom-card .card-tags
|
||||
display: flex !important
|
||||
flex-wrap: wrap !important
|
||||
margin-bottom: 24rpx !important
|
||||
|
||||
.custom-card .card-tag
|
||||
font-weight: 400 !important
|
||||
font-size: 24rpx !important
|
||||
color: #6C7282 !important
|
||||
width: fit-content !important
|
||||
background: #F4F4F4 !important
|
||||
border-radius: 4rpx !important
|
||||
padding: 6rpx 20rpx !important
|
||||
margin-right: 20rpx !important
|
||||
margin-bottom: 14rpx !important
|
||||
display: inline-flex !important
|
||||
align-items: center !important
|
||||
justify-content: center !important
|
||||
height: 30rpx !important
|
||||
line-height: 30rpx !important
|
||||
|
||||
.custom-card .card-bottom
|
||||
display: flex !important
|
||||
justify-content: space-between !important
|
||||
font-size: 24rpx !important
|
||||
color: #6C7282 !important
|
||||
margin-top: 0 !important
|
||||
margin-bottom: 0 !important
|
||||
|
||||
.custom-card .card-bottom .info-item
|
||||
display: flex !important
|
||||
align-items: center !important
|
||||
justify-content: center !important
|
||||
margin-bottom: 0 !important
|
||||
|
||||
.custom-card .card-info
|
||||
display: flex !important
|
||||
align-items: center !important
|
||||
justify-content: space-between !important
|
||||
padding-right: 40rpx !important
|
||||
|
||||
.custom-card .card-info .info-item
|
||||
display: flex !important
|
||||
position: relative !important
|
||||
align-items: center !important
|
||||
|
||||
.custom-card .card-info .info-item:last-child
|
||||
color: #256BFA !important
|
||||
font-size: 28rpx !important
|
||||
padding-right: 10rpx !important
|
||||
|
||||
.custom-card .position-nav
|
||||
position: absolute !important
|
||||
right: -10rpx !important
|
||||
top: 50% !important
|
||||
transform: translateY(-50%) !important
|
||||
|
||||
.custom-card .position-nav::before
|
||||
position: absolute !important
|
||||
left: 0 !important
|
||||
top: -4rpx !important
|
||||
content: '' !important
|
||||
width: 4rpx !important
|
||||
height: 16rpx !important
|
||||
border-radius: 2rpx !important
|
||||
background: #256BFA !important
|
||||
transform: translate(0, -50%) rotate(-45deg) !important
|
||||
|
||||
.custom-card .position-nav::after
|
||||
position: absolute !important
|
||||
left: 0 !important
|
||||
top: -4rpx !important
|
||||
content: '' !important
|
||||
width: 4rpx !important
|
||||
height: 16rpx !important
|
||||
border-radius: 2rpx !important
|
||||
background: #256BFA !important
|
||||
transform: rotate(45deg) !important
|
||||
|
||||
/* 为微信小程序专门优化的样式选择器 */
|
||||
/* #ifdef MP-WEIXIN */
|
||||
.job-cards-container .custom-card
|
||||
background: #FFFFFF !important
|
||||
box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(0,0,0,0.04) !important
|
||||
border-radius: 20rpx !important
|
||||
padding: 28rpx 24rpx !important
|
||||
font-weight: 400 !important
|
||||
font-size: 28rpx !important
|
||||
color: #333333 !important
|
||||
margin-bottom: 22rpx !important
|
||||
position: relative !important
|
||||
display: block !important
|
||||
flex-direction: column !important
|
||||
margin-left: auto !important
|
||||
margin-right: auto !important
|
||||
width: 100% !important
|
||||
box-sizing: border-box !important
|
||||
text-decoration: none !important
|
||||
overflow: hidden !important
|
||||
|
||||
.job-cards-container .custom-card .card-title
|
||||
font-weight: 600 !important
|
||||
display: flex !important
|
||||
align-items: center !important
|
||||
justify-content: space-between !important
|
||||
margin-bottom: 16rpx !important
|
||||
|
||||
.job-cards-container .custom-card .card-title .title-text
|
||||
font-family: 'PingFangSC-Medium', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif !important
|
||||
max-width: calc(100% - 160rpx) !important
|
||||
overflow: hidden !important
|
||||
text-overflow: ellipsis !important
|
||||
font-size: 32rpx !important
|
||||
line-height: 1.4 !important
|
||||
white-space: nowrap !important
|
||||
margin-bottom: 0 !important
|
||||
|
||||
.job-cards-container .custom-card .card-title .card-salary
|
||||
font-family: DIN-Medium !important
|
||||
font-size: 32rpx !important
|
||||
color: #4C6EFB !important
|
||||
line-height: 1.4 !important
|
||||
font-weight: 500 !important
|
||||
margin-bottom: 0 !important
|
||||
|
||||
.job-cards-container .custom-card .card-company
|
||||
margin-bottom: 18rpx !important
|
||||
max-width: 100% !important
|
||||
overflow: hidden !important
|
||||
text-overflow: ellipsis !important
|
||||
color: #6C7282 !important
|
||||
line-height: 1.4 !important
|
||||
white-space: nowrap !important
|
||||
font-size: 28rpx !important
|
||||
margin-top: 0 !important
|
||||
display: block !important
|
||||
|
||||
.job-cards-container .custom-card .card-info
|
||||
display: flex !important
|
||||
align-items: center !important
|
||||
justify-content: space-between !important
|
||||
padding-right: 40rpx !important
|
||||
|
||||
.job-cards-container .custom-card .card-info .info-item
|
||||
display: flex !important
|
||||
position: relative !important
|
||||
align-items: center !important
|
||||
|
||||
.job-cards-container .custom-card .card-info .info-item:last-child
|
||||
color: #256BFA !important
|
||||
font-size: 28rpx !important
|
||||
padding-right: 10rpx !important
|
||||
|
||||
.job-cards-container .custom-card .card-info .info-item .card-tag
|
||||
font-weight: 400 !important
|
||||
font-size: 24rpx !important
|
||||
color: #6C7282 !important
|
||||
width: fit-content !important
|
||||
background: #F4F4F4 !important
|
||||
border-radius: 4rpx !important
|
||||
padding: 6rpx 20rpx !important
|
||||
margin-right: 20rpx !important
|
||||
margin-bottom: 14rpx !important
|
||||
display: inline-flex !important
|
||||
align-items: center !important
|
||||
justify-content: center !important
|
||||
height: 30rpx !important
|
||||
line-height: 30rpx !important
|
||||
|
||||
.job-cards-container .custom-card .position-nav
|
||||
position: absolute !important
|
||||
right: -10rpx !important
|
||||
top: 50% !important
|
||||
transform: translateY(-50%) !important
|
||||
|
||||
.job-cards-container .custom-card .position-nav::before
|
||||
position: absolute !important
|
||||
left: 0 !important
|
||||
top: -4rpx !important
|
||||
content: '' !important
|
||||
width: 4rpx !important
|
||||
height: 16rpx !important
|
||||
border-radius: 2rpx !important
|
||||
background: #256BFA !important
|
||||
transform: translate(0, -50%) rotate(-45deg) !important
|
||||
|
||||
.job-cards-container .custom-card .position-nav::after
|
||||
position: absolute !important
|
||||
left: 0 !important
|
||||
top: -4rpx !important
|
||||
content: '' !important
|
||||
width: 4rpx !important
|
||||
height: 16rpx !important
|
||||
border-radius: 2rpx !important
|
||||
background: #256BFA !important
|
||||
transform: rotate(45deg) !important
|
||||
/* #endif */
|
||||
|
||||
/* 额外的H5端样式优化 */
|
||||
/* #ifndef MP-WEIXIN */
|
||||
/* 确保样式能正确应用到v-html生成的内容 */
|
||||
.markdown-body {
|
||||
/* 重置v-html容器样式 */
|
||||
display: block !important;
|
||||
|
||||
/* 为v-html生成的a.custom-card标签添加基础样式 */
|
||||
a.custom-card {
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
margin-bottom: 22rpx !important;
|
||||
background: #FFFFFF !important;
|
||||
box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(0,0,0,0.04) !important;
|
||||
border-radius: 20rpx !important;
|
||||
padding: 28rpx 24rpx !important;
|
||||
font-weight: 400 !important;
|
||||
font-size: 28rpx !important;
|
||||
color: #333333 !important;
|
||||
text-decoration: none !important;
|
||||
overflow: hidden !important;
|
||||
box-sizing: border-box !important;
|
||||
width: calc(100% - 0rpx) !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
/* 卡片标题样式 */
|
||||
a.custom-card .card-title {
|
||||
font-weight: 600 !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: space-between !important;
|
||||
margin-bottom: 16rpx !important;
|
||||
}
|
||||
|
||||
a.custom-card .card-title .title-text {
|
||||
font-family: 'PingFangSC-Medium', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif !important;
|
||||
font-size: 32rpx !important;
|
||||
line-height: 1.4 !important;
|
||||
color: #333333 !important;
|
||||
max-width: calc(100% - 160rpx) !important;
|
||||
overflow: hidden !important;
|
||||
text-overflow: ellipsis !important;
|
||||
white-space: nowrap !important;
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
a.custom-card .card-title .card-salary {
|
||||
font-family: DIN-Medium !important;
|
||||
font-size: 32rpx !important;
|
||||
color: #4C6EFB !important;
|
||||
line-height: 1.4 !important;
|
||||
font-weight: 500 !important;
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
/* 公司信息样式 */
|
||||
a.custom-card .card-company {
|
||||
margin-bottom: 18rpx !important;
|
||||
font-size: 28rpx !important;
|
||||
color: #6C7282 !important;
|
||||
line-height: 1.4 !important;
|
||||
max-width: 100% !important;
|
||||
overflow: hidden !important;
|
||||
text-overflow: ellipsis !important;
|
||||
white-space: nowrap !important;
|
||||
margin-top: 0 !important;
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
/* 标签容器样式 */
|
||||
a.custom-card .card-tags {
|
||||
display: flex !important;
|
||||
flex-wrap: wrap !important;
|
||||
margin-bottom: 24rpx !important;
|
||||
}
|
||||
|
||||
/* 单个标签样式 */
|
||||
a.custom-card .card-tag {
|
||||
font-weight: 400 !important;
|
||||
font-size: 24rpx !important;
|
||||
color: #6C7282 !important;
|
||||
width: fit-content !important;
|
||||
background: #F4F4F4 !important;
|
||||
border-radius: 4rpx !important;
|
||||
padding: 6rpx 20rpx !important;
|
||||
margin-right: 20rpx !important;
|
||||
margin-bottom: 14rpx !important;
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
height: 30rpx !important;
|
||||
line-height: 30rpx !important;
|
||||
}
|
||||
|
||||
/* 卡片底部样式 */
|
||||
a.custom-card .card-bottom {
|
||||
display: flex !important;
|
||||
justify-content: space-between !important;
|
||||
font-size: 24rpx !important;
|
||||
color: #6C7282 !important;
|
||||
margin-top: 0 !important;
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
a.custom-card .card-bottom .info-item {
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
/* 卡片信息区域样式 */
|
||||
a.custom-card .card-info {
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: space-between !important;
|
||||
padding-right: 40rpx !important;
|
||||
}
|
||||
|
||||
a.custom-card .card-info .info-item {
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
}
|
||||
|
||||
a.custom-card .card-info .info-item:last-child {
|
||||
color: #256BFA !important;
|
||||
font-size: 28rpx !important;
|
||||
padding-right: 10rpx !important;
|
||||
position: relative !important;
|
||||
}
|
||||
|
||||
/* 查看详情箭头样式 */
|
||||
a.custom-card .position-nav {
|
||||
position: absolute !important;
|
||||
right: -10rpx !important;
|
||||
top: 50% !important;
|
||||
transform: translateY(-50%) !important;
|
||||
}
|
||||
|
||||
a.custom-card .position-nav::before {
|
||||
position: absolute !important;
|
||||
left: 0 !important;
|
||||
top: -4rpx !important;
|
||||
content: '' !important;
|
||||
width: 4rpx !important;
|
||||
height: 16rpx !important;
|
||||
border-radius: 2rpx !important;
|
||||
background: #256BFA !important;
|
||||
transform: translate(0, -50%) rotate(-45deg) !important;
|
||||
}
|
||||
|
||||
a.custom-card .position-nav::after {
|
||||
position: absolute !important;
|
||||
left: 0 !important;
|
||||
top: -4rpx !important;
|
||||
content: '' !important;
|
||||
width: 4rpx !important;
|
||||
height: 16rpx !important;
|
||||
border-radius: 2rpx !important;
|
||||
background: #256BFA !important;
|
||||
transform: rotate(45deg) !important;
|
||||
}
|
||||
|
||||
/* 查看更多按钮样式 */
|
||||
a.custom-more {
|
||||
display: flex !important;
|
||||
justify-content: center !important;
|
||||
align-items: center !important;
|
||||
color: #FFFFFF !important;
|
||||
background: linear-gradient(135deg, #256BFA 0%, #9E74FD 100%) !important;
|
||||
border-radius: 50rpx !important;
|
||||
padding: 20rpx 32rpx !important;
|
||||
margin: 20rpx 0 !important;
|
||||
font-size: 28rpx !important;
|
||||
font-weight: 600 !important;
|
||||
box-shadow: 0rpx 8rpx 24rpx rgba(37, 107, 250, 0.3) !important;
|
||||
transition: all 0.3s ease !important;
|
||||
position: relative !important;
|
||||
overflow: hidden !important;
|
||||
text-decoration: none !important;
|
||||
box-sizing: border-box !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
a.custom-more .more-icon {
|
||||
width: 32rpx !important;
|
||||
height: 32rpx !important;
|
||||
background: url('@/static/svg/seemore.svg') center center no-repeat !important;
|
||||
background-size: 100% 100% !important;
|
||||
margin-left: 12rpx !important;
|
||||
filter: brightness(0) invert(1) !important;
|
||||
}
|
||||
|
||||
a.custom-more::before {
|
||||
content: '' !important;
|
||||
position: absolute !important;
|
||||
top: 0 !important;
|
||||
left: -100% !important;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
|
||||
transition: left 0.5s ease !important;
|
||||
}
|
||||
|
||||
a.custom-more:active {
|
||||
transform: translateY(2rpx) !important;
|
||||
box-shadow: 0rpx 4rpx 16rpx rgba(37, 107, 250, 0.4) !important;
|
||||
}
|
||||
|
||||
a.custom-more:active::before {
|
||||
left: 100% !important;
|
||||
}
|
||||
}
|
||||
.custom-card
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(0,0,0,0.04);
|
||||
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
||||
padding: 28rpx 24rpx;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
margin-bottom: 20rpx;
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column
|
||||
.card-title
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between
|
||||
.title-text
|
||||
font-family: 'PingFangSC-Medium', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif;
|
||||
max-width: calc(100% - 160rpx);
|
||||
overflow: hidden
|
||||
text-overflow: ellipsis
|
||||
font-size: 30rpx
|
||||
.card-salary
|
||||
font-family: DIN-Medium;
|
||||
font-size: 28rpx;
|
||||
color: #FF6E1C;
|
||||
|
||||
.card-company
|
||||
margin-top: 16rpx;
|
||||
max-width: calc(100%);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis
|
||||
color: #6C7282;
|
||||
.card-info
|
||||
margin-top: 22rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding-right: 40rpx;
|
||||
.info-item
|
||||
display: flex;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
color: #256BFA;
|
||||
font-size: 28rpx;
|
||||
padding-right: 10rpx
|
||||
.position-nav
|
||||
position: absolute;
|
||||
right: -10rpx;
|
||||
top: 50%;
|
||||
.position-nav::before
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: -4rpx;
|
||||
content: '';
|
||||
width: 4rpx;
|
||||
height: 16rpx;
|
||||
border-radius: 2rpx
|
||||
background: #256BFA;
|
||||
transform: translate(0, -50%) rotate(-45deg) ;
|
||||
.position-nav::after
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: -4rpx;
|
||||
content: '';
|
||||
width: 4rpx;
|
||||
height: 16rpx;
|
||||
border-radius: 2rpx
|
||||
background: #256BFA;
|
||||
transform: rotate(45deg)
|
||||
.card-tag
|
||||
font-weight: 500;
|
||||
font-size: 24rpx;
|
||||
color: #333333;
|
||||
width: fit-content;
|
||||
background: #F4F4F4;
|
||||
border-radius: 4rpx 4rpx 4rpx 4rpx;
|
||||
padding: 4rpx 20rpx;
|
||||
margin-right: 16rpx;
|
||||
/* #endif */
|
||||
</style>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -110,7 +110,7 @@ const generateTabbarList = () => {
|
||||
baseItems.splice(1, 0, {
|
||||
id: 1,
|
||||
text: '发布岗位',
|
||||
path: '/pages/job/publishJob',
|
||||
path: '/packageA/pages/job/publishJob',
|
||||
iconPath: '../../static/tabbar/post.png',
|
||||
selectedIconPath: '../../static/tabbar/posted.png',
|
||||
centerItem: false,
|
||||
|
||||
@@ -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,23 @@
|
||||
<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>
|
||||
|
||||
<!-- 机构类型选择(仅单位角色显示) -->
|
||||
<view v-if="userType === 0" class="org-type-select">
|
||||
<view class="org-type-title">请选择机构类型</view>
|
||||
<view class="org-type-options">
|
||||
<view
|
||||
v-for="option in orgTypeOptions"
|
||||
:key="option.value"
|
||||
class="org-type-item"
|
||||
:class="{ active: orgType === option.value }"
|
||||
@click="selectOrgType(option.value)"
|
||||
>
|
||||
<view class="org-type-text">{{ option.label }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -67,7 +82,7 @@
|
||||
@getphonenumber="getPhoneNumber"
|
||||
>
|
||||
<uni-icons type="phone" size="20" color="#FFFFFF"></uni-icons>
|
||||
<text>微信授权登录</text>
|
||||
<text>手机号快捷登录</text>
|
||||
</button>
|
||||
<!-- #endif -->
|
||||
|
||||
@@ -75,7 +90,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,33 +103,62 @@
|
||||
</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>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, inject } from 'vue';
|
||||
import { ref, inject, onMounted } from 'vue';
|
||||
import useUserStore from '@/stores/useUserStore';
|
||||
import useDictStore from '@/stores/useDictStore';
|
||||
import { tabbarManager } from '@/utils/tabbarManager';
|
||||
|
||||
const { $api } = inject('globalFunction');
|
||||
const { loginSetToken } = useUserStore();
|
||||
const dictStore = useDictStore();
|
||||
|
||||
const popup = ref(null);
|
||||
const userType = ref(null); // 用户角色:1-求职者,0-企业
|
||||
const orgType = ref(null); // 机构类型
|
||||
const orgTypeOptions = ref([]); // 机构类型选项
|
||||
const emit = defineEmits(['success', 'cancel']);
|
||||
|
||||
// 获取机构类型字典
|
||||
const getOrgTypeDict = async () => {
|
||||
try {
|
||||
const options = await dictStore.getDictSelectOption('org_type');
|
||||
orgTypeOptions.value = options;
|
||||
} catch (error) {
|
||||
console.error('获取机构类型字典失败:', error);
|
||||
// 使用备用数据
|
||||
orgTypeOptions.value = [
|
||||
{ label: '有限责任公司', value: '1' },
|
||||
{ label: '股份有限公司', value: '2' },
|
||||
{ label: '个人独资企业', value: '3' },
|
||||
{ label: '合伙企业', value: '4' },
|
||||
{ label: '外商投资企业', value: '5' },
|
||||
{ label: '其他', value: '6' }
|
||||
];
|
||||
}
|
||||
};
|
||||
|
||||
// 组件挂载时获取字典数据
|
||||
onMounted(() => {
|
||||
getOrgTypeDict();
|
||||
});
|
||||
|
||||
// 打开弹窗
|
||||
const open = () => {
|
||||
popup.value?.open();
|
||||
userType.value = null; // 重置角色选择
|
||||
orgType.value = null; // 重置机构类型选择
|
||||
};
|
||||
|
||||
// 关闭弹窗
|
||||
@@ -126,6 +170,12 @@ const close = () => {
|
||||
// 选择角色
|
||||
const selectRole = (type) => {
|
||||
userType.value = type;
|
||||
orgType.value = null; // 切换角色时重置机构类型选择
|
||||
};
|
||||
|
||||
// 选择机构类型
|
||||
const selectOrgType = (type) => {
|
||||
orgType.value = type;
|
||||
};
|
||||
|
||||
// 验证角色是否已选择
|
||||
@@ -134,6 +184,13 @@ const validateRole = () => {
|
||||
$api.msg('请先选择您的角色');
|
||||
return false;
|
||||
}
|
||||
|
||||
// 验证机构类型是否已选择(仅单位角色)
|
||||
if (userType.value === 0 && orgType.value === null) {
|
||||
$api.msg('请选择机构类型');
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
@@ -148,6 +205,12 @@ const getPhoneNumber = (e) => {
|
||||
$api.msg('请先选择您的角色');
|
||||
return true;
|
||||
}
|
||||
|
||||
// 验证机构类型是否已选择(仅单位角色)
|
||||
if (userType.value === 0 && orgType.value === null) {
|
||||
$api.msg('请选择机构类型');
|
||||
return true;
|
||||
}
|
||||
uni.login({
|
||||
provider: 'weixin',
|
||||
success: (loginRes) => {
|
||||
@@ -162,7 +225,8 @@ const getPhoneNumber = (e) => {
|
||||
code,
|
||||
encryptedData,
|
||||
iv,
|
||||
userType: userType.value
|
||||
userType: userType.value,
|
||||
orgType: orgType.value
|
||||
}, 'post').then((resData) => {
|
||||
uni.hideLoading();
|
||||
console.log(resData, 'resume.idCard');
|
||||
@@ -189,12 +253,12 @@ const getPhoneNumber = (e) => {
|
||||
if (userType.value === 1 && !resData.idCard) {
|
||||
// 求职者跳转到个人信息补全页面
|
||||
uni.navigateTo({
|
||||
url: '/pages/complete-info/complete-info?step=1'
|
||||
url: '/packageA/pages/complete-info/complete-info?step=1'
|
||||
});
|
||||
} else if (userType.value === 0 && !resData.idCard) {
|
||||
// 招聘者跳转到企业信息补全页面
|
||||
uni.navigateTo({
|
||||
url: '/pages/complete-info/company-info'
|
||||
url: '/packageA/pages/complete-info/company-info'
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -251,7 +315,8 @@ const wxLogin = () => {
|
||||
// 调用后端接口进行登录
|
||||
$api.createRequest('/app/appLogin', {
|
||||
code: loginRes.code,
|
||||
userType: userType.value
|
||||
userType: userType.value,
|
||||
orgType: orgType.value
|
||||
}, 'post').then((resData) => {
|
||||
if (resData.token) {
|
||||
loginSetToken(resData.token).then((resume) => {
|
||||
@@ -272,12 +337,12 @@ const wxLogin = () => {
|
||||
if (userType.value === 1) {
|
||||
// 求职者跳转到个人信息补全页面
|
||||
uni.navigateTo({
|
||||
url: '/pages/complete-info/complete-info?step=1'
|
||||
url: '/packageA/pages/complete-info/complete-info?step=1'
|
||||
});
|
||||
} else if (userType.value === 0) {
|
||||
// 招聘者跳转到企业信息补全页面
|
||||
uni.navigateTo({
|
||||
url: '/pages/complete-info/company-info'
|
||||
url: '/packageA/pages/complete-info/company-info'
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -326,12 +391,12 @@ const testLogin = () => {
|
||||
if (userType.value === 1) {
|
||||
// 求职者跳转到个人信息补全页面
|
||||
uni.navigateTo({
|
||||
url: '/pages/complete-info/complete-info?step=1'
|
||||
url: '/packageA/pages/complete-info/complete-info?step=1'
|
||||
});
|
||||
} else if (userType.value === 0) {
|
||||
// 招聘者跳转到企业信息补全页面
|
||||
uni.navigateTo({
|
||||
url: '/pages/complete-info/company-info'
|
||||
url: '/packageA/pages/complete-info/company-info'
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -373,7 +438,7 @@ defineExpose({
|
||||
overflow: hidden
|
||||
|
||||
.modal-content
|
||||
padding: 60rpx 40rpx 40rpx
|
||||
padding: 40rpx 40rpx 40rpx
|
||||
position: relative
|
||||
|
||||
.close-btn
|
||||
@@ -389,11 +454,11 @@ defineExpose({
|
||||
|
||||
.auth-header
|
||||
text-align: center
|
||||
margin-bottom: 40rpx
|
||||
margin-bottom: 20rpx
|
||||
|
||||
.auth-logo
|
||||
width: 120rpx
|
||||
height: 120rpx
|
||||
width: 90rpx
|
||||
height: 90rpx
|
||||
margin: 0 auto 24rpx
|
||||
|
||||
.auth-title
|
||||
@@ -408,7 +473,6 @@ defineExpose({
|
||||
|
||||
.role-select
|
||||
margin-bottom: 32rpx
|
||||
|
||||
.role-title
|
||||
font-size: 28rpx
|
||||
font-weight: 500
|
||||
@@ -447,6 +511,41 @@ defineExpose({
|
||||
color: #333333
|
||||
font-weight: 500
|
||||
|
||||
.org-type-select
|
||||
margin-bottom: 22rpx
|
||||
|
||||
.org-type-title
|
||||
font-size: 28rpx
|
||||
font-weight: 500
|
||||
color: #333333
|
||||
margin-bottom: 20rpx
|
||||
text-align: center
|
||||
|
||||
.org-type-options
|
||||
display: flex
|
||||
flex-wrap: wrap
|
||||
gap: 16rpx
|
||||
|
||||
.org-type-item
|
||||
display:inline-block
|
||||
background: #F7F8FA
|
||||
border: 2rpx solid #E5E5E5
|
||||
border-radius: 10rpx
|
||||
padding: 10rpx 10rpx
|
||||
transition: all 0.3s ease
|
||||
cursor: pointer
|
||||
text-align: center
|
||||
|
||||
&.active
|
||||
background: #F0F5FF
|
||||
border-color: #256BFA
|
||||
box-shadow: 0 4rpx 12rpx rgba(37, 107, 250, 0.15)
|
||||
|
||||
.org-type-text
|
||||
font-size: 22rpx
|
||||
color: #333333
|
||||
font-weight: 500
|
||||
|
||||
.auth-tips
|
||||
background: #F7F8FA
|
||||
border-radius: 16rpx
|
||||
|
||||
14
config.js
14
config.js
@@ -1,13 +1,12 @@
|
||||
/*
|
||||
* @Descripttion:
|
||||
* @Descripttion:
|
||||
* @Author: lip
|
||||
* @Date: 2025-12-04 13:40:08
|
||||
* @LastEditors: lip
|
||||
*/
|
||||
export default {
|
||||
// baseUrl: 'http://39.98.44.136:8080', // 测试
|
||||
baseUrl: 'https://www.xjksly.cn/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',//内网端口
|
||||
@@ -20,13 +19,14 @@ export default {
|
||||
trainVideoImgUrl:'https://www.xjksly.cn/prod-api/file/file/minio',
|
||||
// sseAI+
|
||||
// StreamBaseURl: 'http://39.98.44.136:8000',
|
||||
StreamBaseURl: 'https://qd.zhaopinzao8dian.com/ai',
|
||||
StreamBaseURl: 'https://www.xjksly.cn/api/ks/app/chat',
|
||||
// StreamBaseURl: 'https://qd.zhaopinzao8dian.com/ai/test',
|
||||
// 语音转文字
|
||||
// vioceBaseURl: 'ws://39.98.44.136:8080/speech-recognition',
|
||||
vioceBaseURl: 'wss://qd.zhaopinzao8dian.com/api/speech-recognition',
|
||||
vioceBaseURl: 'https://www.xjksly.cn/api/ks/app/speech/asr',
|
||||
// vioceBaseURl: 'wss://qd.zhaopinzao8dian.com/api/speech-recognition',
|
||||
// 语音合成
|
||||
speechSynthesis: 'wss://qd.zhaopinzao8dian.com/api/speech-synthesis',
|
||||
speechSynthesis: 'https://www.xjksly.cn/api/ks/app/speech/tts',
|
||||
// speechSynthesis: 'wss://qd.zhaopinzao8dian.com/api/speech-synthesis',
|
||||
// indexedDB
|
||||
DBversion: 2,
|
||||
// 只使用本地缓寸的数据
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
---
|
||||
|
||||
### 2. ``getJobPathById`- 根据职业路径ID获取详情
|
||||
### 2. `getJobPathById`- 根据职业路径ID获取详情
|
||||
- **接口路径**: `/jobPath/getJobPathById`
|
||||
- **请求方法**: `GET`
|
||||
- **接口类型**: `zytp`
|
||||
|
||||
@@ -20,6 +20,7 @@ export function useAudioRecorder() {
|
||||
|
||||
const recognizedText = ref('')
|
||||
const lastFinalText = ref('')
|
||||
const isRecognizing = ref(false) // 识别状态,暴露给外部
|
||||
|
||||
let audioStream = null
|
||||
let audioContext = null
|
||||
@@ -132,11 +133,15 @@ export function useAudioRecorder() {
|
||||
}
|
||||
case 'TranscriptionCompleted': {
|
||||
lastFinalText.value = ''
|
||||
isRecognizing.value = false // 识别完成,重置状态
|
||||
// console.log('识别全部完成')
|
||||
cleanup()
|
||||
break
|
||||
}
|
||||
case 'TaskFailed': {
|
||||
console.error('识别失败:', msg?.header?.status_text)
|
||||
isRecognizing.value = false // 识别失败,重置状态
|
||||
cleanup()
|
||||
break
|
||||
}
|
||||
default:
|
||||
@@ -151,7 +156,104 @@ export function useAudioRecorder() {
|
||||
if (isRecording.value) return
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
$api.msg('小程序暂不支持语音识别功能');
|
||||
try {
|
||||
recognizedText.value = ''
|
||||
lastFinalText.value = ''
|
||||
// 开始录音时不设置isRecognizing为true,只有在停止录音后才保持isRecognizing为true
|
||||
|
||||
const recorderManager = uni.getRecorderManager()
|
||||
|
||||
// 监听录音完成事件
|
||||
recorderManager.onStop(async (res) => {
|
||||
console.log('小程序录音完成:', res)
|
||||
try {
|
||||
// 停止录音后设置isRecognizing为true,显示loading
|
||||
isRecognizing.value = true
|
||||
|
||||
// 打印请求配置,便于调试
|
||||
console.log('准备上传语音识别请求配置:', {
|
||||
url: config.vioceBaseURl,
|
||||
name: 'file',
|
||||
method: 'POST',
|
||||
fileType: 'audio',
|
||||
filePath: res.tempFilePath
|
||||
})
|
||||
|
||||
// 上传录音文件到服务器进行语音识别
|
||||
const uploadResult = await uni.uploadFile({
|
||||
url: config.vioceBaseURl,
|
||||
filePath: res.tempFilePath,
|
||||
name: 'file',
|
||||
fileType: 'audio',
|
||||
method: 'POST' // 显式设置为POST请求
|
||||
})
|
||||
|
||||
console.log('语音识别上传结果:', uploadResult)
|
||||
|
||||
if (uploadResult.statusCode === 200) {
|
||||
try {
|
||||
const result = JSON.parse(uploadResult.data)
|
||||
console.log('语音识别结果:', result)
|
||||
if (result.code === 200 && result.data) {
|
||||
recognizedText.value = result.data
|
||||
console.log('语音识别成功,识别结果:', recognizedText.value)
|
||||
// 语音识别成功后,自动发送消息
|
||||
// 这里需要触发一个事件,让父组件知道识别成功
|
||||
// 或者直接调用发送消息的方法
|
||||
isRecognizing.value = false // 识别成功,重置状态
|
||||
} else {
|
||||
console.error('语音识别返回错误:', result.message || '未知错误')
|
||||
$api.msg('语音识别失败,请重试')
|
||||
isRecognizing.value = false // 识别失败,重置状态
|
||||
}
|
||||
} catch (parseErr) {
|
||||
console.error('语音识别结果解析失败:', parseErr)
|
||||
$api.msg('语音识别失败,请重试')
|
||||
isRecognizing.value = false // 解析失败,重置状态
|
||||
}
|
||||
} else {
|
||||
console.error('语音识别请求失败,状态码:', uploadResult.statusCode)
|
||||
$api.msg('语音识别失败,请重试')
|
||||
isRecognizing.value = false // 请求失败,重置状态
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('语音识别上传失败:', err)
|
||||
$api.msg('语音识别失败,请重试')
|
||||
isRecognizing.value = false // 上传失败,重置状态
|
||||
}
|
||||
})
|
||||
|
||||
// 监听录音错误事件
|
||||
recorderManager.onError((err) => {
|
||||
console.error('小程序录音错误:', err)
|
||||
$api.msg('录音失败,请重试');
|
||||
cleanup()
|
||||
})
|
||||
|
||||
// 微信小程序录音API
|
||||
await recorderManager.start({
|
||||
duration: 60000, // 最长录音60秒
|
||||
sampleRate: 16000,
|
||||
numberOfChannels: 1,
|
||||
encodeBitRate: 96000,
|
||||
format: 'mp3'
|
||||
})
|
||||
|
||||
isRecording.value = true
|
||||
recordingDuration.value = 0
|
||||
durationTimer = setInterval(() => recordingDuration.value++, 1000)
|
||||
|
||||
// 监听录音事件(可选)
|
||||
recorderManager.onFrameRecorded((res) => {
|
||||
// 更新音量显示
|
||||
volumeLevel.value = res.volume || 0
|
||||
audioDataForDisplay.value = Array(16).fill(volumeLevel.value)
|
||||
})
|
||||
} catch (err) {
|
||||
console.error('小程序录音启动失败:', err)
|
||||
$api.msg('录音启动失败,请重试');
|
||||
cleanup()
|
||||
}
|
||||
return;
|
||||
// #endif
|
||||
|
||||
@@ -164,6 +266,7 @@ export function useAudioRecorder() {
|
||||
|
||||
recognizedText.value = ''
|
||||
lastFinalText.value = ''
|
||||
// 开始录音时不设置isRecognizing为true,只有在停止录音后才保持isRecognizing为true
|
||||
await connectWebSocket()
|
||||
|
||||
audioStream = await navigator.mediaDevices.getUserMedia({
|
||||
@@ -201,6 +304,7 @@ export function useAudioRecorder() {
|
||||
durationTimer = setInterval(() => recordingDuration.value++, 1000)
|
||||
} catch (err) {
|
||||
console.error('启动失败:', err)
|
||||
isRecognizing.value = false // 启动失败,重置状态
|
||||
cleanup()
|
||||
}
|
||||
// #endif
|
||||
@@ -210,6 +314,12 @@ export function useAudioRecorder() {
|
||||
if (!isRecording.value || isStopping.value) return
|
||||
isStopping.value = true
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
uni.getRecorderManager().stop()
|
||||
// 小程序中录音停止后会触发onStop事件,在onStop事件中处理识别结果和状态重置
|
||||
// #endif
|
||||
|
||||
// #ifdef H5
|
||||
if (websocket?.readyState === WebSocket.OPEN) {
|
||||
websocket.send(JSON.stringify({
|
||||
header: {
|
||||
@@ -218,18 +328,39 @@ export function useAudioRecorder() {
|
||||
message_id: generateUUID()
|
||||
}
|
||||
}))
|
||||
websocket.close()
|
||||
// H5中不立即调用cleanup,等待识别完成
|
||||
}
|
||||
// #endif
|
||||
|
||||
cleanup()
|
||||
// 只清理录音相关资源,不重置识别状态
|
||||
clearInterval(durationTimer)
|
||||
audioStream?.getTracks().forEach(track => track.stop())
|
||||
audioContext?.close()
|
||||
audioStream = null
|
||||
audioContext = null
|
||||
audioInput = null
|
||||
scriptProcessor = null
|
||||
|
||||
isRecording.value = false
|
||||
isSocketConnected.value = false
|
||||
isStopping.value = false
|
||||
}
|
||||
|
||||
const cancelRecording = () => {
|
||||
if (!isRecording.value || isStopping.value) return
|
||||
isStopping.value = true
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
uni.getRecorderManager().stop()
|
||||
// #endif
|
||||
|
||||
// #ifdef H5
|
||||
websocket?.close()
|
||||
// #endif
|
||||
|
||||
// 取消录音时重置所有状态
|
||||
cleanup()
|
||||
isRecognizing.value = false
|
||||
isStopping.value = false
|
||||
}
|
||||
|
||||
@@ -249,16 +380,22 @@ export function useAudioRecorder() {
|
||||
|
||||
isRecording.value = false
|
||||
isSocketConnected.value = false
|
||||
isRecognizing.value = false // 停止录音,重置识别状态
|
||||
}
|
||||
|
||||
onUnmounted(() => {
|
||||
if (isRecording.value) stopRecording()
|
||||
})
|
||||
|
||||
const reset = () => {
|
||||
cleanup()
|
||||
}
|
||||
|
||||
return {
|
||||
isRecording,
|
||||
isStopping,
|
||||
isSocketConnected,
|
||||
isRecognizing,
|
||||
recordingDuration,
|
||||
audioDataForDisplay,
|
||||
volumeLevel,
|
||||
@@ -266,6 +403,7 @@ export function useAudioRecorder() {
|
||||
lastFinalText,
|
||||
startRecording,
|
||||
stopRecording,
|
||||
cancelRecording
|
||||
cancelRecording,
|
||||
reset
|
||||
}
|
||||
}
|
||||
1009
hook/useTTSPlayer.js
1009
hook/useTTSPlayer.js
File diff suppressed because it is too large
Load Diff
26
main.js
26
main.js
@@ -9,20 +9,13 @@ import globalFunction from '@/common/globalFunction'
|
||||
import '@/lib/string-similarity.min.js'
|
||||
import similarityJobs from '@/utils/similarity_Job.js';
|
||||
import config from '@/config.js';
|
||||
import shareMixin from './mixins/share.js';
|
||||
// 组件
|
||||
import AppLayout from './components/AppLayout/AppLayout.vue';
|
||||
import Empty from './components/empty/empty.vue';
|
||||
import NoBouncePage from '@/components/NoBouncePage/NoBouncePage.vue'
|
||||
import MsgTips from '@/components/MsgTips/MsgTips.vue'
|
||||
import SelectPopup from '@/components/selectPopup/selectPopup.vue'
|
||||
import SelectPopupPlugin from '@/components/selectPopup/selectPopupPlugin';
|
||||
import RenderJobs from '@/components/renderJobs/renderJobs.vue';
|
||||
import RenderCompanys from '@/components/renderCompanys/renderCompanys.vue';
|
||||
import uniIcons from './uni_modules/uni-icons/components/uni-icons/uni-icons.vue'
|
||||
import uniPopup from './uni_modules/uni-popup/components/uni-popup/uni-popup.vue'
|
||||
import uniDataSelect from './uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue'
|
||||
import uniSwipeAction from './uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action.vue'
|
||||
import uniSwipeActionItem from './uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue'
|
||||
import storeRc from './utilsRc/store/index.js'
|
||||
import {processFileUrl,} from '@/utilsRc/common.js'
|
||||
// iconfont.css 已在 App.vue 中通过 @import 引入,无需在此处重复引入
|
||||
@@ -44,20 +37,15 @@ import { getDict } from '@/apiRc/system/dict.js';
|
||||
export function createApp() {
|
||||
const app = createSSRApp(App)
|
||||
|
||||
// 注册全局分享混入
|
||||
app.mixin(shareMixin)
|
||||
|
||||
app.component('AppLayout', AppLayout)
|
||||
app.component('Empty', Empty)
|
||||
app.component('NoBouncePage', NoBouncePage)
|
||||
app.component('MsgTips', MsgTips)
|
||||
app.component('SelectPopup', SelectPopup)
|
||||
app.component('RenderJobs', RenderJobs)
|
||||
app.component('RenderCompanys', RenderCompanys)
|
||||
app.component('uni-icons', uniIcons)
|
||||
app.component('uni-popup', uniPopup)
|
||||
app.component('uni-data-select', uniDataSelect)
|
||||
app.component('uni-swipe-action', uniSwipeAction)
|
||||
app.component('uni-swipe-action-item', uniSwipeActionItem)
|
||||
|
||||
|
||||
|
||||
|
||||
app.config.globalProperties.$processFileUrl = processFileUrl;
|
||||
app.config.globalProperties.$getDict = getDict;
|
||||
app.config.globalProperties.$store = storeRc;
|
||||
@@ -94,4 +82,4 @@ export function createApp() {
|
||||
app,
|
||||
Pinia
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
16
mixins/share.js
Normal file
16
mixins/share.js
Normal file
@@ -0,0 +1,16 @@
|
||||
export default {
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
title: '喀什智慧就业平台',
|
||||
path: '/pages/index/index',
|
||||
imageUrl: ''
|
||||
};
|
||||
},
|
||||
onShareTimeline() {
|
||||
return {
|
||||
title: '喀什智慧就业平台',
|
||||
path: '/pages/index/index',
|
||||
imageUrl: ''
|
||||
};
|
||||
}
|
||||
};
|
||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "ks-app",
|
||||
"name": "ks-app-employment-service",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
||||
@@ -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>
|
||||
@@ -142,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');
|
||||
@@ -153,6 +153,7 @@
|
||||
isCollection: 0,
|
||||
jobList: []
|
||||
};
|
||||
jobInfoList.value = [];
|
||||
}
|
||||
}).catch((error) => {
|
||||
console.error('API error when fetching company details:', error);
|
||||
@@ -164,6 +165,7 @@
|
||||
isCollection: 0,
|
||||
jobList: []
|
||||
};
|
||||
jobInfoList.value = [];
|
||||
});
|
||||
}
|
||||
|
||||
@@ -443,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;
|
||||
}
|
||||
|
||||
99
packageA/pages/cancelApplication/cancelApplication.vue
Normal file
99
packageA/pages/cancelApplication/cancelApplication.vue
Normal file
@@ -0,0 +1,99 @@
|
||||
<template>
|
||||
<AppLayout :show-bg-image="false" :use-scroll-view="false">
|
||||
<view class="collection-content">
|
||||
<scroll-view scroll-y class="main-scroll" @scrolltolower="getJobList('add')">
|
||||
<view class="one-cards">
|
||||
<view class="mian">
|
||||
<renderJobs
|
||||
seeDate="shareTime"
|
||||
v-if="pageState.list.length"
|
||||
:list="pageState.list"
|
||||
:longitude="longitudeVal"
|
||||
:latitude="latitudeVal"
|
||||
></renderJobs>
|
||||
<empty v-else pdTop="200"></empty>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</AppLayout>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import dictLabel from '@/components/dict-Label/dict-Label.vue';
|
||||
import AppLayout from '@/components/AppLayout/AppLayout.vue';
|
||||
import { reactive, inject, watch, ref, onMounted } from 'vue';
|
||||
import { onLoad, onShow, onReachBottom } from '@dcloudio/uni-app';
|
||||
import useUserStore from '@/stores/useUserStore';
|
||||
const { $api, navTo, vacanciesTo } = inject('globalFunction');
|
||||
import { storeToRefs } from 'pinia';
|
||||
import useLocationStore from '@/stores/useLocationStore';
|
||||
const { longitudeVal, latitudeVal } = storeToRefs(useLocationStore());
|
||||
const userStore = useUserStore();
|
||||
const state = reactive({});
|
||||
const pageState = reactive({
|
||||
page: 0,
|
||||
list: [],
|
||||
total: 0,
|
||||
maxPage: 1,
|
||||
pageSize: 10,
|
||||
});
|
||||
onLoad(() => {
|
||||
console.log('onLoad');
|
||||
getJobList('refresh');
|
||||
});
|
||||
|
||||
onReachBottom(() => {
|
||||
getJobList();
|
||||
});
|
||||
|
||||
function navToPost(jobId) {
|
||||
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(jobId)}`);
|
||||
}
|
||||
|
||||
function getJobList(type = 'add') {
|
||||
if (type === 'refresh') {
|
||||
pageState.page = 1;
|
||||
pageState.maxPage = 1;
|
||||
}
|
||||
if (type === 'add' && pageState.page < pageState.maxPage) {
|
||||
pageState.page += 1;
|
||||
}
|
||||
let params = {
|
||||
current: pageState.page,
|
||||
pageSize: pageState.pageSize,
|
||||
};
|
||||
$api.createRequest('/app/job/selectCencalList', params, 'GET').then((resData) => {
|
||||
const { rows, total } = resData;
|
||||
if (type === 'add') {
|
||||
const str = pageState.pageSize * (pageState.page - 1);
|
||||
const end = pageState.list.length;
|
||||
const reslist = rows;
|
||||
pageState.list.splice(str, end, ...reslist);
|
||||
} else {
|
||||
pageState.list = rows;
|
||||
}
|
||||
pageState.total = resData.total;
|
||||
pageState.maxPage = Math.ceil(pageState.total / pageState.pageSize);
|
||||
console.log(pageState.list);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.collection-content
|
||||
height: 100%
|
||||
display: flex
|
||||
flex-direction: column
|
||||
|
||||
.main-scroll{
|
||||
flex: 1
|
||||
overflow: hidden
|
||||
}
|
||||
|
||||
.one-cards{
|
||||
padding: 0 28rpx 20rpx 28rpx;
|
||||
background: #f4f4f4
|
||||
|
||||
}
|
||||
</style>
|
||||
@@ -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: '',
|
||||
@@ -364,7 +364,7 @@ const changeSkillName = (index) => {
|
||||
state.currentEditingSkillIndex = index;
|
||||
// 跳转到技能查询页面
|
||||
uni.navigateTo({
|
||||
url: `/pages/complete-info/skill-search?selected=${encodeURIComponent(JSON.stringify([]))}`
|
||||
url: `/packageA/pages/complete-info/skill-search?selected=${encodeURIComponent(JSON.stringify([]))}`
|
||||
});
|
||||
};
|
||||
|
||||
@@ -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) {
|
||||
@@ -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,13 +287,15 @@
|
||||
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
|
||||
})
|
||||
|
||||
}
|
||||
@@ -299,7 +306,10 @@
|
||||
// url: '/packageB/login'
|
||||
// })
|
||||
// }, 1000)
|
||||
isLoading.value = false
|
||||
}
|
||||
}).catch(() => {
|
||||
isLoading.value = false
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -76,6 +76,18 @@
|
||||
<view class="picker-text" data-placeholder="请选择学历要求">{{ selectedEducation || '请选择学历要求' }}</view>
|
||||
</picker>
|
||||
</view>
|
||||
<view class="form-group">
|
||||
<view class="label">人员类型</view>
|
||||
<picker
|
||||
mode="selector"
|
||||
:range="staffTypes"
|
||||
range-key="label"
|
||||
@change="onStaffTypeChange"
|
||||
class="picker"
|
||||
>
|
||||
<view class="picker-text" data-placeholder="请选择人员类型">{{ selectedStaffType || '请选择人员类型' }}</view>
|
||||
</picker>
|
||||
</view>
|
||||
<view class="form-group">
|
||||
<view class="label">工作经验</view>
|
||||
<picker
|
||||
@@ -132,6 +144,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>
|
||||
|
||||
<!-- 图片上传区块 -->
|
||||
@@ -253,6 +278,9 @@
|
||||
|
||||
<!-- 自定义tabbar -->
|
||||
<CustomTabBar :currentPage="1" />
|
||||
|
||||
<!-- 岗位类型选择器 -->
|
||||
<selectJobs ref="jobTypeSelector" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -265,6 +293,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') || {};
|
||||
// 表单数据
|
||||
@@ -276,7 +305,8 @@ const formData = reactive({
|
||||
vacancies: '', // 招聘人数
|
||||
description: '', // 对应接口字段 description
|
||||
jobRequirements: '',
|
||||
jobCategory: '', // 新增:岗位分类
|
||||
type: '', // 岗位分类(用户指示使用type字段)
|
||||
jobCategory: '', // 岗位类型
|
||||
companyId: '', // 新增:企业id
|
||||
latitude: '', // 新增:纬度
|
||||
longitude: '', // 新增:经度
|
||||
@@ -284,6 +314,7 @@ const formData = reactive({
|
||||
jobLocationAreaCode: '', // 新增:工作地点区县字典代码
|
||||
education: '', // 新增:学历要求字典值
|
||||
experience: '', // 新增:工作经验字典值
|
||||
staffType: '', // 新增:人员类型
|
||||
images: [], // 新增:岗位图片
|
||||
contacts: [
|
||||
{
|
||||
@@ -306,6 +337,7 @@ const experienceLevels = ref([]);
|
||||
const workDistricts = ref([]);
|
||||
const workLocations = ref([]);
|
||||
const jobCategories = ref([]); // 新增:岗位分类选项
|
||||
const staffTypes = ref([]); // 新增:人员类型选项
|
||||
|
||||
// 选中的值
|
||||
const selectedEducation = ref('');
|
||||
@@ -313,10 +345,16 @@ const selectedExperience = ref('');
|
||||
const selectedWorkDistrict = ref('');
|
||||
const selectedWorkLocation = ref('');
|
||||
const selectedJobCategory = ref('');
|
||||
const selectedJobTypeLabel = ref(''); // 新增:岗位类型显示文本
|
||||
const selectedJobTypeIds = ref(''); // 新增:岗位类型ID(多个用逗号分隔)
|
||||
const selectedStaffType = ref(''); // 新增:人员类型显示文本
|
||||
|
||||
// 滚动视图高度
|
||||
const scrollViewHeight = ref('calc(100vh - 200rpx)');
|
||||
|
||||
// 岗位类型选择器引用
|
||||
const jobTypeSelector = ref(null);
|
||||
|
||||
// 计算滚动视图高度
|
||||
const calculateScrollViewHeight = () => {
|
||||
const systemInfo = uni.getSystemInfoSync();
|
||||
@@ -413,22 +451,26 @@ 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);
|
||||
|
||||
// 设置人员类型选项 - 从字典获取 staffType
|
||||
const staffTypeDict = await dictStore.getDictSelectOption('staff_type');
|
||||
console.log('从字典获取的人员类型数据:', staffTypeDict);
|
||||
staffTypes.value = staffTypeDict;
|
||||
|
||||
// 设置企业ID(从用户信息获取)
|
||||
if (userStore.userInfo && userStore.userInfo.id) {
|
||||
formData.companyId = userStore.userInfo.id;
|
||||
@@ -487,7 +529,35 @@ 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字段
|
||||
};
|
||||
|
||||
// 新增:人员类型选择器change事件
|
||||
const onStaffTypeChange = (e) => {
|
||||
const index = e.detail.value;
|
||||
const selectedItem = staffTypes.value[index];
|
||||
selectedStaffType.value = selectedItem.label;
|
||||
formData.staffType = selectedItem.value; // 人员类型保存到staffType字段
|
||||
};
|
||||
|
||||
// 打开岗位类型选择器
|
||||
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('取消选择岗位类型');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
// 选择位置
|
||||
@@ -637,10 +707,10 @@ const handleCompanySelected = (company) => {
|
||||
|
||||
// 发布岗位
|
||||
const publishJob = async () => {
|
||||
// 表单验证
|
||||
if (!validateForm()) {
|
||||
return;
|
||||
}
|
||||
// 表单验证
|
||||
if (!validateForm()) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
uni.showLoading({
|
||||
@@ -660,9 +730,11 @@ 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,
|
||||
staffType: formData.staffType, // 新增:人员类型
|
||||
jobContactList: formData.contacts.filter(contact => contact.name.trim() && contact.phone.trim()).map(contact => ({
|
||||
contactPerson: contact.name,
|
||||
contactPersonPhone: contact.phone,
|
||||
@@ -717,16 +789,20 @@ const validateForm = () => {
|
||||
{ field: 'minSalary', message: '请输入最小薪资' },
|
||||
{ field: 'maxSalary', message: '请输入最大薪资' },
|
||||
{ field: 'education', message: '请选择学历要求' },
|
||||
{ field: 'staffType', message: '请选择人员类型' },
|
||||
{ field: 'experience', message: '请选择工作经验' },
|
||||
{ field: 'jobLocation', message: '请选择工作地点' },
|
||||
{ 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'
|
||||
@@ -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: '',
|
||||
@@ -137,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) {
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -472,7 +472,7 @@ function changeSkillName(index) {
|
||||
// 将当前已选中的技能名称传递给查询页面
|
||||
const selectedSkills = state.skills.map(skill => skill.name).filter(name => name);
|
||||
uni.navigateTo({
|
||||
url: `/pages/complete-info/skill-search?selected=${encodeURIComponent(JSON.stringify(selectedSkills))}`
|
||||
url: `/packageA/pages/complete-info/skill-search?selected=${encodeURIComponent(JSON.stringify(selectedSkills))}`
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -32,9 +32,9 @@
|
||||
|
||||
<!-- 控制栏 -->
|
||||
<view class="controls">
|
||||
<!-- <text @click="togglePlay">{{ isPlaying ? '暂停' : '播放' }}</text>
|
||||
<text @click="toggleFullScreen">{{ isFullScreen ? '退出全屏' : '全屏' }}</text> -->
|
||||
<text @click="close">关闭</text>
|
||||
<!-- <view class="control-text" @click="togglePlay">{{ isPlaying ? '暂停' : '播放' }}</view>
|
||||
<view class="control-text" @click="toggleFullScreen">{{ isFullScreen ? '退出全屏' : '全屏' }}</view> -->
|
||||
<view class="control-text" @click="close">关闭</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -180,7 +180,7 @@ defineExpose({ open });
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.controls text {
|
||||
.controls .control-text {
|
||||
color: #fff;
|
||||
font-size: 24rpx;
|
||||
padding: 8rpx 16rpx;
|
||||
|
||||
@@ -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>
|
||||
@@ -218,10 +218,22 @@
|
||||
<view style="height: 34px"></view>
|
||||
<template #footer>
|
||||
<view class="footer">
|
||||
<view class="btn-wq button-click" @click="jobApply">投递简历</view>
|
||||
<view class="btn-wq button-click" @click="jobApply">{{ jobInfo.isApply === 1 ? '取消投递简历' : '投递简历' }}</view>
|
||||
</view>
|
||||
</template>
|
||||
<VideoPlayer ref="videoPalyerRef" />
|
||||
|
||||
<!-- 确认弹窗 -->
|
||||
<view v-if="showConfirmDialog" class="confirm-dialog">
|
||||
<view class="dialog-content">
|
||||
<view class="dialog-title">{{ jobInfo.isApply === 1 ? '确认取消投递' : '确认投递' }}</view>
|
||||
<view class="dialog-message">{{ jobInfo.isApply === 1 ? '确定要取消投递此职位吗?' : '确定要投递此职位吗?' }}</view>
|
||||
<view class="dialog-buttons">
|
||||
<view class="btn-cancel button-click" @click="hideDialog">取消</view>
|
||||
<view class="btn-confirm button-click" @click="confirmAction">确认</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</AppLayout>
|
||||
</template>
|
||||
|
||||
@@ -229,7 +241,7 @@
|
||||
import point from '@/static/icon/point.png';
|
||||
import VideoPlayer from './component/videoPlayer.vue';
|
||||
import { reactive, inject, watch, ref, onMounted, computed } from 'vue';
|
||||
import { onLoad, onShow, onHide } from '@dcloudio/uni-app';
|
||||
import { onLoad, onShow, onHide, onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app';
|
||||
import dictLabel from '@/components/dict-Label/dict-Label.vue';
|
||||
import RadarMap from './component/radarMap.vue';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -266,6 +278,7 @@ const raderData = ref({
|
||||
});
|
||||
const videoPalyerRef = ref(null);
|
||||
const explainUrlRef = ref('');
|
||||
const showConfirmDialog = ref(false);
|
||||
|
||||
// 申请人列表直接使用接口返回的applyUsers数组
|
||||
|
||||
@@ -289,7 +302,6 @@ onShow(() => {
|
||||
}
|
||||
// #endif
|
||||
});
|
||||
|
||||
function initLoad(option) {
|
||||
const jobId = decodeURIComponent(option.jobId);
|
||||
if (jobId !== jobIdRef.value) {
|
||||
@@ -341,16 +353,21 @@ 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) {
|
||||
const canvas = document.createElement('canvas');
|
||||
const context = canvas.getContext('2d');
|
||||
context.font = `${12}px Arial`;
|
||||
return -(context.measureText(text).width / 2) - 20; // 计算文字中心点
|
||||
// 在小程序环境中,document 对象不存在,使用估算方法
|
||||
// 简单估算:每个字符大约占 8px 宽度
|
||||
const estimatedWidth = text.length * 8;
|
||||
return -(estimatedWidth / 2) - 20; // 计算文字中心点
|
||||
}
|
||||
|
||||
function getCompetivetuveness(jobId) {
|
||||
@@ -413,24 +430,58 @@ function getCompetivetuveness(jobId) {
|
||||
|
||||
// 申请岗位
|
||||
function jobApply() {
|
||||
const tokenValue = uni.getStorageSync('token') || '';
|
||||
if (!tokenValue) {
|
||||
$api.msg('请您先登录');
|
||||
return;
|
||||
}
|
||||
// 显示确认弹窗
|
||||
showConfirmDialog.value = true;
|
||||
}
|
||||
|
||||
// 隐藏弹窗
|
||||
function hideDialog() {
|
||||
showConfirmDialog.value = false;
|
||||
}
|
||||
|
||||
// 确认操作
|
||||
function confirmAction() {
|
||||
const jobId = jobInfo.value.jobId;
|
||||
if (jobInfo.value.isApply === 1) {
|
||||
// 取消投递
|
||||
$api.createRequest(`/app/job/applyJobCencal`, { jobId }, 'DELETE').then((resData) => {
|
||||
$api.msg('取消投递成功');
|
||||
getDetail(jobId); // 刷新职位信息
|
||||
showConfirmDialog.value = false;
|
||||
});
|
||||
} else {
|
||||
// 确认投递
|
||||
$api.createRequest(`/app/job/apply/${jobId}`, {}, 'GET').then((resData) => {
|
||||
$api.msg('申请成功');
|
||||
getDetail(jobId); // 刷新职位信息
|
||||
showConfirmDialog.value = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// 确认投递
|
||||
function confirmApply() {
|
||||
const jobId = jobInfo.value.jobId;
|
||||
$api.createRequest(`/app/job/apply/${jobId}`, {}, 'GET').then((resData) => {
|
||||
getDetail(jobId);
|
||||
$api.msg('申请成功');
|
||||
const jobUrl = jobInfo.value.jobUrl;
|
||||
// return window.open(jobUrl);
|
||||
});
|
||||
// if (jobInfo.value.isApply) {
|
||||
// const jobUrl = jobInfo.value.jobUrl;
|
||||
// return window.open(jobUrl);
|
||||
// } else {
|
||||
// $api.createRequest(`/app/job/apply/${jobId}`, {}, 'GET').then((resData) => {
|
||||
// getDetail(jobId);
|
||||
// $api.msg('申请成功');
|
||||
// const jobUrl = jobInfo.value.jobUrl;
|
||||
// return window.open(jobUrl);
|
||||
// });
|
||||
// }
|
||||
$api.msg('申请成功');
|
||||
const jobUrl = jobInfo.value.jobUrl;
|
||||
// return window.open(jobUrl);
|
||||
showConfirmDialog.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
// 取消投递
|
||||
function cancelApply() {
|
||||
const jobId = jobInfo.value.jobId;
|
||||
$api.createRequest(`/app/job/applyJobCencal`, { jobId }, 'DELETE').then((resData) => {
|
||||
$api.msg('取消投递成功');
|
||||
showConfirmDialog.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
// 取消/收藏岗位
|
||||
@@ -504,6 +555,35 @@ function previewImage(url, 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('没有企业信息');
|
||||
}
|
||||
}
|
||||
|
||||
// 分享给朋友
|
||||
onShareAppMessage(() => {
|
||||
return {
|
||||
title: '喀什智慧就业平台',
|
||||
path: '/pages/index/index',
|
||||
imageUrl: ''
|
||||
};
|
||||
});
|
||||
|
||||
// 分享到朋友圈
|
||||
onShareTimeline(() => {
|
||||
return {
|
||||
title: '喀什智慧就业平台',
|
||||
path: '/pages/index/index',
|
||||
imageUrl: ''
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
@@ -946,4 +1026,70 @@ for i in 0..100
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
}
|
||||
// 确认弹窗样式
|
||||
.confirm-dialog {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.dialog-content {
|
||||
width: 80%;
|
||||
max-width: 500rpx;
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
padding: 40rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.dialog-title {
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
|
||||
.dialog-message {
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
margin-bottom: 40rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.dialog-buttons {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 20rpx;
|
||||
}
|
||||
|
||||
.btn-cancel, .btn-confirm {
|
||||
flex: 1;
|
||||
height: 80rpx;
|
||||
border-radius: 12rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.btn-cancel {
|
||||
background-color: #f5f5f5;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.btn-confirm {
|
||||
background-color: #256BFA;
|
||||
color: #fff;
|
||||
}
|
||||
</style>
|
||||
|
||||
364
packageB/institution/evaluationAgency.vue
Normal file
364
packageB/institution/evaluationAgency.vue
Normal 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>
|
||||
256
packageB/institution/evaluationAgencyDetail.vue
Normal file
256
packageB/institution/evaluationAgencyDetail.vue
Normal 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>
|
||||
364
packageB/institution/trainingInstitution.vue
Normal file
364
packageB/institution/trainingInstitution.vue
Normal 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>
|
||||
267
packageB/institution/trainingInstitutionDetail.vue
Normal file
267
packageB/institution/trainingInstitutionDetail.vue
Normal 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>
|
||||
@@ -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;
|
||||
|
||||
@@ -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('请先登录')
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
// 提交面试邀请
|
||||
|
||||
@@ -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,
|
||||
|
||||
79
packageB/notice/detail.vue
Normal file
79
packageB/notice/detail.vue
Normal 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>
|
||||
203
packageB/notice/index.vue
Normal file
203
packageB/notice/index.vue
Normal file
@@ -0,0 +1,203 @@
|
||||
<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,
|
||||
shenhe: '1',
|
||||
}
|
||||
$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,
|
||||
shenhe: '1',
|
||||
}
|
||||
$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>
|
||||
@@ -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>
|
||||
@@ -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([])
|
||||
@@ -228,12 +229,17 @@ const handleReset = () =>{
|
||||
onMounted(async () => {
|
||||
// await loadLevelData('201');
|
||||
});
|
||||
onLoad(async () => {
|
||||
onLoad(() => {
|
||||
let token=uni.getStorageSync('fourLevelLinkage-token')
|
||||
if(token){
|
||||
await loadLevelData('201');
|
||||
getDictionary()
|
||||
getDataList('refresh');
|
||||
$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');
|
||||
}
|
||||
@@ -259,7 +265,7 @@ function getTaskTypeLabelByValue(value) {
|
||||
return item ? item.text : '暂无帮扶类型'
|
||||
}
|
||||
// 加载某一级的数据(parentId 为空表示根)
|
||||
async function loadLevelData(parentId) {
|
||||
async function loadLevelData(parentId,node) {
|
||||
let header = {
|
||||
'Authorization': uni.getStorageSync('fourLevelLinkage-token'),
|
||||
'Content-Type': "application/x-www-form-urlencoded"
|
||||
@@ -274,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);
|
||||
@@ -293,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;
|
||||
@@ -313,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];
|
||||
@@ -322,7 +327,7 @@ function onchange(e) {
|
||||
if (node && (!node.children || node.children.length === 0)) {
|
||||
// 检查接口是否还有下一级(可通过接口返回判断,或先尝试加载)
|
||||
// 这里我们直接尝试加载下一级
|
||||
loadLevelData(lastSelectedValue.value);
|
||||
loadLevelData(node.deptId , node);
|
||||
picker.value.show()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +93,6 @@
|
||||
{{ 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>
|
||||
|
||||
@@ -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>
|
||||
@@ -71,7 +71,7 @@ async function jumps(url){
|
||||
|
||||
async function thirdLogin(){
|
||||
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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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{
|
||||
|
||||
@@ -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)=>{
|
||||
|
||||
393
packageB/train/practice/startPracticingList.vue
Normal file
393
packageB/train/practice/startPracticingList.vue
Normal 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>
|
||||
@@ -145,7 +145,7 @@ async function playVideo(video) {
|
||||
|
||||
async function thirdLogin(){
|
||||
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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -56,7 +56,6 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
barHeight: wx.getWindowInfo().statusBarHeight,
|
||||
list: [],
|
||||
allNum: 0, //总题目数
|
||||
pageIndex: 0, //显示页
|
||||
|
||||
@@ -64,7 +64,6 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
barHeight: wx.getWindowInfo().statusBarHeight,
|
||||
list: [],
|
||||
allNum: 0,//总题目数
|
||||
pageIndex: 0, //显示页
|
||||
|
||||
@@ -48,7 +48,6 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
barHeight: wx.getWindowInfo().statusBarHeight,
|
||||
list: [],
|
||||
allNum: 0,//总题目数
|
||||
pageIndex: 0, //显示页
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
barHeight: wx.getWindowInfo().statusBarHeight,
|
||||
refreshIfNeeded: false, //是否返回刷新
|
||||
dataList: [],
|
||||
}
|
||||
|
||||
@@ -47,7 +47,6 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
barHeight: wx.getWindowInfo().statusBarHeight,
|
||||
list: [],
|
||||
allNum: 0,//总题目数
|
||||
pageIndex: 0, //显示页
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
barHeight: wx.getWindowInfo().statusBarHeight,
|
||||
user: null,//用户信息
|
||||
userId: 0,
|
||||
name: "",
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -82,7 +82,6 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
barHeight: wx.getWindowInfo().statusBarHeight,
|
||||
videoUrl: "",
|
||||
introduceUrl: "",
|
||||
id: "",
|
||||
|
||||
@@ -254,7 +254,6 @@
|
||||
data() {
|
||||
return {
|
||||
platform: uni.getDeviceInfo().platform,
|
||||
barHeight: wx.getWindowInfo().statusBarHeight,
|
||||
showTip: false,
|
||||
layerTitile: "",
|
||||
layerDesc: "",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -108,7 +108,6 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
barHeight: wx.getWindowInfo().statusBarHeight,
|
||||
compassList: [],//罗盘列表
|
||||
checkedIndex: null,
|
||||
jobList: [],//我的职业
|
||||
|
||||
@@ -124,7 +124,6 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
barHeight: wx.getWindowInfo().statusBarHeight,
|
||||
tabs:['目标一 ', '目标二 ', '目标三 ', '目标四 ', '目标五 '],
|
||||
targetForm: {}, //当前选中的目标
|
||||
targetList: [],//目标列表
|
||||
|
||||
@@ -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: [],//意向职业
|
||||
|
||||
@@ -130,7 +130,6 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
barHeight: wx.getWindowInfo().statusBarHeight,
|
||||
jobList: [],//
|
||||
checkedCode: null,
|
||||
jobIntroduce: "",
|
||||
|
||||
@@ -178,7 +178,6 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
barHeight: wx.getWindowInfo().statusBarHeight,
|
||||
tabs:['目标一 ', '目标二 ', '目标三 ', '目标四 ', '目标五 '],
|
||||
targetList: [],////目标列表
|
||||
checkedTargetCode: "",//// 目标码
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
let baseUrl = ""
|
||||
// #ifdef MP-WEIXIN
|
||||
// 编译项目,因为使用插件lime-echart,echart文件过大,需要非压缩代码方式编译,不然会很慢,发布的时候才压缩代码方式编译
|
||||
if (wx.getAccountInfoSync().miniProgram.envVersion === 'develop') {
|
||||
baseUrl = 'https://www.xjksly.cn/career' // 开发环境
|
||||
} else {
|
||||
baseUrl = 'https://www.xjksly.cn/career' // 生产环境
|
||||
}
|
||||
// #endif
|
||||
// let baseUrl = ""
|
||||
// // #ifdef MP-WEIXIN
|
||||
// // 编译项目,因为使用插件lime-echart,echart文件过大,需要非压缩代码方式编译,不然会很慢,发布的时候才压缩代码方式编译
|
||||
|
||||
export {
|
||||
baseUrl
|
||||
}
|
||||
// baseUrl = 'https://www.xjksly.cn/career' // 生产环境
|
||||
// // #endif
|
||||
|
||||
// export {
|
||||
// baseUrl
|
||||
// }
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<!--
|
||||
* @Date: 2025-10-16 15:15:47
|
||||
* @LastEditors: shirlwang
|
||||
* @LastEditTime: 2025-12-08 16:10:47
|
||||
* @LastEditTime: 2026-01-27 09:30:18
|
||||
-->
|
||||
<template>
|
||||
<!-- @scroll="handleScroll" @scrolltolower="scrollBottom" -->
|
||||
<scroll-view :scroll-y="true" class="container" style="background-image: url('../../../packageRc/static/pageBg.png');">
|
||||
<scroll-view :scroll-y="true" class="container" style="background-image: url('../../../packageRc/static/pageBgIndex.png');">
|
||||
<view style="padding: 40rpx 28rpx;">
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<view class="kinggang">
|
||||
@@ -31,56 +31,69 @@
|
||||
</view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<view class="tabs">
|
||||
<view class="tab" :class="{active: pageState.type == ''}" @click="changeJobType('')">岗位列表</view>
|
||||
<view class="tab" :class="{active: pageState.type == 2}" @click="changeJobType(2)">实习实训</view>
|
||||
<view class="tab" :class="{active: pageState.type == 3}" @click="changeJobType(3)">社区实践</view>
|
||||
</view>
|
||||
<view class="titles">
|
||||
<view class="title-item" :class="{active: activeTitle == 1}" @click="activeTitle = 1,getJobRecommed()"><view>推荐岗位</view></view>
|
||||
<view class="title-item" :class="{active: activeTitle == 2}" @click="activeTitle = 2,getJobList()"><view>热门岗位</view></view>
|
||||
</view>
|
||||
<view v-for="(item, index) in jobList" :key="index" @click="nextDetail(item)" class="job-list">
|
||||
<view class="top-line">
|
||||
<view class="salary">{{item.minSalary}}-{{item.maxSalary}}/月</view>
|
||||
<view class="time"><uni-icons color="#A2A2A2" type="info" size="12"></uni-icons>发布日期:{{ item.postingDate }}</view>
|
||||
<view class="showtab">
|
||||
<view class="tabItem" @click="changeType(1)">
|
||||
<image src="/packageRc/static/gw.png"/>
|
||||
<image v-show="tabType == 1" class="activeImg" src="/packageRc/static/activeTangle.png"/>
|
||||
</view>
|
||||
<view class="title">{{ item.jobTitle }}</view>
|
||||
<view class="infos">
|
||||
<view>
|
||||
<dict-Label dictType="education" :value="item.education"></dict-Label>
|
||||
<view class="tabItem" @click="changeType(2)">
|
||||
<image src="/packageRc/static/zc.png"/>
|
||||
<image v-show="tabType == 2" class="activeImg" src="/packageRc/static/activeTangle.png"/>
|
||||
</view>
|
||||
</view>
|
||||
<template v-if="tabType == 1">
|
||||
<view class="tabs">
|
||||
<view class="tab" :class="{active: pageState.type == ''}" @click="changeJobType('')">岗位列表</view>
|
||||
<view class="tab" :class="{active: pageState.type == 2}" @click="changeJobType(2)">实习实训</view>
|
||||
<view class="tab" :class="{active: pageState.type == 3}" @click="changeJobType(3)">社区实践</view>
|
||||
</view>
|
||||
<view class="titles">
|
||||
<view class="title-item" :class="{active: activeTitle == 1}" @click="activeTitle = 1,getJobRecommed()"><view>推荐岗位</view></view>
|
||||
<view class="title-item" :class="{active: activeTitle == 2}" @click="activeTitle = 2,getJobList()"><view>热门岗位</view></view>
|
||||
</view>
|
||||
<view v-for="(item, index) in jobList" :key="index" @click="nextDetail(item)" class="job-list">
|
||||
<view class="top-line">
|
||||
<view class="salary">{{item.minSalary}}-{{item.maxSalary}}/月</view>
|
||||
<view class="time"><uni-icons color="#A2A2A2" type="info" size="12"></uni-icons>发布日期:{{ item.postingDate }}</view>
|
||||
</view>
|
||||
<view>
|
||||
<dict-Label dictType="experience" :value="item.experience"></dict-Label>
|
||||
<view class="title">{{ item.jobTitle }}</view>
|
||||
<view class="infos">
|
||||
<view>
|
||||
<dict-Label dictType="education" :value="item.education"></dict-Label>
|
||||
</view>
|
||||
<view>
|
||||
<dict-Label dictType="experience" :value="item.experience"></dict-Label>
|
||||
</view>
|
||||
<view>{{ item.jobLocation }}</view>
|
||||
</view>
|
||||
<view class="bottom-line">
|
||||
<view><uni-icons color="#A2A2A2" type="person" size="12"></uni-icons>{{item.vacancies}}人</view>
|
||||
<view>{{ item.companyName }}</view>
|
||||
</view>
|
||||
<view>{{ item.jobLocation }}</view>
|
||||
</view>
|
||||
<view class="bottom-line">
|
||||
<view><uni-icons color="#A2A2A2" type="person" size="12"></uni-icons>{{item.vacancies}}人</view>
|
||||
<view>{{ item.companyName }}</view>
|
||||
|
||||
<view class="view-more-btn" @click="viewMore">查看更多内容</view>
|
||||
|
||||
</template>
|
||||
<template v-else>
|
||||
<view class="titles" style="justify-content: space-between;">
|
||||
<view class="title-item active"><view>政策专区</view></view>
|
||||
<view @click="toPolicyList">{{'查看更多 >'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="view-more-btn" @click="viewMore">查看更多内容</view>
|
||||
<view class="titles" style="justify-content: space-between;">
|
||||
<view class="title-item active"><view>政策专区</view></view>
|
||||
<view @click="toPolicyList">{{'查看更多 >'}}</view>
|
||||
</view>
|
||||
<view v-for="(item, index) in policyList" :key="index" class="job-list" @click="toPolicyDetail(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 v-for="(item, index) in policyList" :key="index" class="job-list" @click="toPolicyDetail(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>
|
||||
</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>
|
||||
</template>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</template>
|
||||
@@ -92,13 +105,16 @@ 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
|
||||
})
|
||||
}
|
||||
|
||||
let tabType = ref(1)
|
||||
function changeType(type) {
|
||||
tabType.value = type
|
||||
}
|
||||
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}`)
|
||||
@@ -379,4 +395,22 @@ view{box-sizing: border-box;display: block;}
|
||||
margin: 0 auto;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.showtab{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 40rpx;
|
||||
.tabItem{
|
||||
position: relative;
|
||||
width: calc(50% - 8rpx);
|
||||
height: 144rpx;
|
||||
}
|
||||
.activeImg{
|
||||
position: absolute;
|
||||
width: 143rpx;
|
||||
height: 18rpx;
|
||||
bottom: -24rpx;
|
||||
right: 50%;
|
||||
transform: translateX(50%);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -70,7 +70,7 @@
|
||||
</view>
|
||||
|
||||
<view class="company-grid">
|
||||
<view class="company-item press-button" @click="navTo('/pages/job/publishJob')">
|
||||
<view class="company-item press-button" @click="navTo('/packageA/pages/job/publishJob')">
|
||||
<view class="company-icon company-icon-1">
|
||||
<uni-icons type="plus-filled" size="32" color="#FFFFFF"></uni-icons>
|
||||
</view>
|
||||
@@ -731,7 +731,7 @@ const handleLoginSuccess = () => {
|
||||
// 处理附近工作点击
|
||||
const handleNearbyClick = () => {
|
||||
if (checkLogin()) {
|
||||
navTo("/pages/nearby/nearby");
|
||||
navTo("/packageA/pages/nearby/nearby");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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,
|
||||
|
||||
BIN
packageRc/static/activeTangle.png
Normal file
BIN
packageRc/static/activeTangle.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 734 B |
BIN
packageRc/static/gw.png
Normal file
BIN
packageRc/static/gw.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
BIN
packageRc/static/pageBgIndex.png
Normal file
BIN
packageRc/static/pageBgIndex.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 107 KiB |
BIN
packageRc/static/zc.png
Normal file
BIN
packageRc/static/zc.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
155
pages.json
155
pages.json
@@ -6,6 +6,12 @@
|
||||
"navigationBarTitleText": "喀什智慧就业平台"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/city-select/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "选择城市"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/mine/mine",
|
||||
"style": {
|
||||
@@ -25,67 +31,20 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/complete-info/complete-info",
|
||||
"path": "pages/search/search",
|
||||
"style": {
|
||||
"navigationBarTitleText": "补全信息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/complete-info/company-info",
|
||||
"style": {
|
||||
"navigationBarTitleText": "企业信息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/complete-info/components/map-location-picker",
|
||||
"style": {
|
||||
"navigationBarTitleText": "选择地址"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/complete-info/skill-search",
|
||||
"style": {
|
||||
"navigationBarTitleText": "技能查询"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/nearby/nearby",
|
||||
"style": {
|
||||
"navigationBarTitleText": "附近",
|
||||
"navigationBarBackgroundColor": "#4778EC",
|
||||
"navigationBarTextStyle": "white"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/job/publishJob",
|
||||
"style": {
|
||||
"navigationBarTitleText": "发布岗位"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/job/companySearch",
|
||||
"style": {
|
||||
"navigationBarTitleText": "选择企业",
|
||||
"disableScroll": false,
|
||||
"enablePullDownRefresh": false,
|
||||
"backgroundColor": "#f5f5f5"
|
||||
"navigationBarTitleText": "搜索职位"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/chat/chat",
|
||||
"style": {
|
||||
"navigationBarTitleText": "AI+",
|
||||
"navigationBarTitleText": "智能客服",
|
||||
"navigationBarBackgroundColor": "#4778EC",
|
||||
"navigationBarTextStyle": "white",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/search/search",
|
||||
"style": {
|
||||
"navigationBarTitleText": "搜索职位"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/service/career-planning",
|
||||
"style": {
|
||||
@@ -155,6 +114,53 @@
|
||||
{
|
||||
"root": "packageA",
|
||||
"pages": [
|
||||
{
|
||||
"path": "pages/complete-info/complete-info",
|
||||
"style": {
|
||||
"navigationBarTitleText": "补全信息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/complete-info/company-info",
|
||||
"style": {
|
||||
"navigationBarTitleText": "企业信息"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/complete-info/components/map-location-picker",
|
||||
"style": {
|
||||
"navigationBarTitleText": "选择地址"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/complete-info/skill-search",
|
||||
"style": {
|
||||
"navigationBarTitleText": "技能查询"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/nearby/nearby",
|
||||
"style": {
|
||||
"navigationBarTitleText": "附近",
|
||||
"navigationBarBackgroundColor": "#4778EC",
|
||||
"navigationBarTextStyle": "white"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/job/publishJob",
|
||||
"style": {
|
||||
"navigationBarTitleText": "发布岗位"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/job/companySearch",
|
||||
"style": {
|
||||
"navigationBarTitleText": "选择企业",
|
||||
"disableScroll": false,
|
||||
"enablePullDownRefresh": false,
|
||||
"backgroundColor": "#f5f5f5"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/addWorkExperience/addWorkExperience",
|
||||
"style": {
|
||||
@@ -306,6 +312,13 @@
|
||||
"navigationBarBackgroundColor": "#4778EC",
|
||||
"navigationBarTextStyle": "white"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/cancelApplication/cancelApplication",
|
||||
"style": {
|
||||
"navigationBarTitleText": "取消投递",
|
||||
"navigationBarBackgroundColor": "#FFFFFF"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -342,6 +355,12 @@
|
||||
"navigationBarTitleText": "技能评价"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "train/practice/startPracticingList",
|
||||
"style": {
|
||||
"navigationBarTitleText": "专项训练"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "train/practice/startPracticing",
|
||||
"style": {
|
||||
@@ -419,6 +438,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": "培训机构信息详情"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -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,7 +189,7 @@
|
||||
jobFairTitle: "",
|
||||
});
|
||||
const baseUrl = config.imgBaseUrl;
|
||||
|
||||
const showTabar = ref(false);
|
||||
onLoad(async () => {
|
||||
// const today = new Date();
|
||||
// const year = today.getFullYear();
|
||||
@@ -149,13 +207,60 @@
|
||||
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;
|
||||
};
|
||||
|
||||
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') {
|
||||
if (uni.getStorageSync('userInfo') && (uni.getStorageSync('userInfo').isCompanyUser=='1' || uni.getStorageSync('userInfo').isCompanyUser=='2')) {
|
||||
form={
|
||||
usertype: '1',
|
||||
idno: uni.getStorageSync('userInfo').idCard,
|
||||
@@ -198,16 +303,22 @@
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
// 监听退出登录事件,显示微信登录弹窗
|
||||
uni.$on("showLoginModal", () => {
|
||||
wxAuthLoginRef.value?.open();
|
||||
});
|
||||
});
|
||||
|
||||
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 = () => {
|
||||
@@ -331,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;
|
||||
@@ -396,6 +523,7 @@
|
||||
pageSize: pageState.pageSize,
|
||||
jobFairTitle: pageState.jobFairTitle,
|
||||
jobFairType: state.current,
|
||||
dictValue: selectedValues.value,
|
||||
};
|
||||
if (isLogin.value) {
|
||||
if (userInfo.value.userType == "ent") {
|
||||
@@ -553,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;
|
||||
@@ -571,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;
|
||||
}
|
||||
|
||||
@@ -615,6 +904,8 @@
|
||||
padding: 0 24rpx;
|
||||
width: calc(100% - 48rpx);
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.app-container .container-header .header-input .iconsearch {
|
||||
@@ -630,6 +921,7 @@
|
||||
background: #ffffff;
|
||||
border-radius: 75rpx;
|
||||
font-size: 28rpx;
|
||||
flex:1
|
||||
}
|
||||
|
||||
.app-container .container-header .header-input .inputplace {
|
||||
@@ -637,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;
|
||||
@@ -698,7 +996,9 @@
|
||||
width: 100%;
|
||||
height: calc(100% - 150rpx);
|
||||
}
|
||||
|
||||
.fullHeightScroll{
|
||||
height: 100% !important;
|
||||
}
|
||||
.cards {
|
||||
padding: 28rpx;
|
||||
}
|
||||
|
||||
@@ -61,6 +61,7 @@
|
||||
<view class="main-header">
|
||||
<image src="/static/icon/Hamburger-button.png" @click="toggleDrawer"></image>
|
||||
<view class="title">{{ config.appInfo.areaName }}岗位推荐</view>
|
||||
<!-- <view class="title">智能客服</view> -->
|
||||
<image src="/static/icon/Comment-one.png" @click="addNewDialogue"></image>
|
||||
</view>
|
||||
</header>
|
||||
|
||||
@@ -65,6 +65,26 @@ const centerIndex = ref(0);
|
||||
// 动画帧ID
|
||||
let animationId = null;
|
||||
|
||||
// 为小程序环境提供requestAnimationFrame兼容
|
||||
const requestAnimationFramePolyfill = (callback) => {
|
||||
// #ifdef MP-WEIXIN
|
||||
return setTimeout(callback, 16); // 约60fps
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
return requestAnimationFrame(callback);
|
||||
// #endif
|
||||
};
|
||||
|
||||
// 为小程序环境提供cancelAnimationFrame兼容
|
||||
const cancelAnimationFramePolyfill = (id) => {
|
||||
// #ifdef MP-WEIXIN
|
||||
clearTimeout(id);
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
cancelAnimationFrame(id);
|
||||
// #endif
|
||||
};
|
||||
|
||||
// 格式化显示时间
|
||||
const formattedTime = computed(() => {
|
||||
const mins = Math.floor(props.recordingTime / 60)
|
||||
@@ -125,7 +145,7 @@ const updateWaveform = () => {
|
||||
}
|
||||
}
|
||||
|
||||
animationId = requestAnimationFrame(updateWaveform);
|
||||
animationId = requestAnimationFramePolyfill(updateWaveform);
|
||||
};
|
||||
|
||||
// 更新单个波形条
|
||||
@@ -157,14 +177,14 @@ const updateWaveBar = (index, value) => {
|
||||
// 开始动画
|
||||
const startAnimation = () => {
|
||||
if (!animationId) {
|
||||
animationId = requestAnimationFrame(updateWaveform);
|
||||
animationId = requestAnimationFramePolyfill(updateWaveform);
|
||||
}
|
||||
};
|
||||
|
||||
// 停止动画
|
||||
const stopAnimation = () => {
|
||||
if (animationId) {
|
||||
cancelAnimationFrame(animationId);
|
||||
cancelAnimationFramePolyfill(animationId);
|
||||
animationId = null;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -133,10 +133,31 @@
|
||||
<view class="chat-item self" v-if="isRecording">
|
||||
<view class="message">{{ recognizedText }} {{ lastFinalText }}</view>
|
||||
</view>
|
||||
<!-- 语音正在识别提示 -->
|
||||
<!-- <view>{{isRecognizing}}</view> -->
|
||||
<view class="chat-item self" v-if="isRecognizing">
|
||||
<view class="message msg-loading">
|
||||
<view class="loading-content">
|
||||
<view class="ai-loading">
|
||||
<view></view>
|
||||
<view></view>
|
||||
<view></view>
|
||||
</view>
|
||||
<text class="loading-text">正在识别语音...</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="isTyping" class="self">
|
||||
<text class="message msg-loading">
|
||||
<span class="ai-loading"></span>
|
||||
</text>
|
||||
<view class="message msg-loading">
|
||||
<view class="loading-content">
|
||||
<view class="ai-loading">
|
||||
<view></view>
|
||||
<view></view>
|
||||
<view></view>
|
||||
</view>
|
||||
<text class="loading-text">AI正在思考中...</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
@@ -168,9 +189,6 @@
|
||||
@touchmove="handleTouchMove"
|
||||
@touchend="handleTouchEnd"
|
||||
@touchcancel="handleTouchCancel"
|
||||
:catchtouchstart="true"
|
||||
:catchtouchmove="true"
|
||||
:catchtouchend="true"
|
||||
v-show="isVoice"
|
||||
type="default"
|
||||
>
|
||||
@@ -276,7 +294,7 @@ import {
|
||||
getCurrentInstance,
|
||||
} from 'vue';
|
||||
import { storeToRefs } from 'pinia';
|
||||
// import config from '@/config.js';
|
||||
// 移除重复导入,使用从globalFunction注入的config
|
||||
import useChatGroupDBStore from '@/stores/userChatGroupStore';
|
||||
import MdRender from '@/components/md-render/md-render.vue';
|
||||
import CollapseTransition from '@/components/CollapseTransition/CollapseTransition.vue';
|
||||
@@ -287,11 +305,11 @@ import FileIcon from './fileIcon.vue';
|
||||
import FileText from './fileText.vue';
|
||||
import { useAudioRecorder } from '@/hook/useRealtimeRecorder.js';
|
||||
import { useTTSPlayer } from '@/hook/useTTSPlayer.js';
|
||||
import successIcon from '@/static/icon/success.png';
|
||||
// 全局
|
||||
const { $api, navTo, throttle, config } = inject('globalFunction');
|
||||
const emit = defineEmits(['onConfirm']);
|
||||
const { messages, isTyping, textInput, chatSessionID } = storeToRefs(useChatGroupDBStore());
|
||||
import successIcon from '@/static/icon/success.png';
|
||||
// hook
|
||||
const {
|
||||
isRecording,
|
||||
@@ -302,8 +320,32 @@ const {
|
||||
volumeLevel,
|
||||
recognizedText,
|
||||
lastFinalText,
|
||||
recordingDuration,
|
||||
isRecognizing,
|
||||
reset
|
||||
} = useAudioRecorder();
|
||||
|
||||
// 监听语音识别结果变化,自动发送消息
|
||||
watch(
|
||||
() => recognizedText.value,
|
||||
(newVal) => {
|
||||
if (newVal && newVal.trim()) {
|
||||
console.log('监听到语音识别结果变化,自动发送消息:', newVal);
|
||||
sendMessage(newVal);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
// 监听isRecognizing状态,显示提示
|
||||
watch(
|
||||
() => isRecognizing.value,
|
||||
(newVal) => {
|
||||
if (newVal) {
|
||||
$api.msg('正在识别语音...');
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
const { speak, pause, resume, isSpeaking, isPaused, cancelAudio } = useTTSPlayer(config.speechSynthesis);
|
||||
|
||||
// 获取组件实例(用于小程序 SelectorQuery)
|
||||
@@ -355,6 +397,7 @@ onMounted(async () => {
|
||||
changeQueries();
|
||||
scrollToBottom();
|
||||
isAudioPermission.value = await requestMicPermission();
|
||||
reset(); // 重置语音识别状态
|
||||
});
|
||||
|
||||
const requestMicPermission = async () => {
|
||||
@@ -436,11 +479,16 @@ const sendMessage = (text) => {
|
||||
console.log('📝 Has job info:', hasJobInfo);
|
||||
|
||||
// 开始朗读当前消息
|
||||
speechIndex.value = index;
|
||||
readMarkdown(message.displayText, index);
|
||||
speechIndex.value = index;
|
||||
readMarkdown(message.displayText, index, { immediate: false });
|
||||
// 一旦开始朗读,就设置speechIndex,避免重复调用
|
||||
speechIndex.value = index;
|
||||
} else {
|
||||
console.log('⏳ Waiting for more content before TTS, current length:', message.displayText.length);
|
||||
}
|
||||
} else {
|
||||
// 已经开始朗读这条消息,不再重复调用
|
||||
console.log('⏭️ Already speaking this message, skipping duplicate TTS call');
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -465,7 +513,7 @@ const sendMessage = (text) => {
|
||||
|
||||
// 开始朗读完整的内容
|
||||
speechIndex.value = lastMessageIndex;
|
||||
readMarkdown(lastMessage.displayText, lastMessageIndex);
|
||||
readMarkdown(lastMessage.displayText, lastMessageIndex, { immediate: true });
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -551,7 +599,9 @@ const scrollToBottom = throttle(function () {
|
||||
}, 500);
|
||||
|
||||
function getGuess() {
|
||||
$api.chatRequest('/guest', { sessionId: chatSessionID.value }, 'POST').then((res) => {
|
||||
// $api.chatRequest('/guest', { sessionId: chatSessionID.value }, 'POST').then((res) => {
|
||||
$api.chatRequest('/guest', undefined, 'POST').then((res) => {
|
||||
console.log('getGuess ---- res:', res);
|
||||
guessList.value = res.data;
|
||||
showGuess.value = true;
|
||||
nextTick(() => {
|
||||
@@ -675,17 +725,22 @@ const handleTouchEnd = () => {
|
||||
if (status.value === 'cancel') {
|
||||
console.log('取消发送');
|
||||
cancelRecording();
|
||||
status.value = 'idle';
|
||||
} else {
|
||||
stopRecording();
|
||||
if (isAudioPermission.value) {
|
||||
if (recognizedText.value) {
|
||||
sendMessage(recognizedText.value);
|
||||
} else {
|
||||
// 主要根据录音时长判断,而不是完全依赖识别结果
|
||||
// 由于setInterval是异步的,这里需要考虑计时延迟
|
||||
const actualDuration = recordingDuration.value > 0 ? recordingDuration.value : (isRecording.value ? 0.5 : 0);
|
||||
if (actualDuration < 1) {
|
||||
$api.msg('说话时长太短');
|
||||
status.value = 'idle';
|
||||
} else {
|
||||
// 状态管理由useAudioRecorder hook内部处理
|
||||
status.value = 'idle';
|
||||
}
|
||||
}
|
||||
}
|
||||
status.value = 'idle';
|
||||
};
|
||||
|
||||
const handleTouchCancel = () => {
|
||||
@@ -731,7 +786,10 @@ function confirmFeeBack(value) {
|
||||
// 防抖定时器
|
||||
let ttsDebounceTimer = null;
|
||||
|
||||
function readMarkdown(value, index) {
|
||||
// 保存上一次调用的文本内容,避免重复调用TTS
|
||||
let lastSpeechText = '';
|
||||
|
||||
function readMarkdown(value, index, options = {}) {
|
||||
console.log('🎤 readMarkdown called');
|
||||
console.log('📝 Text to speak:', value ? value.substring(0, 100) + '...' : 'No text');
|
||||
console.log('🔢 Index:', index);
|
||||
@@ -744,40 +802,37 @@ function readMarkdown(value, index) {
|
||||
clearTimeout(ttsDebounceTimer);
|
||||
}
|
||||
|
||||
// 如果当前正在播放其他消息,先停止
|
||||
if (speechIndex.value !== index && speechIndex.value !== 0) {
|
||||
console.log('🛑 Stopping current speech and starting new one');
|
||||
speechIndex.value = index;
|
||||
speak(value);
|
||||
return;
|
||||
}
|
||||
|
||||
// 总是先停止当前播放,无论是不是同一消息
|
||||
console.log('🛑 Always stopping current speech before starting new one');
|
||||
speechIndex.value = index;
|
||||
|
||||
// 如果当前正在播放且暂停了,直接恢复
|
||||
if (isPaused.value && isSpeaking.value) {
|
||||
console.log('▶️ Resuming paused speech');
|
||||
resume();
|
||||
return;
|
||||
}
|
||||
|
||||
// 如果当前正在播放且没有暂停,不需要重新开始
|
||||
if (isSpeaking.value && !isPaused.value) {
|
||||
console.log('🔊 Already speaking, no need to restart');
|
||||
return;
|
||||
}
|
||||
|
||||
// 使用防抖,避免频繁调用TTS
|
||||
ttsDebounceTimer = setTimeout(() => {
|
||||
console.log('🎵 Starting new speech');
|
||||
console.log('🎵 Calling speak function with text length:', value ? value.length : 0);
|
||||
try {
|
||||
speak(value);
|
||||
console.log('✅ Speak function called successfully');
|
||||
} catch (error) {
|
||||
console.error('❌ Error calling speak function:', error);
|
||||
// 立即调用speak,不使用防抖延迟
|
||||
const speakNow = () => {
|
||||
// 检查文本内容是否发生变化,避免重复调用TTS
|
||||
if (value !== lastSpeechText) {
|
||||
console.log('🎵 Starting new speech');
|
||||
console.log('🎵 Calling speak function with text length:', value ? value.length : 0);
|
||||
try {
|
||||
speak(value);
|
||||
console.log('✅ Speak function called successfully');
|
||||
// 更新上一次调用的文本内容
|
||||
lastSpeechText = value;
|
||||
} catch (error) {
|
||||
console.error('❌ Error calling speak function:', error);
|
||||
}
|
||||
} else {
|
||||
console.log('🔄 Same text as last speech, skipping duplicate TTS call');
|
||||
}
|
||||
}, 300); // 300ms防抖延迟
|
||||
};
|
||||
|
||||
// 改进防抖逻辑,确保在短时间内只调用一次
|
||||
if (options.immediate) {
|
||||
// 如果是onComplete回调,立即播放
|
||||
speakNow();
|
||||
} else {
|
||||
// 对于流式数据,总是使用防抖,避免频繁调用
|
||||
ttsDebounceTimer = setTimeout(speakNow, 500); // 延长防抖时间到500ms
|
||||
}
|
||||
}
|
||||
function stopMarkdown(value, index) {
|
||||
console.log('⏸️ stopMarkdown called for index:', index);
|
||||
@@ -804,22 +859,22 @@ function refreshMarkdown(index) {
|
||||
}
|
||||
|
||||
const jobSearchQueries = [
|
||||
'青岛有哪些薪资 12K 以上的岗位适合我?',
|
||||
'青岛 3 年工作经验能找到哪些 12K 以上的工作?',
|
||||
'青岛哪些公司在招聘,薪资范围在 12K 以上?',
|
||||
'青岛有哪些企业提供 15K 以上的岗位?',
|
||||
'青岛哪些公司在招 3-5 年经验的岗位?',
|
||||
'我有三年的工作经验,能否推荐一些适合我的青岛的国企 岗位?',
|
||||
'青岛国企目前在招聘哪些岗位?',
|
||||
'青岛有哪些适合 3 年经验的国企岗位?',
|
||||
'青岛国企招聘的岗位待遇如何?',
|
||||
'青岛国企岗位的薪资水平是多少?',
|
||||
'青岛哪些国企支持双休 & 五险一金完善?',
|
||||
'青岛有哪些公司支持远程办公?',
|
||||
'青岛有哪些外企的岗位,薪资 12K 以上的多吗?',
|
||||
'青岛哪些企业在招聘 Web3.0 相关岗位?',
|
||||
'青岛哪些岗位支持海外远程?薪资如何?',
|
||||
'青岛招聘 AI/大数据相关岗位的公司有哪些?',
|
||||
'喀什地区有哪些薪资 12K 以上的岗位适合我?',
|
||||
'喀什地区 3 年工作经验能找到哪些 12K 以上的工作?',
|
||||
'喀什地区哪些公司在招聘,薪资范围在 12K 以上?',
|
||||
'喀什地区有哪些企业提供 15K 以上的岗位?',
|
||||
'喀什地区哪些公司在招 3-5 年经验的岗位?',
|
||||
'我有三年的工作经验,能否推荐一些适合我的喀什地区的国企 岗位?',
|
||||
'喀什地区国企目前在招聘哪些岗位?',
|
||||
'喀什地区有哪些适合 3 年经验的国企岗位?',
|
||||
'喀什地区国企招聘的岗位待遇如何?',
|
||||
'喀什地区国企岗位的薪资水平是多少?',
|
||||
'喀什地区哪些国企支持双休 & 五险一金完善?',
|
||||
'喀什地区有哪些公司支持远程办公?',
|
||||
'喀什地区有哪些外企的岗位,薪资 12K 以上的多吗?',
|
||||
'喀什地区哪些企业在招聘 Web3.0 相关岗位?',
|
||||
'喀什地区哪些岗位支持海外远程?薪资如何?',
|
||||
'喀什地区招聘 AI/大数据相关岗位的公司有哪些?',
|
||||
];
|
||||
|
||||
function changeQueries(value) {
|
||||
@@ -1003,12 +1058,26 @@ image-margin-top = 40rpx
|
||||
.messageNull
|
||||
display: none
|
||||
.msg-loading{
|
||||
background: transparent;
|
||||
font-size: 24rpx;
|
||||
color: #8f8d8e;
|
||||
background: #F6F6F6;
|
||||
border-radius: 20rpx 0 20rpx 20rpx;
|
||||
padding: 20rpx;
|
||||
width: fit-content;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.loading-content{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 16rpx;
|
||||
}
|
||||
|
||||
.loading-text{
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
.loaded{
|
||||
padding-left: 20rpx
|
||||
@@ -1095,6 +1164,11 @@ image-margin-top = 40rpx
|
||||
-moz-user-select:none;
|
||||
-ms-user-select:none;
|
||||
touch-action: none; /* 禁用默认滚动 */
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 160rpx; /* 为底部导航栏留出空间 */
|
||||
z-index: 9999; /* 确保高于其他元素 */
|
||||
.record-tip
|
||||
font-weight: 400;
|
||||
color: #909090;
|
||||
@@ -1248,25 +1322,55 @@ image-margin-top = 40rpx
|
||||
.file-border
|
||||
width: 160rpx !important;
|
||||
|
||||
@keyframes ai-circle {
|
||||
0% {
|
||||
-webkit-transform: rotate(0);
|
||||
transform: rotate(0);
|
||||
/* 更美观的loading动画 - 兼容H5和小程序 */
|
||||
@keyframes ai-loading-dots {
|
||||
0%, 20%, 80%, 100% {
|
||||
transform: scale(1);
|
||||
opacity: 0.6;
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
40% {
|
||||
transform: scale(1.2);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
.ai-loading
|
||||
|
||||
/* 重置默认样式 */
|
||||
.ai-loading {
|
||||
display: inline-flex;
|
||||
vertical-align: middle;
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
background: 0 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8rpx;
|
||||
width: auto;
|
||||
height: auto;
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* 三个点的样式 - 使用标准CSS语法,不使用嵌套 */
|
||||
.ai-loading view {
|
||||
display: inline-block;
|
||||
width: 12rpx;
|
||||
height: 12rpx;
|
||||
border-radius: 50%;
|
||||
border: 4rpx solid;
|
||||
border-color: #e5e5e5 #e5e5e5 #e5e5e5 #8f8d8e;
|
||||
-webkit-animation: ai-circle 1s linear infinite;
|
||||
animation: ai-circle 1s linear infinite;
|
||||
background-color: #256BFA;
|
||||
animation: ai-loading-dots 1.4s ease-in-out infinite both;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* 为每个点设置不同的动画延迟 */
|
||||
.ai-loading view:nth-child(1) {
|
||||
animation-delay: -0.32s;
|
||||
}
|
||||
|
||||
.ai-loading view:nth-child(2) {
|
||||
animation-delay: -0.16s;
|
||||
}
|
||||
|
||||
.ai-loading view:nth-child(3) {
|
||||
animation-delay: 0s;
|
||||
}
|
||||
</style>
|
||||
|
||||
425
pages/city-select/index.vue
Normal file
425
pages/city-select/index.vue
Normal file
@@ -0,0 +1,425 @@
|
||||
<template>
|
||||
<view class="city-select-container">
|
||||
<!-- 顶部导航栏 -->
|
||||
<!-- <view class="nav-bar">
|
||||
<view class="nav-left" @click="navBack">
|
||||
<uni-icons type="left" size="24" color="#333"></uni-icons>
|
||||
</view>
|
||||
<view class="nav-title">选择城市</view>
|
||||
<view class="nav-right"></view>
|
||||
</view> -->
|
||||
|
||||
<!-- 搜索框 -->
|
||||
<view class="search-box">
|
||||
<uni-icons class="search-icon" type="search" size="20" color="#999"></uni-icons>
|
||||
<input
|
||||
class="search-input"
|
||||
placeholder="搜索城市名/拼音"
|
||||
placeholder-style="color: #999"
|
||||
v-model="searchText"
|
||||
@input="handleSearch"
|
||||
>
|
||||
</view>
|
||||
|
||||
<!-- 定位城市 -->
|
||||
<!-- <view class="location-section">
|
||||
<view class="section-title">定位城市</view>
|
||||
<view class="location-city" :class="{ active: selectedCity.code === locationCity.code }" @click="selectCity(locationCity)">
|
||||
{{ locationCity.name }}
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<!-- 热门城市 -->
|
||||
<!-- <view class="hot-section">
|
||||
<view class="section-title">热门城市</view>
|
||||
<view class="hot-cities">
|
||||
<view
|
||||
class="city-item"
|
||||
:class="{ active: selectedCity.code === item.code }"
|
||||
v-for="item in hotCities"
|
||||
:key="item.code"
|
||||
@click="selectCity(item)"
|
||||
>
|
||||
{{ item.name }}
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<!-- 城市数量统计 -->
|
||||
<!-- <view class="city-count" v-if="allCities.length > 0">
|
||||
共找到 {{ allCities.length }} 个城市
|
||||
</view> -->
|
||||
|
||||
<!-- 城市列表 -->
|
||||
<view class="city-list-section">
|
||||
<scroll-view
|
||||
class="city-list-content"
|
||||
scroll-y
|
||||
:scroll-into-view="currentScrollId"
|
||||
:scroll-with-animation="true"
|
||||
>
|
||||
<view
|
||||
class="city-group"
|
||||
v-for="group in cityGroups"
|
||||
:key="group.letter"
|
||||
:id="`city-group-${group.letter}`"
|
||||
>
|
||||
<view class="group-title">{{ group.letter }}</view>
|
||||
<view
|
||||
class="city-item"
|
||||
:class="{ active: selectedCity.code === item.code }"
|
||||
v-for="item in group.cities"
|
||||
:key="item.code"
|
||||
@click="selectCity(item)"
|
||||
>
|
||||
{{ item.name }}
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
<!-- 右侧字母索引 -->
|
||||
<view class="letter-index">
|
||||
<view
|
||||
class="letter-item"
|
||||
v-for="letter in letters"
|
||||
:key="letter"
|
||||
@click="scrollToLetter(letter)"
|
||||
:class="{ active: currentLetter === letter }"
|
||||
>
|
||||
{{ letter }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, reactive, onMounted, computed, inject } from 'vue';
|
||||
const { $api, navTo } = inject('globalFunction');
|
||||
|
||||
// 搜索文本
|
||||
const searchText = ref('');
|
||||
// 定位城市
|
||||
const locationCity = ref({ code: '110100', name: '北京' });
|
||||
// 选中的城市
|
||||
const selectedCity = ref({ code: '', name: '' });
|
||||
// 当前显示的字母
|
||||
const currentLetter = ref('');
|
||||
// 当前滚动到的城市组ID
|
||||
const currentScrollId = ref('');
|
||||
// 城市数据
|
||||
const allCities = ref([]);
|
||||
// 字母列表
|
||||
const letters = ref(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']);
|
||||
|
||||
|
||||
// 按字母分组的城市
|
||||
const cityGroups = computed(() => {
|
||||
const groups = {};
|
||||
const filteredCities = allCities.value.filter(city => {
|
||||
if (!searchText.value) return true;
|
||||
return city.name.includes(searchText.value) || city.pinyin?.includes(searchText.value.toUpperCase());
|
||||
});
|
||||
|
||||
console.log('过滤后用于分组的城市:', filteredCities);
|
||||
|
||||
// 初始化字母分组
|
||||
letters.value.forEach(letter => {
|
||||
groups[letter] = { letter, cities: [] };
|
||||
});
|
||||
|
||||
// 将城市分配到对应字母组
|
||||
filteredCities.forEach(city => {
|
||||
const firstLetter = city.pinyin || '#';
|
||||
// 如果字母不在预定义列表中,将其添加到分组中
|
||||
if (!groups[firstLetter]) {
|
||||
groups[firstLetter] = { letter: firstLetter, cities: [] };
|
||||
}
|
||||
groups[firstLetter].cities.push(city);
|
||||
});
|
||||
|
||||
const result = Object.values(groups).filter(group => group.cities.length > 0);
|
||||
|
||||
// 对城市组进行排序
|
||||
result.sort((a, b) => {
|
||||
// '#' 符号应该排在最前面
|
||||
if (a.letter === '#') return -1;
|
||||
if (b.letter === '#') return 1;
|
||||
// 其他字母按字母顺序排序
|
||||
return a.letter.localeCompare(b.letter);
|
||||
});
|
||||
|
||||
console.log('最终分组结果:', result);
|
||||
|
||||
return result;
|
||||
});
|
||||
|
||||
// 获取城市数据
|
||||
const getCityData = async () => {
|
||||
try {
|
||||
// 直接获取所有城市数据,新接口已经返回了所有层级的数据
|
||||
const res = await $api.createRequest('/cms/dict/sysarea/listCity', {});
|
||||
console.log('城市数据接口返回:', res);
|
||||
if (res.code === 200 && res.data) {
|
||||
console.log('原始城市数据:', res.data);
|
||||
// 显示接口返回的所有城市数据
|
||||
const filteredCities = res.data;
|
||||
console.log('过滤后城市数据:', filteredCities);
|
||||
|
||||
// 直接使用后端返回的zm字段作为拼音首字母,并转换为大写
|
||||
allCities.value = filteredCities.map(city => ({
|
||||
...city,
|
||||
pinyin: (city.zm || '#').toUpperCase()
|
||||
}));
|
||||
|
||||
console.log('使用后端zm字段的城市数据:', allCities.value);
|
||||
|
||||
// 按拼音首字母排序
|
||||
allCities.value.sort((a, b) => {
|
||||
// 首先按拼音首字母排序
|
||||
if (a.pinyin !== b.pinyin) {
|
||||
// '#' 符号应该排在最前面
|
||||
if (a.pinyin === '#') return -1;
|
||||
if (b.pinyin === '#') return 1;
|
||||
return a.pinyin.localeCompare(b.pinyin);
|
||||
}
|
||||
// 首字母相同时,按城市名称排序
|
||||
return a.name.localeCompare(b.name);
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('获取城市数据失败:', error);
|
||||
}
|
||||
};
|
||||
|
||||
// 获取拼音首字母(使用更准确的映射表)
|
||||
const getPinyinFirstLetter = (name) => {
|
||||
const firstChar = name.charAt(0);
|
||||
|
||||
// 查找对应的拼音首字母
|
||||
for (const [letter, chars] of Object.entries(pinyinMap)) {
|
||||
if (chars.includes(firstChar)) {
|
||||
return letter;
|
||||
}
|
||||
}
|
||||
|
||||
// 如果没有找到,返回#
|
||||
return '#';
|
||||
};
|
||||
|
||||
// 处理搜索
|
||||
const handleSearch = () => {
|
||||
// 搜索逻辑已在cityGroups计算属性中处理
|
||||
};
|
||||
|
||||
// 选择城市
|
||||
const selectCity = (city) => {
|
||||
selectedCity.value = city;
|
||||
// 返回上一页并传递选择的城市
|
||||
uni.navigateBack({
|
||||
delta: 1,
|
||||
success: () => {
|
||||
// 发送事件通知首页选择了城市
|
||||
uni.$emit('citySelected', city);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
// 滚动到指定字母
|
||||
const scrollToLetter = (letter) => {
|
||||
currentLetter.value = letter;
|
||||
// 更新滚动ID,触发scroll-view滚动
|
||||
currentScrollId.value = `city-group-${letter}`;
|
||||
};
|
||||
|
||||
// 返回上一页
|
||||
const navBack = () => {
|
||||
uni.navigateBack({ delta: 1 });
|
||||
};
|
||||
|
||||
// 组件挂载时获取城市数据
|
||||
onMounted(() => {
|
||||
getCityData();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.city-select-container {
|
||||
background-color: #f5f5f5;
|
||||
min-height: 100vh;
|
||||
padding-top: 16px;
|
||||
}
|
||||
|
||||
/* 导航栏 */
|
||||
.nav-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 44px;
|
||||
padding: 0 16px;
|
||||
background-color: #fff;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
|
||||
.nav-left,
|
||||
.nav-right {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.nav-title {
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* 搜索框 */
|
||||
.search-box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 12px 16px;
|
||||
padding:8px 16px;
|
||||
background-color: #fff;
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
flex: 1;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
border: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* 定位城市 */
|
||||
.location-section {
|
||||
padding: 16px;
|
||||
background-color: #fff;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.location-city {
|
||||
display: inline-block;
|
||||
padding: 8px 20px;
|
||||
background-color: #f0f9ff;
|
||||
color: #007aff;
|
||||
border-radius: 20px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.location-city.active {
|
||||
background-color: #007aff;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* 热门城市 */
|
||||
.hot-section {
|
||||
padding: 16px;
|
||||
background-color: #fff;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.city-count {
|
||||
padding: 0 16px 12px;
|
||||
background-color: #fff;
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.hot-cities {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.city-item {
|
||||
padding: 8px 20px;
|
||||
background-color: #f5f5f5;
|
||||
color: #333;
|
||||
border-radius: 20px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.city-item.active {
|
||||
background-color: #007aff;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* 城市列表 */
|
||||
.city-list-section {
|
||||
display: flex;
|
||||
background-color: #fff;
|
||||
height: calc(100vh - 180px);
|
||||
}
|
||||
|
||||
.city-list-content {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.city-group {
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
.group-title {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
margin: 12px 0 8px 0;
|
||||
padding-left: 4px;
|
||||
}
|
||||
|
||||
.city-list-content .city-item {
|
||||
display: block;
|
||||
padding: 12px 4px;
|
||||
margin-bottom: 0;
|
||||
background-color: transparent;
|
||||
border-radius: 0;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.city-list-content .city-item.active {
|
||||
background-color: transparent;
|
||||
color: #007aff;
|
||||
}
|
||||
|
||||
/* 右侧字母索引 */
|
||||
.letter-index {
|
||||
width: 30px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.letter-item {
|
||||
width: 24px;
|
||||
height: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
margin: 2px 0;
|
||||
}
|
||||
|
||||
.letter-item.active {
|
||||
color: #007aff;
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view class="app-container">
|
||||
<view class="app-container" @touchstart="handleTouchStart" @touchmove="handleTouchMove">
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<!-- 小程序背景图片 -->
|
||||
<image class="mp-background" src="/static/icon/background2.png" mode="aspectFill"></image>
|
||||
@@ -75,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">
|
||||
@@ -110,7 +110,7 @@
|
||||
<view class="service-icon service-icon-5">
|
||||
<IconfontIcon name="jinengpeixun" :size="48" color="#FFFFFF" />
|
||||
</view>
|
||||
<view class="service-title">技能培训</view>
|
||||
<view class="service-title">技能课堂</view>
|
||||
</view>
|
||||
<view class="service-item press-button" @click="handleServiceClick('skill-evaluation')">
|
||||
<view class="service-icon service-icon-6">
|
||||
@@ -136,24 +136,19 @@
|
||||
</view>
|
||||
<view class="service-title">虚拟面试</view>
|
||||
</view>
|
||||
<view class="service-item press-button" style="justify-content:normal" @click="goRc()">
|
||||
<view class="service-icon service-icon-9">
|
||||
<IconfontIcon name="Graduation-simple-" :size="32" color="#FFFFFF" />
|
||||
</view>
|
||||
<view class="service-title" style="overflow:unset">高校毕业生<br/>智慧就业服务</view>
|
||||
</view>
|
||||
|
||||
<view class="service-item press-button" @click="handleServiceClick('career-planning')">
|
||||
<view class="service-icon service-icon-11">
|
||||
<image class="service-icon-img" src="/static/icon/antOutline.png" mode="aspectFit"></image>
|
||||
</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> -->
|
||||
<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>
|
||||
@@ -166,6 +161,31 @@
|
||||
</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 class="service-item press-button" style="justify-content:normal" @click="goRc()">
|
||||
<view class="service-icon service-icon-9">
|
||||
<IconfontIcon name="Graduation-simple-" :size="32" color="#FFFFFF" />
|
||||
</view>
|
||||
<view class="service-title" style="overflow:unset">高校毕业生<br/>智慧就业服务</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
</view>
|
||||
@@ -178,7 +198,7 @@
|
||||
</view>
|
||||
|
||||
<view class="company-grid">
|
||||
<view class="company-item press-button" @click="navTo('/pages/job/publishJob')">
|
||||
<view class="company-item press-button" @click="navTo('/packageA/pages/job/publishJob')">
|
||||
<view class="company-icon company-icon-1">
|
||||
<uni-icons type="plus-filled" size="32" color="#FFFFFF"></uni-icons>
|
||||
</view>
|
||||
@@ -210,7 +230,7 @@
|
||||
|
||||
|
||||
<view class="nav-filter" :class="{ 'sticky-filter': shouldStickyFilter }" v-if="shouldShowJobSeekerContent">
|
||||
<view class="filter-top" @touchmove.stop.prevent>
|
||||
<view class="filter-top">
|
||||
<scroll-view :scroll-x="true" :show-scrollbar="false" class="tab-scroll">
|
||||
<view class="jobs-left">
|
||||
<view
|
||||
@@ -231,10 +251,15 @@
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
<view class="jobs-add button-click" @click="navTo('/packageA/pages/addPosition/addPosition')">
|
||||
<uni-icons class="iconsearch" color="#666D7F" type="plusempty" size="18"></uni-icons>
|
||||
<text>添加</text>
|
||||
</view>
|
||||
<view class="jobs-add button-click" @click="navTo('/pages/city-select/index')" style="padding-right:0;">
|
||||
<text>{{ selectedCity.name || '地区' }}</text>
|
||||
<image class="right-sx" :class="{ active: showFilter }" src="@/static/icon/shaixun.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter-bottom">
|
||||
<view class="btm-left">
|
||||
@@ -297,7 +322,7 @@
|
||||
<view class="falls-card-company" v-show="isShowJw !== 3">
|
||||
{{ config.appInfo.areaName }}
|
||||
<!-- {{ job.jobLocation }} -->
|
||||
<dict-Label dictType="area" :value="job.jobLocationAreaCode"></dict-Label>
|
||||
<dict-Label dictType="jobLocationAreaCode" :value="job.jobLocationAreaCode"></dict-Label>
|
||||
</view>
|
||||
<view class="falls-card-pepleNumber">
|
||||
<view>
|
||||
@@ -374,7 +399,7 @@
|
||||
<view class="falls-card-company" v-show="isShowJw !== 3">
|
||||
{{ config.appInfo.areaName }}
|
||||
<!-- {{ job.jobLocation }} -->
|
||||
<dict-Label dictType="area" :value="job.jobLocationAreaCode"></dict-Label>
|
||||
<dict-Label dictType="jobLocationAreaCode" :value="job.jobLocationAreaCode"></dict-Label>
|
||||
</view>
|
||||
<view class="falls-card-pepleNumber">
|
||||
<view>
|
||||
@@ -542,10 +567,48 @@ const lastScrollTop = ref(0);
|
||||
const scrollTop = ref(0);
|
||||
// 当用户与筛选/导航交互时,临时锁定头部显示状态,避免因数据刷新导致回弹显示
|
||||
const isInteractingWithFilter = ref(false);
|
||||
// 触摸事件状态
|
||||
const touchStartY = ref(0);
|
||||
const touchMoveY = ref(0);
|
||||
// 滚动阈值配置
|
||||
const HIDE_THRESHOLD = 50; // 隐藏顶部区域的滚动阈值(降低阈值,更容易触发)
|
||||
const SHOW_THRESHOLD = 5; // 显示顶部区域的滚动阈值(接近顶部)
|
||||
const STICKY_THRESHOLD = 80; // 筛选区域吸顶的滚动阈值
|
||||
const TOUCH_MOVE_THRESHOLD = 30; // 触摸滑动阈值,用于判断是否为有效滑动
|
||||
|
||||
// 处理触摸开始事件
|
||||
function handleTouchStart(e) {
|
||||
// 记录触摸起始位置
|
||||
touchStartY.value = e.touches[0].clientY;
|
||||
}
|
||||
|
||||
// 处理触摸移动事件
|
||||
function handleTouchMove(e) {
|
||||
// 记录触摸移动位置
|
||||
touchMoveY.value = e.touches[0].clientY;
|
||||
|
||||
// 计算滑动距离
|
||||
const diffY = touchStartY.value - touchMoveY.value;
|
||||
|
||||
// 当向上滑动超过阈值时,隐藏顶部区域
|
||||
if (diffY > TOUCH_MOVE_THRESHOLD) {
|
||||
if (!shouldHideTop.value) {
|
||||
shouldHideTop.value = true;
|
||||
}
|
||||
if (!shouldStickyFilter.value) {
|
||||
shouldStickyFilter.value = true;
|
||||
}
|
||||
}
|
||||
// 当向下滑动超过阈值且在顶部附近时,显示顶部区域
|
||||
else if (diffY < -TOUCH_MOVE_THRESHOLD && scrollTop.value <= SHOW_THRESHOLD) {
|
||||
if (shouldHideTop.value && !isInteractingWithFilter.value) {
|
||||
shouldHideTop.value = false;
|
||||
}
|
||||
if (shouldStickyFilter.value) {
|
||||
shouldStickyFilter.value = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 简化的滚动处理函数
|
||||
function handleScroll(e) {
|
||||
@@ -589,6 +652,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,
|
||||
@@ -603,17 +674,20 @@ const inputText = ref('');
|
||||
const showFilter = ref(false);
|
||||
const selectFilterModel = ref(null);
|
||||
const showModel = ref(false);
|
||||
// 选中的城市
|
||||
const selectedCity = ref({ code: '', name: '' });
|
||||
const rangeOptions = ref([
|
||||
{ value: 0, text: '推荐' },
|
||||
{ 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) {
|
||||
@@ -678,27 +752,55 @@ const goToCompanyInfo = () => {
|
||||
navTo('/pages/mine/company-info');
|
||||
};
|
||||
|
||||
|
||||
// 组件初始化时加载数据
|
||||
onMounted(() => {
|
||||
// 获取企业信息
|
||||
getCompanyInfo();
|
||||
// pageNull.value = 0;
|
||||
// 监听退出登录事件,显示微信登录弹窗
|
||||
uni.$on('showLoginModal', () => {
|
||||
wxAuthLoginRef.value?.open();
|
||||
pageNull.value = 0;
|
||||
});
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
onMounted(() => {
|
||||
// 在组件挂载时绑定事件监听,确保只绑定一次
|
||||
// 先移除可能存在的旧监听,避免重复绑定
|
||||
uni.$off('showLoginModal');
|
||||
uni.$off('citySelected');
|
||||
|
||||
// 绑定新的监听
|
||||
uni.$on('showLoginModal', () => {
|
||||
console.log('收到showLoginModal事件,打开登录弹窗');
|
||||
wxAuthLoginRef.value?.open();
|
||||
pageNull.value = 0;
|
||||
});
|
||||
|
||||
// 监听城市选择事件
|
||||
uni.$on('citySelected', (city) => {
|
||||
console.log('收到citySelected事件,选择的城市:', city);
|
||||
selectedCity.value = city;
|
||||
// 可以在这里添加根据城市筛选职位的逻辑
|
||||
conditionSearch.value.regionCode = city.code;
|
||||
getJobRecommend('refresh');
|
||||
});
|
||||
|
||||
// 获取企业信息
|
||||
getCompanyInfo();
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
// 组件销毁时移除事件监听
|
||||
uni.$off('showLoginModal');
|
||||
uni.$off('citySelected');
|
||||
});
|
||||
|
||||
onShow(() => {
|
||||
// 获取最新的企业信息
|
||||
// 页面显示时获取最新的企业信息
|
||||
getCompanyInfo();
|
||||
//四级联动单点及权限
|
||||
getIsFourLevelLinkagePurview()
|
||||
// 四级联动单点及权限
|
||||
getIsFourLevelLinkagePurview();
|
||||
});
|
||||
|
||||
// 监听用户信息变化,当登录状态改变时重新获取企业信息
|
||||
@@ -729,21 +831,63 @@ const handleLoginSuccess = () => {
|
||||
//四级联动单点及权限
|
||||
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');
|
||||
navTo('/packageA/pages/nearby/nearby');
|
||||
}
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
const token = options.token || uni.getStorageSync('zkr-token');
|
||||
if (token) {
|
||||
navTo('/packageA/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
|
||||
@@ -777,17 +921,12 @@ const handleLiveClick = () => {
|
||||
const handleSalaryInfoClick = () => {
|
||||
navTo('/pages/service/salary-info');
|
||||
};
|
||||
const handleJobFairClick = () => {
|
||||
navTo('/pages/careerfair/careerfair');
|
||||
};
|
||||
|
||||
const handleH5SalaryClick = () => {
|
||||
const salaryUrl = "https://www.mohrss.gov.cn/SYrlzyhshbzb/laodongguanxi_/fwyd/202506/t20250627_544623.html";
|
||||
window.location.assign(salaryUrl);
|
||||
};
|
||||
// 处理帮扶
|
||||
const helpClick = () => {
|
||||
navTo('/packageB/priority/helpFilter');
|
||||
};
|
||||
|
||||
async function loadData() {
|
||||
try {
|
||||
if (isLoaded.value) return;
|
||||
@@ -799,7 +938,6 @@ async function loadData() {
|
||||
}
|
||||
const pageNull = ref(0);
|
||||
function scrollBottom() {
|
||||
console.log('scrollBottom------')
|
||||
if (loadmoreRef.value && typeof loadmoreRef.value.change === 'function') {
|
||||
loadmoreRef.value.change('loading');
|
||||
}
|
||||
@@ -862,15 +1000,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) {
|
||||
@@ -966,6 +1096,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 {
|
||||
@@ -980,12 +1116,16 @@ 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') || {};
|
||||
@@ -1064,11 +1204,15 @@ function getJobList(type = 'add') {
|
||||
...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);
|
||||
@@ -1405,10 +1549,10 @@ defineExpose({ loadData });
|
||||
color: #256BFA
|
||||
// 服务功能网格样式
|
||||
.service-grid
|
||||
padding: 20rpx 28rpx
|
||||
padding: 10rpx 28rpx
|
||||
display: grid
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr
|
||||
grid-gap: 20rpx
|
||||
grid-gap: 10rpx
|
||||
.service-item
|
||||
display: flex
|
||||
flex-direction: column
|
||||
@@ -1416,12 +1560,12 @@ defineExpose({ loadData });
|
||||
justify-content: center
|
||||
height: 120rpx
|
||||
background: transparent
|
||||
padding: 10px 0px
|
||||
padding: 2rpx 0px
|
||||
.service-icon
|
||||
width: 88rpx
|
||||
height: 88rpx
|
||||
border-radius: 12rpx
|
||||
margin-bottom: 8rpx
|
||||
width: 62rpx
|
||||
height: 62rpx
|
||||
border-radius: 10rpx
|
||||
margin-bottom: 14rpx
|
||||
flex-shrink: 0
|
||||
.service-icon-1
|
||||
background: linear-gradient(180deg, #FF8E8E 0%, #E53E3E 100%)
|
||||
@@ -1640,6 +1784,9 @@ defineExpose({ loadData });
|
||||
min-width: 80rpx;
|
||||
padding: 8rpx 12rpx;
|
||||
white-space: nowrap;
|
||||
.right-sx
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
.filter-bottom
|
||||
display: flex
|
||||
justify-content: space-between
|
||||
@@ -1651,8 +1798,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;
|
||||
@@ -1671,12 +1818,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
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
@@ -194,7 +194,7 @@ const handleLogin = async () => {
|
||||
icon: 'success'
|
||||
})
|
||||
// window.location.assign('http://222.80.110.161:11111/mechine-dual-vue/login')
|
||||
window.location.assign('https://www.xjksly.cn/mechine-single-vue/login')
|
||||
// window.location.assign('https://www.xjksly.cn/mechine-single-vue/login')
|
||||
// // 跳转到首页
|
||||
// uni.reLaunch({
|
||||
// url: '/pages/index/index'
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user