Compare commits
46 Commits
CareerMap
...
17366c05ee
| Author | SHA1 | Date | |
|---|---|---|---|
| 17366c05ee | |||
|
|
9d37f3a22a | ||
|
|
9315d0c371 | ||
|
|
d7d8ed4e49 | ||
|
|
cc3f84196c | ||
|
|
4cf06bb1d1 | ||
|
|
e6c6d4fa23 | ||
|
|
43fb1550e4 | ||
| 8aec595f6f | |||
|
|
09a7fb2c13 | ||
|
|
934f082de4 | ||
|
|
2b9663db53 | ||
|
|
2ab6253fad | ||
|
|
b07d56801b | ||
|
|
8438946789 | ||
|
|
74ff0b5238 | ||
| 98677bf997 | |||
| d566d55bc6 | |||
|
|
42e401ef7a | ||
| d65b8e4bff | |||
| 8a409b45fe | |||
|
|
e465224773 | ||
|
|
84f29ab03e | ||
|
|
1da5df831c | ||
| 16389e2a7e | |||
| f33dde36a4 | |||
| 6d97f65d7e | |||
|
|
993c22a7f1 | ||
|
|
7cb1ce777e | ||
| 06f9d3a484 | |||
| 090366191e | |||
|
|
8f119607f2 | ||
| 96b8cd5e08 | |||
|
|
2b03a8fb17 | ||
|
|
523fee1dec | ||
|
|
f6b5144daa | ||
|
|
19e1aab840 | ||
|
|
3cf0a7d7f5 | ||
| 872b68b0f2 | |||
|
|
0028c81d7d | ||
|
|
8d150c7b88 | ||
|
|
94d6caee7f | ||
|
|
22d96430d6 | ||
|
|
38313ee63b | ||
|
|
4e5fa2a39b | ||
|
|
dcd6741b37 |
@@ -16,15 +16,17 @@ export function getJobPathPage(params) {
|
|||||||
|
|
||||||
// 根据职业路径ID获取详情
|
// 根据职业路径ID获取详情
|
||||||
export function getJobPathDetail(params) {
|
export function getJobPathDetail(params) {
|
||||||
|
const {startJobId, endJobId} = params;
|
||||||
const requestParams = {};
|
const requestParams = {};
|
||||||
if (params?.jobPathId !== undefined && params?.jobPathId !== null && params?.jobPathId !== '') {
|
if (startJobId !== undefined && startJobId !== null && startJobId !== '') {
|
||||||
requestParams.id = params.jobPathId;
|
requestParams.startJobId = startJobId;
|
||||||
} else if (params?.id !== undefined && params?.id !== null && params?.id !== '') {
|
}
|
||||||
requestParams.id = params.id;
|
if (endJobId !== undefined && endJobId !== null && endJobId !== '') {
|
||||||
|
requestParams.endJobId = endJobId;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!requestParams.id) {
|
if (!startJobId || !endJobId) {
|
||||||
return Promise.reject('缺少必需的 id 参数');
|
return Promise.reject('缺少必需的 startJobId 和 endJobId 参数');
|
||||||
}
|
}
|
||||||
|
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Date: 2024-09-25 11:14:29
|
* @Date: 2024-09-25 11:14:29
|
||||||
* @LastEditors: shirlwang
|
* @LastEditors: shirlwang
|
||||||
* @LastEditTime: 2025-11-04 08:56:59
|
* @LastEditTime: 2025-12-23 17:40:11
|
||||||
*/
|
*/
|
||||||
import request from '@/utilsRc/request'
|
import request from '@/utilsRc/request'
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ export function listJobRecommend(query) {
|
|||||||
export function getWorkListReq(query) {
|
export function getWorkListReq(query) {
|
||||||
return request({
|
return request({
|
||||||
// url: '/personnel/personBaseInfo/postRecommend',
|
// url: '/personnel/personBaseInfo/postRecommend',
|
||||||
url: '/company/unitPostInfo/postElectedList',
|
url: '/manage/info/postElectedList',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
@@ -43,7 +43,7 @@ export function addJobRecommend(data) {
|
|||||||
//岗位推荐保存和办结
|
//岗位推荐保存和办结
|
||||||
export function saveJobRecommend(data) {
|
export function saveJobRecommend(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/process/processJobRecommend/create',
|
url: '/process/processJobRecommend/createJob',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
@@ -70,7 +70,7 @@ export function delJobRecommend(ids) {
|
|||||||
export function getAddedJobs(params) {
|
export function getAddedJobs(params) {
|
||||||
return request({
|
return request({
|
||||||
// url: '/company/postDeliverInfo/list',
|
// url: '/company/postDeliverInfo/list',
|
||||||
url: '/company/unitPostInfo/no/permission/list',
|
url: '/manage/info/no/permission/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params,
|
params,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import request from '@/utilsRc/request'
|
|||||||
// 获取用户信息(职业规划推荐用)
|
// 获取用户信息(职业规划推荐用)
|
||||||
export function appUserInfo() {
|
export function appUserInfo() {
|
||||||
return request({
|
return request({
|
||||||
fullUrl: 'http://222.80.110.161:80/api/ks/app/user/appUserInfo',
|
fullUrl: 'https://www.xjksly.cn/api/ks/app/user/appUserInfo',
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ const prePage = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// export const urls ='http://10.110.145.145/images/train/'
|
// export const urls ='http://10.110.145.145/images/train/'
|
||||||
export const urls ='http://222.80.110.161:80/images/train/'
|
export const urls ='https://www.xjksly.cn/images/train/'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 页面跳转封装,支持 query 参数传递和返回回调
|
* 页面跳转封装,支持 query 参数传递和返回回调
|
||||||
|
|||||||
@@ -125,7 +125,17 @@ const generateTabbarList = () => {
|
|||||||
// });
|
// });
|
||||||
// #endif
|
// #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;
|
return baseItems;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -274,7 +274,22 @@
|
|||||||
$api.myRequest("/jobfair/public/job-info/list", data, "GET", 9100, {
|
$api.myRequest("/jobfair/public/job-info/list", data, "GET", 9100, {
|
||||||
Authorization: `Bearer ${uni.getStorageSync("Padmin-Token")}`
|
Authorization: `Bearer ${uni.getStorageSync("Padmin-Token")}`
|
||||||
}).then((resData) => {
|
}).then((resData) => {
|
||||||
|
if(resData.code == 200){
|
||||||
jobList.value = resData.data.list || [];
|
jobList.value = resData.data.list || [];
|
||||||
|
// let isPublishJobList = resData.data.list || [];
|
||||||
|
// jobList.value = isPublishJobList.filter(job => job.isPublish === "1");
|
||||||
|
// if (isPublishJobList.length > 0 && jobList.value.length === 0) {
|
||||||
|
// uni.showToast({
|
||||||
|
// title: '请等待岗位审核通过后,再进行报名',
|
||||||
|
// icon: 'none'
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
}else{
|
||||||
|
uni.showToast({
|
||||||
|
title: '请前往基本信息中完善企业信息和岗位信息',
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -195,7 +195,8 @@ defineExpose({
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.popup-content {
|
.popup-content {
|
||||||
color: #000000;
|
color: #000000;
|
||||||
height: 80vh;
|
height: 84vh;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
.popup-bottom {
|
.popup-bottom {
|
||||||
padding: 40rpx 28rpx 20rpx 28rpx;
|
padding: 40rpx 28rpx 20rpx 28rpx;
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
@getphonenumber="getPhoneNumber"
|
@getphonenumber="getPhoneNumber"
|
||||||
>
|
>
|
||||||
<uni-icons type="phone" size="20" color="#FFFFFF"></uni-icons>
|
<uni-icons type="phone" size="20" color="#FFFFFF"></uni-icons>
|
||||||
<text>微信授权登录</text>
|
<text>手机号快捷登录</text>
|
||||||
</button>
|
</button>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
<!-- #ifndef MP-WEIXIN -->
|
<!-- #ifndef MP-WEIXIN -->
|
||||||
<button class="auth-btn primary" @click="wxLogin">
|
<button class="auth-btn primary" @click="wxLogin">
|
||||||
<uni-icons type="phone" size="20" color="#FFFFFF"></uni-icons>
|
<uni-icons type="phone" size="20" color="#FFFFFF"></uni-icons>
|
||||||
<text>微信授权登录</text>
|
<text>手机号快捷登录</text>
|
||||||
</button>
|
</button>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
|
|
||||||
@@ -88,12 +88,12 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 用户协议 -->
|
<!-- 用户协议 -->
|
||||||
<view class="auth-agreement">
|
<!-- <view class="auth-agreement">
|
||||||
<text>登录即表示同意</text>
|
<text>登录即表示同意</text>
|
||||||
<text class="link" @click="openAgreement('user')">《用户协议》</text>
|
<text class="link" @click="openAgreement('user')">《用户协议》</text>
|
||||||
<text>和</text>
|
<text>和</text>
|
||||||
<text class="link" @click="openAgreement('privacy')">《隐私政策》</text>
|
<text class="link" @click="openAgreement('privacy')">《隐私政策》</text>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</uni-popup>
|
</uni-popup>
|
||||||
|
|||||||
19
config.js
19
config.js
@@ -1,16 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* @Descripttion:
|
||||||
|
* @Author: lip
|
||||||
|
* @Date: 2025-12-04 13:40:08
|
||||||
|
* @LastEditors: lip
|
||||||
|
*/
|
||||||
export default {
|
export default {
|
||||||
// baseUrl: 'http://39.98.44.136:8080', // 测试
|
// baseUrl: 'http://39.98.44.136:8080', // 测试
|
||||||
baseUrl: 'http://222.80.110.161:80/api/ks', // 测试
|
baseUrl: 'https://www.xjksly.cn/api/ks', // 测试
|
||||||
|
// baseUrl: 'https://www.xjksly.cn/api/ks', // 测试
|
||||||
// baseUrl: 'http://ks.zhaopinzao8dian.com/api/ks', // 测试
|
// baseUrl: 'http://ks.zhaopinzao8dian.com/api/ks', // 测试
|
||||||
|
|
||||||
// LCBaseUrl:'http://10.110.145.145:9100',//内网端口
|
// LCBaseUrl:'http://10.110.145.145:9100',//内网端口
|
||||||
// LCBaseUrlInner:'http://10.110.145.145:10100',//招聘、培训、帮扶
|
// LCBaseUrlInner:'http://10.110.145.145:10100',//招聘、培训、帮扶
|
||||||
// imgBaseUrl:'http://10.110.145.145/images', //图片基础url
|
// imgBaseUrl:'http://10.110.145.145/images', //图片基础url
|
||||||
// trainVideoImgUrl:'http://10.110.145.145:9100/file/file/minio',
|
// trainVideoImgUrl:'http://10.110.145.145:9100/file/file/minio',
|
||||||
LCBaseUrl:'http://222.80.110.161:80/prod-api',//内网端口
|
LCBaseUrl:'https://www.xjksly.cn/prod-api',//内网端口
|
||||||
LCBaseUrlInner:'http://222.80.110.161:80/prod-psout-api',//招聘、培训、帮扶
|
LCBaseUrlInner:'https://www.xjksly.cn/prod-psout-api',//招聘、培训、帮扶
|
||||||
imgBaseUrl:'http://222.80.110.161:80/images', //图片基础url
|
imgBaseUrl:'https://www.xjksly.cn/images', //图片基础url
|
||||||
trainVideoImgUrl:'http://222.80.110.161:80/prod-api/file/file/minio',
|
trainVideoImgUrl:'https://www.xjksly.cn/prod-api/file/file/minio',
|
||||||
// sseAI+
|
// sseAI+
|
||||||
// StreamBaseURl: 'http://39.98.44.136:8000',
|
// StreamBaseURl: 'http://39.98.44.136:8000',
|
||||||
StreamBaseURl: 'https://qd.zhaopinzao8dian.com/ai',
|
StreamBaseURl: 'https://qd.zhaopinzao8dian.com/ai',
|
||||||
@@ -29,7 +36,7 @@ export default {
|
|||||||
// 应用信息
|
// 应用信息
|
||||||
appInfo: {
|
appInfo: {
|
||||||
// 应用名称
|
// 应用名称
|
||||||
name: "青岛市就业服务",
|
name: "喀什市就业服务",
|
||||||
// 地区名
|
// 地区名
|
||||||
areaName: '喀什',
|
areaName: '喀什',
|
||||||
// AI名称
|
// AI名称
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "ks-app",
|
"name": "ks-app-employment-service",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
|||||||
@@ -39,8 +39,8 @@
|
|||||||
<scroll-view scroll-y class="Detailscroll-view">
|
<scroll-view scroll-y class="Detailscroll-view">
|
||||||
<view class="views">
|
<view class="views">
|
||||||
<view class="Detail-title"><text class="title">在招职位</text></view>
|
<view class="Detail-title"><text class="title">在招职位</text></view>
|
||||||
<template v-if="companyInfo.jobList && companyInfo.jobList.length != 0">
|
<template v-if="jobInfoList && jobInfoList.length != 0">
|
||||||
<view v-for="job in companyInfo.jobList" :key="job.jobId">
|
<view v-for="job in jobInfoList" :key="job.jobId">
|
||||||
<view class="cards" @click="navToJobDetail(job.jobId)">
|
<view class="cards" @click="navToJobDetail(job.jobId)">
|
||||||
<view class="card-company">
|
<view class="card-company">
|
||||||
<text class="company">{{ job.jobTitle }}</text>
|
<text class="company">{{ job.jobTitle }}</text>
|
||||||
@@ -116,6 +116,7 @@
|
|||||||
const companyInfo = ref({
|
const companyInfo = ref({
|
||||||
jobList: [],
|
jobList: [],
|
||||||
});
|
});
|
||||||
|
const jobInfoList = ref([]);
|
||||||
const baseUrl = config.imgBaseUrl;
|
const baseUrl = config.imgBaseUrl;
|
||||||
const getItemBackgroundStyle = (imageName) => ({
|
const getItemBackgroundStyle = (imageName) => ({
|
||||||
backgroundImage: `url(${baseUrl}/jobfair/${imageName})`,
|
backgroundImage: `url(${baseUrl}/jobfair/${imageName})`,
|
||||||
@@ -212,6 +213,10 @@
|
|||||||
|
|
||||||
if (options.job && typeof options.job === 'string') {
|
if (options.job && typeof options.job === 'string') {
|
||||||
try {
|
try {
|
||||||
|
const job=JSON.parse(options.job)
|
||||||
|
if(job.jobInfoList.length > 0){
|
||||||
|
jobInfoList.value = job.jobInfoList
|
||||||
|
}
|
||||||
companyInfo.value = JSON.parse(options.job);
|
companyInfo.value = JSON.parse(options.job);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error parsing job data:', error);
|
console.error('Error parsing job data:', error);
|
||||||
@@ -360,6 +365,7 @@
|
|||||||
|
|
||||||
// 跳转到职位详情页面
|
// 跳转到职位详情页面
|
||||||
function navToJobDetail(jobId) {
|
function navToJobDetail(jobId) {
|
||||||
|
return
|
||||||
if (jobId) {
|
if (jobId) {
|
||||||
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(jobId)}`);
|
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(jobId)}`);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,12 +14,12 @@
|
|||||||
<view class="row1 line_2">{{ fairInfo?.jobFairTitle }}</view>
|
<view class="row1 line_2">{{ fairInfo?.jobFairTitle }}</view>
|
||||||
<view class="row2">
|
<view class="row2">
|
||||||
<text>{{ fairInfo?.jobFairAddress }}</text>
|
<text>{{ fairInfo?.jobFairAddress }}</text>
|
||||||
<convert-distance :alat="fairInfo?.latitude" :along="fairInfo?.longitude" :blat="latitudeVal"
|
<!-- <convert-distance :alat="fairInfo?.latitude" :along="fairInfo?.longitude" :blat="latitudeVal"
|
||||||
:blong="longitudeVal"></convert-distance>
|
:blong="longitudeVal"></convert-distance> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="locations">
|
<!-- <view class="locations">
|
||||||
<image class="location-img" src="/static/icon/mapLine.png"></image>
|
<image class="location-img" src="/static/icon/mapLine.png"></image>
|
||||||
<view class="location-info">
|
<view class="location-info">
|
||||||
<view class="info">
|
<view class="info">
|
||||||
@@ -27,14 +27,14 @@
|
|||||||
<text class="info-text">位置</text>
|
<text class="info-text">位置</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="conetent-info" :class="{ expanded: isExpanded }">
|
<view class="conetent-info" :class="{ expanded: isExpanded }">
|
||||||
<view class="info-title">内容描述</view>
|
<view class="info-title">内容描述</view>
|
||||||
<view class="info-desirption">{{ fairInfo?.jobFairIntroduction }}</view>
|
<view class="info-desirption">{{ fairInfo?.jobFairIntroduction }}</view>
|
||||||
<!-- <view class="info-title title2">公司地址</view>
|
<!-- <view class="info-title title2">公司地址</view>
|
||||||
<view class="locationCompany"></view> -->
|
<view class="locationCompany"></view> -->
|
||||||
<view class="company-times">
|
<view class="company-times">
|
||||||
<view class="info-title">内容描述</view>
|
<view class="info-title">招聘会时间</view>
|
||||||
<view class="card-times">
|
<view class="card-times">
|
||||||
<view class="time-left">
|
<view class="time-left">
|
||||||
<view class="left-date">{{ parseDateTime(fairInfo.jobFairStartTime).time }}</view>
|
<view class="left-date">{{ parseDateTime(fairInfo.jobFairStartTime).time }}</view>
|
||||||
@@ -105,9 +105,9 @@
|
|||||||
</view>
|
</view>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<view class="footer" v-if="hasnext">
|
<view class="footer" v-if="hasnext">
|
||||||
<view class="btn-wq button-click" :class="{ 'btn-desbel': fairInfo.isSignUp==1 }"
|
<view class="btn-wq button-click" :class="{ 'btn-desbel': fairInfo.isSignUp==1 || isLoading }"
|
||||||
@click="applyExhibitors">
|
@click="applyExhibitors" :disabled="isLoading">
|
||||||
{{ fairInfo.isSignUp==1 ? '已报名' : '报名招聘会' }}
|
{{ isLoading ? '报名中...' : fairInfo.isSignUp==1 ? '已报名' : '报名招聘会' }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -161,6 +161,8 @@
|
|||||||
// person个人 ent企业
|
// person个人 ent企业
|
||||||
const signRole = ref('ent');
|
const signRole = ref('ent');
|
||||||
const CompanySignPopup = ref(null)
|
const CompanySignPopup = ref(null)
|
||||||
|
// 报名loading状态
|
||||||
|
const isLoading = ref(false)
|
||||||
|
|
||||||
const jobFairId = ref(null)
|
const jobFairId = ref(null)
|
||||||
|
|
||||||
@@ -253,6 +255,7 @@
|
|||||||
|
|
||||||
// 报名招聘会
|
// 报名招聘会
|
||||||
function applyExhibitors() {
|
function applyExhibitors() {
|
||||||
|
if (isLoading.value) return
|
||||||
if (fairInfo.value.isSignUp == 1) {
|
if (fairInfo.value.isSignUp == 1) {
|
||||||
$api.msg('请勿重复报名');
|
$api.msg('请勿重复报名');
|
||||||
return
|
return
|
||||||
@@ -262,6 +265,7 @@
|
|||||||
const headers = token ? {
|
const headers = token ? {
|
||||||
Authorization: raw.startsWith("Bearer ") ? raw : `Bearer ${token}`
|
Authorization: raw.startsWith("Bearer ") ? raw : `Bearer ${token}`
|
||||||
} : {};
|
} : {};
|
||||||
|
isLoading.value = true
|
||||||
|
|
||||||
$api.myRequest("/dashboard/auth/heart", {}, "POST", 10100, headers).then((resData) => {
|
$api.myRequest("/dashboard/auth/heart", {}, "POST", 10100, headers).then((resData) => {
|
||||||
if (resData.code == 200) {
|
if (resData.code == 200) {
|
||||||
@@ -271,6 +275,7 @@
|
|||||||
signRole.value = userInfo.userType;
|
signRole.value = userInfo.userType;
|
||||||
signDialogisshow.value = true
|
signDialogisshow.value = true
|
||||||
CompanySignPopup.value.open()
|
CompanySignPopup.value.open()
|
||||||
|
isLoading.value = false
|
||||||
}else{
|
}else{
|
||||||
$api.myRequest("/jobfair/public/job-fair-sign-up-person/sign-up", {
|
$api.myRequest("/jobfair/public/job-fair-sign-up-person/sign-up", {
|
||||||
personId: userInfo.value.info.userId,
|
personId: userInfo.value.info.userId,
|
||||||
@@ -289,17 +294,21 @@
|
|||||||
icon: 'none'
|
icon: 'none'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
isLoading.value = false
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$api.msg('请先登录');
|
$api.msg('请先登录');
|
||||||
setTimeout(() => {
|
// setTimeout(() => {
|
||||||
uni.redirectTo({
|
// uni.redirectTo({
|
||||||
url: '/packageB/login'
|
// url: '/packageB/login'
|
||||||
})
|
// })
|
||||||
}, 1000)
|
// }, 1000)
|
||||||
|
isLoading.value = false
|
||||||
}
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
isLoading.value = false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -171,16 +171,15 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="content-card" v-if="false">
|
<view class="content-card" v-if="currentUserType === 0">
|
||||||
<view class="card-title">
|
<view class="card-title">
|
||||||
<view class="title">申请人列表</view>
|
<view class="title">申请人列表</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="applicant-list">
|
<view class="applicant-list">
|
||||||
<view v-for="applicant in applicants" :key="applicant.userId" class="applicant-item">
|
<view v-for="applicant in jobInfo.applyUsers" :key="applicant.userId" class="applicant-item">
|
||||||
<view class="item-header">
|
<view class="item-header">
|
||||||
<view class="name">{{ applicant.name }}</view>
|
<view class="name">{{ applicant.name }}</view>
|
||||||
<view class="right-header">
|
<view class="right-header">
|
||||||
<view class="matching-degree">匹配度:{{ applicant.matchingDegree }}</view>
|
|
||||||
<button class="resume-button" @click="viewResume(applicant.userId)">查看简历</button>
|
<button class="resume-button" @click="viewResume(applicant.userId)">查看简历</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -205,8 +204,8 @@
|
|||||||
期望薪资:
|
期望薪资:
|
||||||
<Salary-Expectation
|
<Salary-Expectation
|
||||||
style="display: inline-block"
|
style="display: inline-block"
|
||||||
:max-salary="applicant.maxSalary"
|
:max-salary="applicant.salaryMax"
|
||||||
:min-salary="applicant.minSalary"
|
:min-salary="applicant.salaryMin"
|
||||||
:is-month="true"
|
:is-month="true"
|
||||||
></Salary-Expectation>
|
></Salary-Expectation>
|
||||||
</view>
|
</view>
|
||||||
@@ -214,7 +213,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="height: 34px"></view>
|
<view style="height: 34px"></view>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
@@ -268,32 +267,7 @@ const raderData = ref({
|
|||||||
const videoPalyerRef = ref(null);
|
const videoPalyerRef = ref(null);
|
||||||
const explainUrlRef = ref('');
|
const explainUrlRef = ref('');
|
||||||
|
|
||||||
const applicants = ref([
|
// 申请人列表直接使用接口返回的applyUsers数组
|
||||||
{
|
|
||||||
createTime: null,
|
|
||||||
userId: 1,
|
|
||||||
name: '青岛测试账号331',
|
|
||||||
age: '28', // 假设年龄有值
|
|
||||||
sex: '1',
|
|
||||||
birthDate: null,
|
|
||||||
education: '4',
|
|
||||||
politicalAffiliation: '',
|
|
||||||
phone: '',
|
|
||||||
avatar: '',
|
|
||||||
salaryMin: '10000',
|
|
||||||
salaryMax: '15000',
|
|
||||||
area: '3',
|
|
||||||
status: '0',
|
|
||||||
loginIp: '',
|
|
||||||
loginDate: null,
|
|
||||||
jobTitleId: '157,233,373',
|
|
||||||
experience: '3',
|
|
||||||
isRecommend: 1,
|
|
||||||
jobTitle: ['人力资源专员/助理', 'Java', '运维工程师'],
|
|
||||||
applyDate: '2025-09-26',
|
|
||||||
matchingDegree: 1,
|
|
||||||
},
|
|
||||||
]);
|
|
||||||
|
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
console.log(option, 'option');
|
console.log(option, 'option');
|
||||||
@@ -528,7 +502,7 @@ function previewImage(url, index) {
|
|||||||
|
|
||||||
// 查看简历
|
// 查看简历
|
||||||
function viewResume(userId) {
|
function viewResume(userId) {
|
||||||
navTo(`/packageA/pages/myResume/myResume?userId=${userId}`);
|
navTo(`/packageA/pages/resumeDetail/resumeDetail?userId=${userId}`);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
385
packageA/pages/resumeDetail/resumeDetail.vue
Normal file
385
packageA/pages/resumeDetail/resumeDetail.vue
Normal file
@@ -0,0 +1,385 @@
|
|||||||
|
<template>
|
||||||
|
<AppLayout backGorundColor="#F4F4F4">
|
||||||
|
<template #headerleft>
|
||||||
|
<view class="btnback">
|
||||||
|
<image src="@/static/icon/back.png" @click="navBack"></image>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<template #header>
|
||||||
|
<view class="title">简历详情</view>
|
||||||
|
</template>
|
||||||
|
<view class="mys-container">
|
||||||
|
<!-- 个人信息 -->
|
||||||
|
<view class="mys-tops btn-feel">
|
||||||
|
<view class="tops-left">
|
||||||
|
<view class="name">
|
||||||
|
<text>{{ userInfo.name || '暂无姓名' }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="subName">
|
||||||
|
<dict-Label class="mar_ri10" dictType="sex" :value="userInfo.sex"></dict-Label>
|
||||||
|
<text class="mar_ri10">{{ userInfo.age }}岁</text>
|
||||||
|
<dict-Label class="mar_ri10" dictType="education" :value="userInfo.education"></dict-Label>
|
||||||
|
<dict-Label
|
||||||
|
class="mar_ri10"
|
||||||
|
dictType="affiliation"
|
||||||
|
:value="userInfo.politicalAffiliation"
|
||||||
|
></dict-Label>
|
||||||
|
</view>
|
||||||
|
<view class="subName">{{ userInfo.phone }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="tops-right">
|
||||||
|
<view class="right-imghead">
|
||||||
|
<image v-if="userInfo.sex === '0'" src="@/static/icon/boy.png"></image>
|
||||||
|
<image v-else src="@/static/icon/girl.png"></image>
|
||||||
|
</view>
|
||||||
|
<view class="right-sex">
|
||||||
|
<image v-if="userInfo.sex === '0'" src="@/static/icon/boy1.png"></image>
|
||||||
|
<image v-else src="@/static/icon/girl1.png"></image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 求职期望 -->
|
||||||
|
<view class="mys-line"></view>
|
||||||
|
<view class="mys-info">
|
||||||
|
<view class="mys-h4">
|
||||||
|
<text>求职期望</text>
|
||||||
|
</view>
|
||||||
|
<view class="mys-text">
|
||||||
|
<text>期望薪资:</text>
|
||||||
|
<text>{{ userInfo.salaryMin / 1000 }}k-{{ userInfo.salaryMax / 1000 }}k</text>
|
||||||
|
</view>
|
||||||
|
<view class="mys-text">
|
||||||
|
<text>期望工作地:</text>
|
||||||
|
<dict-Label dictType="area" :value="Number(userInfo.area)"></dict-Label>
|
||||||
|
</view>
|
||||||
|
<view class="mys-list">
|
||||||
|
<view class="cards" v-for="(title, index) in userInfo.jobTitle" :key="index">
|
||||||
|
{{ title }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 技能列表 -->
|
||||||
|
<view class="work-experience-container">
|
||||||
|
<view class="exp-header">
|
||||||
|
<text class="exp-title">技能</text>
|
||||||
|
</view>
|
||||||
|
<view class="exp-list" v-if="userInfo.appSkillsList && userInfo.appSkillsList.length > 0">
|
||||||
|
<view class="exp-item" v-for="(skill, index) in userInfo.appSkillsList" :key="skill.id">
|
||||||
|
<view class="exp-company-row">
|
||||||
|
<text class="exp-company">{{ skill.name }}</text>
|
||||||
|
<text class="exp-position">{{ getSkillLevelText(skill.levels) }}</text>
|
||||||
|
</view>
|
||||||
|
<view class="exp-divider" v-if="index !== userInfo.appSkillsList.length - 1"></view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="exp-empty" v-else>
|
||||||
|
<image class="empty-img" src="/static/icons/empty-work.png" mode="widthFix"></image>
|
||||||
|
<text class="empty-text">暂无技能信息</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 工作经历 -->
|
||||||
|
<view class="work-experience-container">
|
||||||
|
<!-- 标题栏:仅显示标题 -->
|
||||||
|
<view class="exp-header">
|
||||||
|
<text class="exp-title">工作经历</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 工作经历列表 -->
|
||||||
|
<view class="exp-list" v-if="workExperiences.length > 0">
|
||||||
|
<view class="exp-item" v-for="(item, index) in workExperiences" :key="item.id">
|
||||||
|
<!-- 公司名称 + 职位 -->
|
||||||
|
<view class="exp-company-row">
|
||||||
|
<text class="exp-company">{{ item.companyName }}</text>
|
||||||
|
<text class="exp-position">{{ item.position }}</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 工作时间 -->
|
||||||
|
<view class="exp-date-row">
|
||||||
|
<text class="exp-label">工作时间:</text>
|
||||||
|
<text class="exp-date">{{ item.startDate }} - {{ item.endDate || '至今' }}</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 工作描述(支持多行) -->
|
||||||
|
<view class="exp-desc-row" v-if="item.description">
|
||||||
|
<text class="exp-label">工作描述:</text>
|
||||||
|
<text class="exp-desc">{{ item.description }}</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 分隔线(最后一项不显示) -->
|
||||||
|
<view class="exp-divider" v-if="index !== workExperiences.length - 1"></view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 空状态提示(无工作经历时显示) -->
|
||||||
|
<view class="exp-empty" v-else>
|
||||||
|
<image class="empty-img" src="/static/icons/empty-work.png" mode="widthFix"></image>
|
||||||
|
<text class="empty-text">暂无工作经历</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</AppLayout>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { reactive, inject, ref, onMounted } from 'vue';
|
||||||
|
const { $api, navTo, navBack, config } = inject('globalFunction');
|
||||||
|
import { onLoad } from '@dcloudio/uni-app';
|
||||||
|
import useDictStore from '@/stores/useDictStore';
|
||||||
|
const { getDictData } = useDictStore();
|
||||||
|
|
||||||
|
const userInfo = ref({});
|
||||||
|
const workExperiences = ref([]);
|
||||||
|
const isLoading = ref(false);
|
||||||
|
|
||||||
|
// 获取技能等级文本
|
||||||
|
const getSkillLevelText = (level) => {
|
||||||
|
const levelMap = {
|
||||||
|
'1': '初级',
|
||||||
|
'2': '中级',
|
||||||
|
'3': '高级'
|
||||||
|
};
|
||||||
|
return levelMap[level] || level || '暂无等级';
|
||||||
|
};
|
||||||
|
|
||||||
|
// 页面加载时获取数据
|
||||||
|
onLoad((option) => {
|
||||||
|
const { userId } = option;
|
||||||
|
if (userId) {
|
||||||
|
getResumeDetail(userId);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// 获取简历详情
|
||||||
|
const getResumeDetail = async (userId) => {
|
||||||
|
try {
|
||||||
|
isLoading.value = true;
|
||||||
|
const resData = await $api.createRequest(`/app/user/userResume/${userId}`);
|
||||||
|
if (resData.code === 200) {
|
||||||
|
userInfo.value = resData.data;
|
||||||
|
// 从简历详情中获取工作经历,而不是单独请求
|
||||||
|
workExperiences.value = resData.data.experiencesList || [];
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error('获取简历详情失败:', error);
|
||||||
|
$api.msg('获取简历详情失败');
|
||||||
|
} finally {
|
||||||
|
isLoading.value = false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="stylus" scoped>
|
||||||
|
image{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%
|
||||||
|
}
|
||||||
|
.mys-container{
|
||||||
|
padding-bottom: constant(safe-area-inset-bottom);
|
||||||
|
padding-bottom: env(safe-area-inset-bottom);
|
||||||
|
.mys-tops{
|
||||||
|
display: flex
|
||||||
|
justify-content: space-between
|
||||||
|
padding: 52rpx 48rpx
|
||||||
|
.tops-left{
|
||||||
|
.name{
|
||||||
|
font-family: 'PingFangSC-Medium', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 44rpx;
|
||||||
|
color: #333333;
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
justify-content: flex-start
|
||||||
|
}
|
||||||
|
.subName{
|
||||||
|
margin-top: 12rpx
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
.tops-right{
|
||||||
|
position: relative
|
||||||
|
.right-imghead{
|
||||||
|
width: 136rpx;
|
||||||
|
height: 136rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: #e8e8e8
|
||||||
|
overflow: hidden
|
||||||
|
}
|
||||||
|
.right-sex{
|
||||||
|
position: absolute
|
||||||
|
right: -10rpx
|
||||||
|
top: -10rpx
|
||||||
|
width: 50rpx
|
||||||
|
height: 50rpx
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.mys-line{
|
||||||
|
margin: 0 28rpx
|
||||||
|
height: 0rpx;
|
||||||
|
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||||
|
border: 2rpx dashed #000000;
|
||||||
|
opacity: 0.16;
|
||||||
|
}
|
||||||
|
.mys-info{
|
||||||
|
padding: 28rpx
|
||||||
|
.mys-h4{
|
||||||
|
font-family: 'PingFangSC-Medium', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #000000;
|
||||||
|
margin-bottom: 8rpx
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between
|
||||||
|
align-items: center
|
||||||
|
}
|
||||||
|
.mys-text{
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
margin-top: 16rpx
|
||||||
|
}
|
||||||
|
.mys-list{
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
flex-wrap: wrap;
|
||||||
|
.cards{
|
||||||
|
margin: 28rpx 28rpx 0 0
|
||||||
|
height: 80rpx;
|
||||||
|
padding: 0 38rpx;
|
||||||
|
width: fit-content
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
justify-content: center
|
||||||
|
border-radius: 12rpx 12rpx 12rpx 12rpx;
|
||||||
|
border: 2rpx solid #E8EAEE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* 容器样式(适配多端,用rpx做单位) */
|
||||||
|
.work-experience-container {
|
||||||
|
padding: 20rpx 30rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 16rpx;
|
||||||
|
margin: 20rpx;
|
||||||
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 标题栏:两端对齐 */
|
||||||
|
.exp-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 25rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.exp-title {
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 经历列表容器 */
|
||||||
|
.exp-list {
|
||||||
|
margin-top: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 单个经历卡片 */
|
||||||
|
.exp-item {
|
||||||
|
padding: 20rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 公司名称 + 职位(横向排列,职位右对齐) */
|
||||||
|
.exp-company-row {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-bottom: 15rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.exp-company {
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.exp-position {
|
||||||
|
font-size: 24rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 工作时间/描述:标签+内容横向排列 */
|
||||||
|
.exp-date-row, .exp-desc-row {
|
||||||
|
display: flex;
|
||||||
|
margin-bottom: 12rpx;
|
||||||
|
line-height: 1.6;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 标签样式(固定宽度,统一对齐) */
|
||||||
|
.exp-label {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #000;
|
||||||
|
min-width: 160rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 内容样式 */
|
||||||
|
.exp-date, .exp-desc {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #000000;
|
||||||
|
flex: 1; /* 内容占满剩余宽度,支持换行 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 工作描述(支持多行换行) */
|
||||||
|
.exp-desc {
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 分隔线 */
|
||||||
|
.exp-divider {
|
||||||
|
height: 1rpx;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 空状态样式 */
|
||||||
|
.exp-empty {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
padding: 80rpx 0;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty-img {
|
||||||
|
width: 140rpx;
|
||||||
|
height: auto;
|
||||||
|
margin-bottom: 25rpx;
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty-text {
|
||||||
|
font-size: 26rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btnback{
|
||||||
|
width: 64rpx;
|
||||||
|
height: 64rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 36rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #000000;
|
||||||
|
text-align: center;
|
||||||
|
margin-right: 64rpx;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -50,7 +50,8 @@ const { $api, navTo, navBack } = inject('globalFunction');
|
|||||||
const weekMap = ['日', '一', '二', '三', '四', '五', '六'];
|
const weekMap = ['日', '一', '二', '三', '四', '五', '六'];
|
||||||
const calendarData = ref([]);
|
const calendarData = ref([]);
|
||||||
const current = ref({});
|
const current = ref({});
|
||||||
import { Solar, Lunar } from '@/packageA/lib/lunar-javascript@1.7.2.js';
|
import lunarModule from '@/packageA/lib/lunar-javascript@1.7.2.js';
|
||||||
|
const { Solar, Lunar } = lunarModule;
|
||||||
|
|
||||||
const isRecord = ref(false);
|
const isRecord = ref(false);
|
||||||
const recordNum = ref(4);
|
const recordNum = ref(4);
|
||||||
|
|||||||
9
packageB/apiRc/policy/index.js
Normal file
9
packageB/apiRc/policy/index.js
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import request from "@/utilsRc/request";
|
||||||
|
//政策列表
|
||||||
|
export function getPolicyList(queryParams) {
|
||||||
|
return request({
|
||||||
|
url: "/portal/policyInfo/portalList",
|
||||||
|
method: "get",
|
||||||
|
params: queryParams,
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -28,6 +28,14 @@
|
|||||||
<view> 2、招聘会主办单位:{{ fair.jobFairHostUnit }} </view>
|
<view> 2、招聘会主办单位:{{ fair.jobFairHostUnit }} </view>
|
||||||
<view> 3、招聘会承办单位:{{ fair.jobFairOrganizeUnit }} </view>
|
<view> 3、招聘会承办单位:{{ fair.jobFairOrganizeUnit }} </view>
|
||||||
</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-title"> 内容描述: </view>
|
||||||
<view class="jobfair-content">
|
<view class="jobfair-content">
|
||||||
{{ fair.jobFairIntroduction }}
|
{{ fair.jobFairIntroduction }}
|
||||||
@@ -120,13 +128,13 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="bottom">
|
<view class="bottom">
|
||||||
<view class="tag">
|
<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 class="tag-item success">年龄:{{ item.personInfo.age }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="btn">
|
<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 type="primary" @click="interviewBtn(item)" v-if="item.status == 1">
|
||||||
面试邀请
|
面试邀请
|
||||||
</button>
|
</button>
|
||||||
@@ -142,7 +150,68 @@
|
|||||||
<view v-if="loading" class="loading">加载中...</view>
|
<view v-if="loading" class="loading">加载中...</view>
|
||||||
<view v-if="!loading && detail.list.length >= detail.total" class="no-more">没有更多数据了</view>
|
<view v-if="!loading && detail.list.length >= detail.total" class="no-more">没有更多数据了</view>
|
||||||
</scroll-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">
|
<uni-popup ref="interviewPopup" type="center" :maskClick="false">
|
||||||
<view class="popup-content job-dialog" :style="getItemBackgroundStyle('zphbm-k.png')">
|
<view class="popup-content job-dialog" :style="getItemBackgroundStyle('zphbm-k.png')">
|
||||||
@@ -365,7 +434,17 @@
|
|||||||
loading.value = false;
|
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) => {
|
const interviewBtn = (item) => {
|
||||||
Object.assign(openGw, item);
|
Object.assign(openGw, item);
|
||||||
@@ -859,7 +938,9 @@
|
|||||||
.dialog-content {
|
.dialog-content {
|
||||||
padding: 10rpx;
|
padding: 10rpx;
|
||||||
height: 80%;
|
height: 80%;
|
||||||
|
.flexBox{
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
.detail-item1 {
|
.detail-item1 {
|
||||||
// display: flex;
|
// display: flex;
|
||||||
// align-items: center;
|
// align-items: center;
|
||||||
|
|||||||
@@ -134,7 +134,9 @@
|
|||||||
<text :style="{ color: getStatusText(job.jobFairPersonJob?.status).color }">{{ getStatusText(job.jobFairPersonJob?.status).text }}</text>
|
<text :style="{ color: getStatusText(job.jobFairPersonJob?.status).color }">{{ getStatusText(job.jobFairPersonJob?.status).text }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view v-else class="btn">
|
<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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -317,8 +319,12 @@
|
|||||||
const closeFeedBackPopup = () => {
|
const closeFeedBackPopup = () => {
|
||||||
feedBackPopup.value.close();
|
feedBackPopup.value.close();
|
||||||
};
|
};
|
||||||
|
// 投递简历loading状态,使用对象存储每个job的投递状态
|
||||||
|
const deliveringJobs = reactive({});
|
||||||
// 岗位投递
|
// 岗位投递
|
||||||
function deliverResume(job) {
|
function deliverResume(job) {
|
||||||
|
if(deliveringJobs[job.jobId]) return
|
||||||
|
deliveringJobs[job.jobId] = true
|
||||||
const raw = uni.getStorageSync("Padmin-Token");
|
const raw = uni.getStorageSync("Padmin-Token");
|
||||||
const token = typeof raw === "string" ? raw.trim() : "";
|
const token = typeof raw === "string" ? raw.trim() : "";
|
||||||
const headers = token ? {
|
const headers = token ? {
|
||||||
@@ -343,13 +349,16 @@
|
|||||||
} else {
|
} else {
|
||||||
$api.msg((data && data.msg) || "简历投递失败");
|
$api.msg((data && data.msg) || "简历投递失败");
|
||||||
}
|
}
|
||||||
|
deliveringJobs[job.jobId] = false
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$api.msg('请先登录')
|
$api.msg('请先登录');
|
||||||
|
deliveringJobs[job.jobId] =false
|
||||||
}
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
deliveringJobs[job.jobId] =false;
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 提交面试邀请
|
// 提交面试邀请
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
<!-- 所属区域(下拉选择) -->
|
<!-- 所属区域(下拉选择) -->
|
||||||
<view class="search-item">
|
<view class="search-item">
|
||||||
<text class="label">所属区域:</text>
|
<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" >
|
@change="onchange" >
|
||||||
</uni-data-picker>
|
</uni-data-picker>
|
||||||
</view>
|
</view>
|
||||||
@@ -158,7 +158,7 @@
|
|||||||
<view class="form-btns">
|
<view class="form-btns">
|
||||||
<button class="mini-btn form-box-btn detail-btn" size="mini" v-if="false">详情</button>
|
<button class="mini-btn form-box-btn detail-btn" size="mini" v-if="false">详情</button>
|
||||||
<button class="mini-btn form-box-btn follow-btn" size="mini" @click="goFollow(item)">跟进</button>
|
<button class="mini-btn form-box-btn follow-btn" size="mini" @click="goFollow(item)">跟进</button>
|
||||||
<button class="mini-btn form-box-btn recommend-btn" size="mini" >智能推荐</button>
|
<button class="mini-btn form-box-btn recommend-btn" size="mini" @click="goRecommend(item)">智能推荐</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -180,10 +180,11 @@ const initialForm = {
|
|||||||
idCard: '',
|
idCard: '',
|
||||||
taskType: '',
|
taskType: '',
|
||||||
createByName: '',
|
createByName: '',
|
||||||
helpArea: [],
|
// helpArea: [],
|
||||||
startTime: '',
|
// startTime: '',
|
||||||
endTime: '',
|
// endTime: '',
|
||||||
deptId:''
|
// deptId:'',
|
||||||
|
deptTags:''
|
||||||
}
|
}
|
||||||
const formData = reactive({ ...initialForm });
|
const formData = reactive({ ...initialForm });
|
||||||
const taskTypeOptions=ref([])
|
const taskTypeOptions=ref([])
|
||||||
@@ -228,12 +229,17 @@ const handleReset = () =>{
|
|||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
// await loadLevelData('201');
|
// await loadLevelData('201');
|
||||||
});
|
});
|
||||||
onLoad(async () => {
|
onLoad(() => {
|
||||||
let token=uni.getStorageSync('fourLevelLinkage-token')
|
let token=uni.getStorageSync('fourLevelLinkage-token')
|
||||||
if(token){
|
if(token){
|
||||||
await loadLevelData('201');
|
$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()
|
getDictionary()
|
||||||
getDataList('refresh');
|
getDataList('refresh');
|
||||||
|
});
|
||||||
}else{
|
}else{
|
||||||
navTo('/packageB/login2');
|
navTo('/packageB/login2');
|
||||||
}
|
}
|
||||||
@@ -259,7 +265,7 @@ function getTaskTypeLabelByValue(value) {
|
|||||||
return item ? item.text : '暂无帮扶类型'
|
return item ? item.text : '暂无帮扶类型'
|
||||||
}
|
}
|
||||||
// 加载某一级的数据(parentId 为空表示根)
|
// 加载某一级的数据(parentId 为空表示根)
|
||||||
async function loadLevelData(parentId) {
|
async function loadLevelData(parentId,node) {
|
||||||
let header = {
|
let header = {
|
||||||
'Authorization': uni.getStorageSync('fourLevelLinkage-token'),
|
'Authorization': uni.getStorageSync('fourLevelLinkage-token'),
|
||||||
'Content-Type': "application/x-www-form-urlencoded"
|
'Content-Type': "application/x-www-form-urlencoded"
|
||||||
@@ -274,15 +280,14 @@ async function loadLevelData(parentId) {
|
|||||||
}
|
}
|
||||||
const formatted = (resData.data || []).map(item => ({
|
const formatted = (resData.data || []).map(item => ({
|
||||||
text: item.deptName,
|
text: item.deptName,
|
||||||
value: item.deptId,
|
value: item.tags,
|
||||||
|
deptId: item.deptId,
|
||||||
children: []
|
children: []
|
||||||
}));
|
}));
|
||||||
if (parentId === '201') {
|
if(node){
|
||||||
// 第一层
|
|
||||||
regions.value = formatted;
|
|
||||||
} else {
|
|
||||||
// 找到父节点并注入 children
|
|
||||||
injectChildren(parentId, formatted);
|
injectChildren(parentId, formatted);
|
||||||
|
}else{
|
||||||
|
regions.value=formatted
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("加载部门数据失败:", error);
|
console.error("加载部门数据失败:", error);
|
||||||
@@ -293,7 +298,7 @@ async function loadLevelData(parentId) {
|
|||||||
function injectChildren(parentValue, childrenData) {
|
function injectChildren(parentValue, childrenData) {
|
||||||
const findAndInject = (nodes) => {
|
const findAndInject = (nodes) => {
|
||||||
for (let node of nodes) {
|
for (let node of nodes) {
|
||||||
if (node.value === parentValue) {
|
if (node.deptId === parentValue) {
|
||||||
// 如果 children 已存在且非空,避免重复加载
|
// 如果 children 已存在且非空,避免重复加载
|
||||||
if (!node.children || node.children.length === 0) {
|
if (!node.children || node.children.length === 0) {
|
||||||
node.children = childrenData;
|
node.children = childrenData;
|
||||||
@@ -313,7 +318,7 @@ function injectChildren(parentValue, childrenData) {
|
|||||||
// 当用户选择时触发(注意:change 在每级选择后都会触发)
|
// 当用户选择时触发(注意:change 在每级选择后都会触发)
|
||||||
function onchange(e) {
|
function onchange(e) {
|
||||||
const selectedValues = e.detail.value;
|
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;
|
if (selectedValues.length === 0) return;
|
||||||
// 获取最后一级选中的 value
|
// 获取最后一级选中的 value
|
||||||
const lastSelectedValue = selectedValues[selectedValues.length - 1];
|
const lastSelectedValue = selectedValues[selectedValues.length - 1];
|
||||||
@@ -322,7 +327,7 @@ function onchange(e) {
|
|||||||
if (node && (!node.children || node.children.length === 0)) {
|
if (node && (!node.children || node.children.length === 0)) {
|
||||||
// 检查接口是否还有下一级(可通过接口返回判断,或先尝试加载)
|
// 检查接口是否还有下一级(可通过接口返回判断,或先尝试加载)
|
||||||
// 这里我们直接尝试加载下一级
|
// 这里我们直接尝试加载下一级
|
||||||
loadLevelData(lastSelectedValue.value);
|
loadLevelData(node.deptId , node);
|
||||||
picker.value.show()
|
picker.value.show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -381,6 +386,10 @@ function getDataList(type = 'add') {
|
|||||||
function goFollow(item) {
|
function goFollow(item) {
|
||||||
navTo(`/packageB/priority/helpFollow?task_id=${item.task_id}&person_id=${item.person_id}&&name=${item.name}&&taskType=${getTaskTypeLabelByValue(item.task_type)}`);
|
navTo(`/packageB/priority/helpFollow?task_id=${item.task_id}&person_id=${item.person_id}&&name=${item.name}&&taskType=${getTaskTypeLabelByValue(item.task_type)}`);
|
||||||
}
|
}
|
||||||
|
//智能推荐
|
||||||
|
const goRecommend = (item) => {
|
||||||
|
navTo('/packageB/priority/recommend');
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
|
|||||||
413
packageB/priority/recommend.vue
Normal file
413
packageB/priority/recommend.vue
Normal file
@@ -0,0 +1,413 @@
|
|||||||
|
<template>
|
||||||
|
<AppLayout :title="title" :show-bg-image="false">
|
||||||
|
<view class="main-list" :style="getBackgroundStyle('k.png')">
|
||||||
|
<view class="list-top">
|
||||||
|
<view class="list-title">
|
||||||
|
<text>岗位推荐列表</text>
|
||||||
|
<view class="title-line" style="left: 70rpx"></view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="jobListBox">
|
||||||
|
<view class="item" v-for="(job, index) in list" :key="index">
|
||||||
|
<view class="falls-card">
|
||||||
|
<view class="falls-card-pay">
|
||||||
|
<view class="pay-text">
|
||||||
|
<Salary-Expectation
|
||||||
|
:max-salary="job.maxSalary"
|
||||||
|
:min-salary="job.minSalary"
|
||||||
|
:is-month="true"
|
||||||
|
></Salary-Expectation>
|
||||||
|
</view>
|
||||||
|
<image
|
||||||
|
v-if="job.isHot"
|
||||||
|
class="flame"
|
||||||
|
src="/static/icon/flame.png"
|
||||||
|
></image>
|
||||||
|
</view>
|
||||||
|
<view class="falls-card-title">{{ job.jobTitle }}</view>
|
||||||
|
<view class="fl_box fl_warp">
|
||||||
|
<view class="falls-card-education mar_ri10" v-if="job.education">
|
||||||
|
<dict-Label
|
||||||
|
dictType="education"
|
||||||
|
:value="job.education"
|
||||||
|
></dict-Label>
|
||||||
|
</view>
|
||||||
|
<view class="falls-card-experience" v-if="job.experience">
|
||||||
|
<dict-Label
|
||||||
|
dictType="experience"
|
||||||
|
:value="job.experience"
|
||||||
|
></dict-Label>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="falls-card-company">
|
||||||
|
{{ config.appInfo.areaName }}
|
||||||
|
<dict-Label
|
||||||
|
dictType="area"
|
||||||
|
:value="job.jobLocationAreaCode"
|
||||||
|
></dict-Label>
|
||||||
|
</view>
|
||||||
|
<view class="falls-card-pepleNumber">
|
||||||
|
<view>
|
||||||
|
<image class="point2" src="/static/icon/pintDate.png"></image>
|
||||||
|
<view class="fl_1">
|
||||||
|
{{ job.postingDate || "发布日期" }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<image
|
||||||
|
class="point3"
|
||||||
|
src="/static/icon/pointpeople.png"
|
||||||
|
></image>
|
||||||
|
<view class="fl_1">
|
||||||
|
{{ vacanciesTo(job.vacancies) }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="falls-card-company2">
|
||||||
|
<image class="point3" src="/static/icon/point3.png"></image>
|
||||||
|
<view class="fl_1">
|
||||||
|
{{ job.companyName }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="main-list" :style="getBackgroundStyle('k.png')">
|
||||||
|
<view class="list-top">
|
||||||
|
<view class="list-title">
|
||||||
|
<text>政策推荐列表</text>
|
||||||
|
<view class="title-line" style="left: 70rpx"></view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view
|
||||||
|
style="margin-bottom: 24rpx; border-radius: 16rpx"
|
||||||
|
class="policy-list"
|
||||||
|
v-for="(item, index) in policyList"
|
||||||
|
:key="index"
|
||||||
|
@click="goPolicyDetail(item)"
|
||||||
|
>
|
||||||
|
<view class="sign">推荐</view>
|
||||||
|
<view class="title">
|
||||||
|
<image src="../../packageRc/static/zcLeft.png" />
|
||||||
|
{{ item.zcmc }}</view
|
||||||
|
>
|
||||||
|
<view class="infos">
|
||||||
|
<view v-if="item.zclx">{{ item.zclx }}</view>
|
||||||
|
<view v-if="item.zcLevel">{{ item.zcLevel }}</view>
|
||||||
|
<view v-if="item.sourceUnit">{{ item.sourceUnit }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="bottom-line">
|
||||||
|
<view
|
||||||
|
><uni-icons color="#A2A2A2" type="info" size="12"></uni-icons
|
||||||
|
>发布日期:{{ item.createTime }}</view
|
||||||
|
>
|
||||||
|
<view>
|
||||||
|
<!-- 浏览数<text style="color: #6aa7e8">{{ item.viewNum }}</text> -->
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</AppLayout>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { inject, ref, reactive, onMounted } from "vue";
|
||||||
|
const { $api, navTo, navBack, vacanciesTo } = inject("globalFunction");
|
||||||
|
import config from "@/config.js";
|
||||||
|
import { getPolicyList } from "@/packageB/apiRc/policy/index.js";
|
||||||
|
import AppLayout from "@/components/AppLayout/AppLayout.vue";
|
||||||
|
import dictLabel from "@/components/dict-Label/dict-Label.vue";
|
||||||
|
const title = ref("");
|
||||||
|
const baseUrl = config.imgBaseUrl;
|
||||||
|
const list = ref([]);
|
||||||
|
const getBackgroundStyle = (imageName) => ({
|
||||||
|
backgroundImage: `url(${baseUrl}/dispatch/${imageName})`,
|
||||||
|
backgroundSize: "cover", // 覆盖整个容器
|
||||||
|
backgroundPosition: "center", // 居中
|
||||||
|
backgroundRepeat: "no-repeat",
|
||||||
|
});
|
||||||
|
onMounted(() => {
|
||||||
|
getJobRecommend();
|
||||||
|
getPolicyData();
|
||||||
|
});
|
||||||
|
function getJobRecommend() {
|
||||||
|
$api
|
||||||
|
.createRequest(
|
||||||
|
"/cms/job/recommend",
|
||||||
|
{ pageSize: 8 },
|
||||||
|
"GET",
|
||||||
|
false,
|
||||||
|
{},
|
||||||
|
false
|
||||||
|
)
|
||||||
|
.then((resData) => {
|
||||||
|
if (resData.code == 200) {
|
||||||
|
list.value = resData.data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
const policyList = ref([]);
|
||||||
|
function getPolicyData() {
|
||||||
|
getPolicyList({ pageNum: 1, pageSize: 8 }).then((res) => {
|
||||||
|
if(res.code == 200){
|
||||||
|
policyList.value = res.rows;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function goPolicyDetail(item) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/packageRc/pages/policy/policyDetail?id=${item.id}`
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.main-list {
|
||||||
|
background-color: #ffffff;
|
||||||
|
padding: 20rpx 25rpx 28rpx 25rpx;
|
||||||
|
margin: 30rpx 30rpx;
|
||||||
|
box-shadow: 0px 3px 20px 0px rgba(0, 105, 234, 0.1);
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-top {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-title {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 36rpx;
|
||||||
|
color: #404040;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-line {
|
||||||
|
position: absolute;
|
||||||
|
bottom: -10rpx;
|
||||||
|
left: 36rpx;
|
||||||
|
width: 70rpx;
|
||||||
|
height: 8rpx;
|
||||||
|
background: linear-gradient(90deg, #ffad58 0%, #ff7a5b 100%);
|
||||||
|
border-radius: 4rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.jobListBox {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding-top: 28rpx;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item {
|
||||||
|
width: 48%;
|
||||||
|
position: relative;
|
||||||
|
border-radius: 6px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
background-color: #fff;
|
||||||
|
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.05);
|
||||||
|
|
||||||
|
.falls-card {
|
||||||
|
padding: 30rpx;
|
||||||
|
|
||||||
|
.falls-card-title {
|
||||||
|
font-family: "PingFangSC-Medium", "PingFang SC", "Helvetica Neue",
|
||||||
|
Helvetica, Arial, "Microsoft YaHei", sans-serif;
|
||||||
|
color: #606060;
|
||||||
|
text-align: left;
|
||||||
|
word-break: break-all;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #333333;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.falls-card-pay {
|
||||||
|
// height: 50rpx;
|
||||||
|
word-break: break-all;
|
||||||
|
color: #002979;
|
||||||
|
text-align: left;
|
||||||
|
display: flex;
|
||||||
|
align-items: end;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.pay-text {
|
||||||
|
font-family: DIN-Medium;
|
||||||
|
color: #4c6efb;
|
||||||
|
padding-right: 10rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #4c6efb;
|
||||||
|
line-height: 45rpx;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flame {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
right: -10rpx;
|
||||||
|
transform: translate(0, -30%);
|
||||||
|
width: 24rpx;
|
||||||
|
height: 31rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.falls-card-education,
|
||||||
|
.falls-card-experience {
|
||||||
|
width: fit-content;
|
||||||
|
height: 30rpx;
|
||||||
|
background: #f4f4f4;
|
||||||
|
border-radius: 4rpx;
|
||||||
|
padding: 6rpx 20rpx;
|
||||||
|
line-height: 30rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #6c7282;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.falls-card-company,
|
||||||
|
.falls-card-pepleNumber {
|
||||||
|
margin-top: 20rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999999;
|
||||||
|
line-height: 25rpx;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.falls-card-pepleNumber {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999999;
|
||||||
|
line-height: 46rpx;
|
||||||
|
|
||||||
|
view {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
|
.point2 {
|
||||||
|
margin: 0rpx 6rpx 0 2rpx;
|
||||||
|
height: 22rpx;
|
||||||
|
width: 22rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.point3 {
|
||||||
|
margin: 0rpx 4rpx 0 0;
|
||||||
|
height: 28rpx;
|
||||||
|
width: 28rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.falls-card-matchingrate {
|
||||||
|
margin-top: 10rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 21rpx;
|
||||||
|
color: #4778ec;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.falls-card-company2 {
|
||||||
|
margin-top: 4rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999999;
|
||||||
|
text-align: left;
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
.point3 {
|
||||||
|
margin: 4rpx 4rpx 0 0;
|
||||||
|
height: 26rpx;
|
||||||
|
width: 26rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.policy-list {
|
||||||
|
width: 100%;
|
||||||
|
margin: 0 auto;
|
||||||
|
color: #333333;
|
||||||
|
border-radius: 24rpx;
|
||||||
|
background: #ffffff;
|
||||||
|
padding: 28rpx 22rpx;
|
||||||
|
margin-top: 24rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.sign {
|
||||||
|
position: absolute;
|
||||||
|
font-size: 24rpx;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
padding: 4rpx 14rpx;
|
||||||
|
border: 1rpx solid #ec4827;
|
||||||
|
background: rgba(227, 79, 49, 0.09);
|
||||||
|
border-top-right-radius: 24rpx;
|
||||||
|
border-bottom-left-radius: 24rpx;
|
||||||
|
color: #ec4827;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-line {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #a2a2a2;
|
||||||
|
margin-bottom: 16rpx;
|
||||||
|
|
||||||
|
.salary {
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #4c6efb;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #282828;
|
||||||
|
margin-bottom: 16rpx;
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
image {
|
||||||
|
width: 46rpx;
|
||||||
|
height: 46rpx;
|
||||||
|
margin-right: 11rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.infos {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
font-size: 24rpx;
|
||||||
|
margin-bottom: 16rpx;
|
||||||
|
line-height: 42rpx;
|
||||||
|
|
||||||
|
view {
|
||||||
|
padding: 0 16rpx;
|
||||||
|
margin-right: 10rpx;
|
||||||
|
background: #f2f2f2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.bottom-line {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #a2a2a2;
|
||||||
|
margin-top: 12rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -2,9 +2,9 @@ let baseUrl = ""
|
|||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
// 编译项目,因为使用插件lime-echart,echart文件过大,需要非压缩代码方式编译,不然会很慢,发布的时候才压缩代码方式编译
|
// 编译项目,因为使用插件lime-echart,echart文件过大,需要非压缩代码方式编译,不然会很慢,发布的时候才压缩代码方式编译
|
||||||
if (wx.getAccountInfoSync().miniProgram.envVersion === 'develop') {
|
if (wx.getAccountInfoSync().miniProgram.envVersion === 'develop') {
|
||||||
baseUrl = 'http://222.80.110.161:80/career' // 开发环境
|
baseUrl = 'https://www.xjksly.cn/career' // 开发环境
|
||||||
} else {
|
} else {
|
||||||
baseUrl = 'http://222.80.110.161:80/career' // 生产环境
|
baseUrl = 'https://www.xjksly.cn/career' // 生产环境
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Date: 2024-09-25 11:14:29
|
* @Date: 2024-09-25 11:14:29
|
||||||
* @LastEditors: shirlwang
|
* @LastEditors: shirlwang
|
||||||
* @LastEditTime: 2025-11-04 08:56:59
|
* @LastEditTime: 2025-12-23 17:40:23
|
||||||
*/
|
*/
|
||||||
import request from '@/utilsRc/request'
|
import request from '@/utilsRc/request'
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ export function listJobRecommend(query) {
|
|||||||
export function getWorkListReq(query) {
|
export function getWorkListReq(query) {
|
||||||
return request({
|
return request({
|
||||||
// url: '/personnel/personBaseInfo/postRecommend',
|
// url: '/personnel/personBaseInfo/postRecommend',
|
||||||
url: '/company/unitPostInfo/postElectedList',
|
url: '/manage/info/postElectedList',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
@@ -43,7 +43,7 @@ export function addJobRecommend(data) {
|
|||||||
//岗位推荐保存和办结
|
//岗位推荐保存和办结
|
||||||
export function saveJobRecommend(data) {
|
export function saveJobRecommend(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/process/processJobRecommend/create',
|
url: '/process/processJobRecommend/createJob',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
@@ -70,7 +70,7 @@ export function delJobRecommend(ids) {
|
|||||||
export function getAddedJobs(params) {
|
export function getAddedJobs(params) {
|
||||||
return request({
|
return request({
|
||||||
// url: '/company/postDeliverInfo/list',
|
// url: '/company/postDeliverInfo/list',
|
||||||
url: '/company/unitPostInfo/no/permission/list',
|
url: '/manage/info/no/permission/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params,
|
params,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Date: 2025-10-16 15:15:47
|
* @Date: 2025-10-16 15:15:47
|
||||||
* @LastEditors: shirlwang
|
* @LastEditors: shirlwang
|
||||||
* @LastEditTime: 2025-11-06 16:09:23
|
* @LastEditTime: 2025-12-24 09:53:12
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
@@ -572,6 +572,7 @@ view{box-sizing: border-box;display: block;}
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
.name{
|
.name{
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -16,18 +16,16 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tags">
|
<view class="tags">
|
||||||
<view class="tag">政策:{{ policyDetail.zcLevel }}</view>
|
<view class="tag">政策级别:{{ policyDetail.zcLevel }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="infos">
|
<view class="infos">
|
||||||
<view class="info">发文单位:{{ policyDetail.sourceUnit }}</view>
|
<view class="info">发文单位:{{ policyDetail.sourceUnit }}</view>
|
||||||
<view class="info">受理单位:{{ policyDetail.acceptingUnit }}</view>
|
|
||||||
<view class="info">发布时间:{{ policyDetail.publishTime || '--' }}</view>
|
<view class="info">发布时间:{{ policyDetail.publishTime || '--' }}</view>
|
||||||
<view class="info">浏览次数:{{ policyDetail.viewNum }}</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="main-ceontent-list">
|
<view class="main-ceontent-list">
|
||||||
<!-- 人才政策 -->
|
<!-- 人才政策 -->
|
||||||
<view v-if="policyDetail.zcsylx == '1'">
|
<view>
|
||||||
<view
|
<view
|
||||||
class="main-ceontent-list-item"
|
class="main-ceontent-list-item"
|
||||||
v-if="policyDetail.applicableObjects"
|
v-if="policyDetail.applicableObjects"
|
||||||
@@ -67,30 +65,15 @@
|
|||||||
<span v-else> -- </span>
|
<span v-else> -- </span>
|
||||||
</view>
|
</view>
|
||||||
</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-title">政策内容</view>
|
||||||
<view class="main-ceontent-list-item-content">
|
<view class="main-ceontent-list-item-content">
|
||||||
<span v-if="policyDetail.zczc" v-html="policyDetail.zczc"></span>
|
<span v-if="policyDetail.zczc" v-html="policyDetail.zczc"></span>
|
||||||
<span v-else> -- </span>
|
<span v-else> -- </span>
|
||||||
</view>
|
</view>
|
||||||
</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" >
|
||||||
</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-title">补贴标准</view>
|
<view class="main-ceontent-list-item-title">补贴标准</view>
|
||||||
<view class="main-ceontent-list-item-content">
|
<view class="main-ceontent-list-item-content">
|
||||||
<span v-if="policyDetail.btbz" v-html="policyDetail.btbz"></span>
|
<span v-if="policyDetail.btbz" v-html="policyDetail.btbz"></span>
|
||||||
@@ -98,155 +81,16 @@
|
|||||||
</view>
|
</view>
|
||||||
</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-title">经办渠道</view>
|
||||||
<view class="main-ceontent-list-item-content">
|
<view class="main-ceontent-list-item-content">
|
||||||
<span v-if="policyDetail.jbqd" v-html="policyDetail.jbqd"></span>
|
<span v-if="policyDetail.jbqd" v-html="policyDetail.jbqd"></span>
|
||||||
<span v-else> -- </span>
|
<span v-else> -- </span>
|
||||||
</view>
|
</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.applyCondition"
|
|
||||||
v-html="policyDetail.applyCondition"
|
|
||||||
></span>
|
|
||||||
<span v-else> -- </span>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</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>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
<scroll-view :scroll-y="true" style="height: calc(100vh - 202rpx);position: relative;z-index: 1;"
|
<scroll-view :scroll-y="true" style="height: calc(100vh - 202rpx);position: relative;z-index: 1;"
|
||||||
@scrolltolower="getBottomList">
|
@scrolltolower="getBottomList">
|
||||||
<view style="margin-bottom: 24rpx;border-radius: 16rpx;" class="policy-list" v-for="(item, index) in tableData" :key="index" @click="goPolicyDetail(item)">
|
<view style="margin-bottom: 24rpx;border-radius: 16rpx;" class="policy-list" v-for="(item, index) in tableData" :key="index" @click="goPolicyDetail(item)">
|
||||||
<view class="sign">推荐</view>
|
|
||||||
<view class="title">
|
<view class="title">
|
||||||
<image src="../../../packageRc/static/zcLeft.png"/>
|
<image src="../../../packageRc/static/zcLeft.png"/>
|
||||||
{{item.zcmc}}</view>
|
{{item.zcmc}}</view>
|
||||||
@@ -28,8 +27,7 @@
|
|||||||
<view v-if="item.sourceUnit">{{item.sourceUnit}}</view>
|
<view v-if="item.sourceUnit">{{item.sourceUnit}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="bottom-line">
|
<view class="bottom-line">
|
||||||
<view><uni-icons color="#A2A2A2" type="info" size="12"></uni-icons>发布日期:{{item.createTime}}</view>
|
<view><uni-icons color="#A2A2A2" type="info" size="12"></uni-icons>发文日期:{{item.publishTime}}</view>
|
||||||
<view>浏览数<text style="color: #6AA7E8">{{item.viewNum}}</text></view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="padding-bottom: 24rpx;">
|
<view style="padding-bottom: 24rpx;">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Date: 2024-10-08 14:29:36
|
* @Date: 2024-10-08 14:29:36
|
||||||
* @LastEditors: shirlwang
|
* @LastEditors: shirlwang
|
||||||
* @LastEditTime: 2025-11-04 16:18:56
|
* @LastEditTime: 2025-12-24 09:41:00
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
@@ -78,9 +78,9 @@
|
|||||||
<view class="part-title" style="margin-top: 32rpx;">人员推荐记录</view>
|
<view class="part-title" style="margin-top: 32rpx;">人员推荐记录</view>
|
||||||
<view class="inner-part">
|
<view class="inner-part">
|
||||||
<view v-for="(item, index) in tuijianList" :key="index" class="job-list">
|
<view v-for="(item, index) in tuijianList" :key="index" class="job-list">
|
||||||
<view>{{ item.postName }}</view>
|
<view>{{ item.jobTitle }}</view>
|
||||||
<view style="color: #8492a6;margin-top: 7rpx;">工种:{{item.recruitWorkTypeName}}</view>
|
<view style="color: #8492a6;margin-top: 7rpx;">工种:{{item.jobCategory}}</view>
|
||||||
<view style="color: #8492a6;margin-top: 7rpx;">单位名称:{{item.unitName}}</view>
|
<view style="color: #8492a6;margin-top: 7rpx;">单位名称:{{item.companyName}}</view>
|
||||||
<view class="del-btn" @click="removeTuijian(item)">删除</view>
|
<view class="del-btn" @click="removeTuijian(item)">删除</view>
|
||||||
</view>
|
</view>
|
||||||
<img v-if="!tuijianList.length" src="https://rc.jinan.gov.cn/qcwjyH5/static/images/person/empty.png"
|
<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}">
|
:class="{active: activeJobList.indexOf(item.id)!=-1}">
|
||||||
<!-- 岗位名称和薪资 -->
|
<!-- 岗位名称和薪资 -->
|
||||||
<view class="job-header">
|
<view class="job-header">
|
||||||
<text class="job-title">{{item.postName}}</text>
|
<text class="job-title">{{item.jobTitle}}</text>
|
||||||
<text class="job-salary">{{formatSalary(item.minRecruitmentSalary, item.highRecruitmentSalary)}}</text>
|
<text class="job-salary">{{formatSalary(item.minSalary, item.maxSalary)}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 标签区域 -->
|
<!-- 标签区域 -->
|
||||||
<view class="tag-area">
|
<view class="tag-area">
|
||||||
<text class="tag">{{getDictLabel(item.minEducation, xue_li) || '学历不限'}}</text>
|
<text class="tag">{{item.minEducation || '学历不限'}}</text>
|
||||||
<text class="tag">{{item.profession || '专业不限'}}</text>
|
<!-- <text class="tag">{{item.profession || '专业不限'}}</text> -->
|
||||||
<text class="tag">全职</text>
|
<!-- <text class="tag">全职</text> -->
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 公司信息 -->
|
<!-- 公司信息 -->
|
||||||
<view class="company-info">
|
<view class="company-info">
|
||||||
<view class="company-detail">
|
<view class="company-detail">
|
||||||
<text class="company-name">{{item.unitName}}</text>
|
<text class="company-name">{{item.companyName}}</text>
|
||||||
<view class="location-line">
|
<view class="location-line">
|
||||||
<text class="location">
|
<text class="location">
|
||||||
<text class="location-icon">📍</text>
|
<text class="location-icon">📍</text>
|
||||||
{{item.workLocation || '暂无地址'}}
|
{{item.jobLocation || '暂无地址'}}
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
@@ -115,7 +115,7 @@ export default {
|
|||||||
// this.workParams = workParams
|
// this.workParams = workParams
|
||||||
this.workParams = {
|
this.workParams = {
|
||||||
// ...workParams,
|
// ...workParams,
|
||||||
recruitWorkType: workParams.recruitWorkType,
|
jobCategory: workParams.recruitWorkType,
|
||||||
// longitude: workParams.longitude,
|
// longitude: workParams.longitude,
|
||||||
// latitude: workParams.latitude,
|
// latitude: workParams.latitude,
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
|
|||||||
14
pages.json
14
pages.json
@@ -298,6 +298,14 @@
|
|||||||
"navigationBarTitleText": " 企业详情",
|
"navigationBarTitleText": " 企业详情",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/resumeDetail/resumeDetail",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "简历详情",
|
||||||
|
"navigationBarBackgroundColor": "#4778EC",
|
||||||
|
"navigationBarTextStyle": "white"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -387,6 +395,12 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "跟进"
|
"navigationBarTitleText": "跟进"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "priority/recommend",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "推荐"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "train/wrongAnswer/mistakeNotebook",
|
"path": "train/wrongAnswer/mistakeNotebook",
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
<!-- 主体内容区域 -->
|
<!-- 主体内容区域 -->
|
||||||
<view class="container-main">
|
<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="cards" v-if="fairList.length">
|
||||||
<view class="card press-button" v-for="(item, index) in fairList" :key="index"
|
<view class="card press-button" v-for="(item, index) in fairList" :key="index"
|
||||||
@click="goDetail(item.jobFairId)">
|
@click="goDetail(item.jobFairId)">
|
||||||
@@ -74,10 +74,12 @@
|
|||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 自定义tabbar -->
|
<!-- 自定义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>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -108,7 +110,7 @@
|
|||||||
longitudeVal,
|
longitudeVal,
|
||||||
latitudeVal
|
latitudeVal
|
||||||
} = storeToRefs(useLocationStore());
|
} = storeToRefs(useLocationStore());
|
||||||
const wxAuthLoginRef = ref(null);
|
// const wxAuthLoginRef = ref(null);
|
||||||
const {
|
const {
|
||||||
$api,
|
$api,
|
||||||
navTo,
|
navTo,
|
||||||
@@ -131,7 +133,7 @@
|
|||||||
jobFairTitle: "",
|
jobFairTitle: "",
|
||||||
});
|
});
|
||||||
const baseUrl = config.imgBaseUrl;
|
const baseUrl = config.imgBaseUrl;
|
||||||
|
const showTabar = ref(false);
|
||||||
onLoad(async () => {
|
onLoad(async () => {
|
||||||
// const today = new Date();
|
// const today = new Date();
|
||||||
// const year = today.getFullYear();
|
// const year = today.getFullYear();
|
||||||
@@ -153,9 +155,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
async function thirdLogin(){
|
async function thirdLogin(needToast){
|
||||||
let form={}
|
let form={}
|
||||||
if (uni.getStorageSync('userInfo').isCompanyUser=='1') {
|
if (uni.getStorageSync('userInfo') && uni.getStorageSync('userInfo').isCompanyUser=='1') {
|
||||||
form={
|
form={
|
||||||
usertype: '1',
|
usertype: '1',
|
||||||
idno: uni.getStorageSync('userInfo').idCard,
|
idno: uni.getStorageSync('userInfo').idCard,
|
||||||
@@ -165,7 +167,7 @@
|
|||||||
contactperson: "",
|
contactperson: "",
|
||||||
contactphone: "",
|
contactphone: "",
|
||||||
}
|
}
|
||||||
}else if (uni.getStorageSync('userInfo').isCompanyUser=='0') {
|
}else if (uni.getStorageSync('userInfo') && uni.getStorageSync('userInfo').isCompanyUser=='0') {
|
||||||
form={
|
form={
|
||||||
usertype: "2",
|
usertype: "2",
|
||||||
enterprisecode: uni.getStorageSync('userInfo').idCard,
|
enterprisecode: uni.getStorageSync('userInfo').idCard,
|
||||||
@@ -176,15 +178,18 @@
|
|||||||
name: ""
|
name: ""
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
if(needToast){
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: '请先登录'
|
title: '请先登录'
|
||||||
})
|
})
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
var resLogin = await $api.myRequest('/auth/login2/ks',form,'post',10100);
|
var resLogin = await $api.myRequest('/auth/login2/ks',form,'post',10100);
|
||||||
if (resLogin.code=='200') {
|
if (resLogin.code=='200') {
|
||||||
uni.setStorageSync('Padmin-Token', resLogin.data.access_token)
|
uni.setStorageSync('Padmin-Token', resLogin.data.access_token)
|
||||||
|
isLogin.value = true;
|
||||||
return true;
|
return true;
|
||||||
}else{
|
}else{
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -195,16 +200,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
// onMounted(() => {
|
||||||
// 监听退出登录事件,显示微信登录弹窗
|
// // 监听退出登录事件,显示微信登录弹窗
|
||||||
uni.$on("showLoginModal", () => {
|
// uni.$on("showLoginModal", () => {
|
||||||
wxAuthLoginRef.value?.open();
|
// wxAuthLoginRef.value?.open();
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
|
watch(() => userInfo.value.userType, (newVal) => {
|
||||||
onUnmounted(() => {
|
if(newVal=='ent'){
|
||||||
uni.$off("showLoginModal");
|
showTabar.value = true
|
||||||
});
|
}else{
|
||||||
|
showTabar.value = false
|
||||||
|
}
|
||||||
|
},{ immediate: true ,deep: true})
|
||||||
|
// onUnmounted(() => {
|
||||||
|
// uni.$off("showLoginModal");
|
||||||
|
// });
|
||||||
|
|
||||||
// 登录成功回调
|
// 登录成功回调
|
||||||
const handleLoginSuccess = () => {
|
const handleLoginSuccess = () => {
|
||||||
@@ -213,11 +224,11 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
async function goDetail(jobFairId){
|
async function goDetail(jobFairId){
|
||||||
if(await thirdLogin()){
|
if(state.current != 3 ){
|
||||||
if(state.current != 3){
|
await thirdLogin()
|
||||||
navTo('/packageA/pages/exhibitors/exhibitors?jobFairId=' + jobFairId)
|
navTo('/packageA/pages/exhibitors/exhibitors?jobFairId=' + jobFairId)
|
||||||
}else{
|
}else{
|
||||||
console.log(userInfo.value, 'userInfo');
|
if(await thirdLogin('1')){
|
||||||
if(userInfo.value){
|
if(userInfo.value){
|
||||||
if(userInfo.value.userType=='ent'){
|
if(userInfo.value.userType=='ent'){
|
||||||
navTo('/packageB/jobFair/detailCom?jobFairId=' + jobFairId)
|
navTo('/packageB/jobFair/detailCom?jobFairId=' + jobFairId)
|
||||||
@@ -256,15 +267,17 @@
|
|||||||
state.current = currented;
|
state.current = currented;
|
||||||
}
|
}
|
||||||
|
|
||||||
function seemsg(index) {
|
async function seemsg(index) {
|
||||||
state.current = index;
|
|
||||||
if (index != 3) {
|
if (index != 3) {
|
||||||
|
state.current = index;
|
||||||
getFair("refresh");
|
getFair("refresh");
|
||||||
} else {
|
} else {
|
||||||
|
if(await thirdLogin('1')){
|
||||||
if (!isLogin.value) {
|
if (!isLogin.value) {
|
||||||
getHeart();
|
getHeart();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
state.current = index;
|
||||||
// 确保获取到用户信息后再请求“我参与的”列表
|
// 确保获取到用户信息后再请求“我参与的”列表
|
||||||
if (!userInfo.value?.info?.userId) {
|
if (!userInfo.value?.info?.userId) {
|
||||||
getUser().then(() => {
|
getUser().then(() => {
|
||||||
@@ -275,6 +288,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const handleScrollToLower = () => {
|
const handleScrollToLower = () => {
|
||||||
if (pageState.pageNum >= pageState.maxPage) {
|
if (pageState.pageNum >= pageState.maxPage) {
|
||||||
@@ -290,15 +304,21 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function getHeart() {
|
async function getHeart() {
|
||||||
|
|
||||||
|
|
||||||
const raw = uni.getStorageSync("Padmin-Token");
|
const raw = uni.getStorageSync("Padmin-Token");
|
||||||
const token = typeof raw === "string" ? raw.trim() : "";
|
const token = typeof raw === "string" ? raw.trim() : "";
|
||||||
|
|
||||||
|
var isLogins = await thirdLogin();
|
||||||
|
|
||||||
const headers = token ? {
|
const headers = token ? {
|
||||||
Authorization: raw.startsWith("Bearer ") ? raw : `Bearer ${token}`
|
Authorization: raw.startsWith("Bearer ") ? raw : `Bearer ${token}`
|
||||||
} : {};
|
} : {};
|
||||||
|
|
||||||
|
|
||||||
$api.myRequest("/dashboard/auth/heart", {}, "POST", 10100, headers).then((resData) => {
|
$api.myRequest("/dashboard/auth/heart", {}, "POST", 10100, headers).then((resData) => {
|
||||||
if (resData.code == 200) {
|
if (isLogins) {
|
||||||
isLogin.value = true;
|
isLogin.value = true;
|
||||||
getUser();
|
getUser();
|
||||||
} else {
|
} else {
|
||||||
@@ -559,7 +579,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.app-container .container-header {
|
.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;
|
background-size: 100% 400rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -686,7 +706,9 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100% - 150rpx);
|
height: calc(100% - 150rpx);
|
||||||
}
|
}
|
||||||
|
.fullHeightScroll{
|
||||||
|
height: 100% !important;
|
||||||
|
}
|
||||||
.cards {
|
.cards {
|
||||||
padding: 28rpx;
|
padding: 28rpx;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -184,7 +184,6 @@
|
|||||||
src="/static/icon/addGroup.png"
|
src="/static/icon/addGroup.png"
|
||||||
></image>
|
></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- sendmessgae Button-->
|
<!-- sendmessgae Button-->
|
||||||
<view class="btn-box purple" v-if="textInput && !isTyping" @click="sendMessage">
|
<view class="btn-box purple" v-if="textInput && !isTyping" @click="sendMessage">
|
||||||
<image class="send-btn" src="/static/icon/send3.png"></image>
|
<image class="send-btn" src="/static/icon/send3.png"></image>
|
||||||
@@ -199,6 +198,7 @@
|
|||||||
<view class="btn-box-round"></view>
|
<view class="btn-box-round"></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="ai-tips">本服务为AI生成内容,结果仅供参考</view>
|
||||||
<!-- btn -->
|
<!-- btn -->
|
||||||
<CollapseTransition :show="showfile">
|
<CollapseTransition :show="showfile">
|
||||||
<view class="area-tips">
|
<view class="area-tips">
|
||||||
@@ -1021,13 +1021,26 @@ image-margin-top = 40rpx
|
|||||||
}
|
}
|
||||||
.input-area {
|
.input-area {
|
||||||
padding: 32rpx 28rpx 24rpx 28rpx;
|
padding: 32rpx 28rpx 24rpx 28rpx;
|
||||||
padding-bottom: calc(24rpx + env(safe-area-inset-bottom) + 40rpx - 40rpx);
|
/* #ifdef H5 */
|
||||||
|
padding-bottom: calc(24rpx + env(safe-area-inset-bottom) + 70rpx);
|
||||||
|
/* #endif */
|
||||||
|
/* #ifdef MP-WEIXIN */
|
||||||
|
/* 小程序不支持CSS中的本地图片,使用image标签替代 */
|
||||||
|
padding-bottom: calc(24rpx + env(safe-area-inset-bottom) + 40rpx - 50rpx);
|
||||||
|
/* #endif */
|
||||||
position: relative;
|
position: relative;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
box-shadow: 0rpx -4rpx 10rpx 0rpx rgba(11,44,112,0.06);
|
box-shadow: 0rpx -4rpx 10rpx 0rpx rgba(11,44,112,0.06);
|
||||||
transition: height 2s ease-in-out;
|
transition: height 2s ease-in-out;
|
||||||
z-index: 1001;
|
z-index: 1001;
|
||||||
}
|
}
|
||||||
|
.ai-tips{
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #8c8c8c;
|
||||||
|
line-height: 33rpx;
|
||||||
|
margin-top: 18rpx;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
.input-area::after
|
.input-area::after
|
||||||
position: absolute
|
position: absolute
|
||||||
content: ''
|
content: ''
|
||||||
|
|||||||
@@ -682,22 +682,39 @@ const goToCompanyInfo = () => {
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// 获取企业信息
|
// 获取企业信息
|
||||||
getCompanyInfo();
|
getCompanyInfo();
|
||||||
|
// pageNull.value = 0;
|
||||||
// 监听退出登录事件,显示微信登录弹窗
|
|
||||||
uni.$on('showLoginModal', () => {
|
uni.$on('showLoginModal', () => {
|
||||||
wxAuthLoginRef.value?.open();
|
wxAuthLoginRef.value?.open();
|
||||||
|
pageNull.value = 0;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
// 在组件挂载时绑定事件监听,确保只绑定一次
|
||||||
|
// 先移除可能存在的旧监听,避免重复绑定
|
||||||
|
uni.$off('showLoginModal');
|
||||||
|
|
||||||
|
// 绑定新的监听
|
||||||
|
uni.$on('showLoginModal', () => {
|
||||||
|
console.log('收到showLoginModal事件,打开登录弹窗');
|
||||||
|
wxAuthLoginRef.value?.open();
|
||||||
|
pageNull.value = 0;
|
||||||
|
});
|
||||||
|
|
||||||
|
// 获取企业信息
|
||||||
|
getCompanyInfo();
|
||||||
|
});
|
||||||
|
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
|
// 组件销毁时移除事件监听
|
||||||
uni.$off('showLoginModal');
|
uni.$off('showLoginModal');
|
||||||
});
|
});
|
||||||
|
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
// 获取最新的企业信息
|
// 页面显示时获取最新的企业信息
|
||||||
getCompanyInfo();
|
getCompanyInfo();
|
||||||
//四级联动单点及权限
|
// 四级联动单点及权限
|
||||||
getIsFourLevelLinkagePurview()
|
getIsFourLevelLinkagePurview();
|
||||||
});
|
});
|
||||||
|
|
||||||
// 监听用户信息变化,当登录状态改变时重新获取企业信息
|
// 监听用户信息变化,当登录状态改变时重新获取企业信息
|
||||||
@@ -796,12 +813,13 @@ async function loadData() {
|
|||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const pageNull = ref(0);
|
||||||
function scrollBottom() {
|
function scrollBottom() {
|
||||||
if (loadmoreRef.value && typeof loadmoreRef.value.change === 'function') {
|
if (loadmoreRef.value && typeof loadmoreRef.value.change === 'function') {
|
||||||
loadmoreRef.value.change('loading');
|
loadmoreRef.value.change('loading');
|
||||||
}
|
}
|
||||||
if (state.tabIndex === 'all') {
|
if (state.tabIndex === 'all') {
|
||||||
|
pageNull.value++;
|
||||||
getJobRecommend();
|
getJobRecommend();
|
||||||
} else {
|
} else {
|
||||||
getJobList();
|
getJobList();
|
||||||
@@ -983,6 +1001,16 @@ function getJobRecommend(type = 'add') {
|
|||||||
...conditionSearch.value,
|
...conditionSearch.value,
|
||||||
isPublish: 1,
|
isPublish: 1,
|
||||||
};
|
};
|
||||||
|
// 优先从store获取,如果为空则从缓存获取
|
||||||
|
const storeIsCompanyUser = userInfo.value?.isCompanyUser;
|
||||||
|
const cachedUserInfo = uni.getStorageSync('userInfo') || {};
|
||||||
|
const cachedIsCompanyUser = cachedUserInfo.isCompanyUser;
|
||||||
|
const userType = storeIsCompanyUser !== undefined ? Number(storeIsCompanyUser) : Number(cachedIsCompanyUser);
|
||||||
|
console.log('---------userType-----', userType)
|
||||||
|
// 只有企业用户(isCompanyUser=0)才添加current字段
|
||||||
|
if (userType === 0) {
|
||||||
|
params.current = pageNull.value;
|
||||||
|
}
|
||||||
let comd = { recommend: true, jobCategory: '', tip: '确认你的兴趣,为您推荐更多合适的岗位' };
|
let comd = { recommend: true, jobCategory: '', tip: '确认你的兴趣,为您推荐更多合适的岗位' };
|
||||||
$api.createRequest('/app/job/recommend', params).then((resData) => {
|
$api.createRequest('/app/job/recommend', params).then((resData) => {
|
||||||
const { data, total } = resData;
|
const { data, total } = resData;
|
||||||
@@ -1014,6 +1042,11 @@ function getJobRecommend(type = 'add') {
|
|||||||
const reslist = dataToImg(data);
|
const reslist = dataToImg(data);
|
||||||
list.value = reslist;
|
list.value = reslist;
|
||||||
}
|
}
|
||||||
|
if (data.length > 0) {
|
||||||
|
pageNull.value++;
|
||||||
|
} else {
|
||||||
|
$api.msg('没有更多岗位了');
|
||||||
|
}
|
||||||
// 切换状态
|
// 切换状态
|
||||||
if (loadmoreRef.value && typeof loadmoreRef.value.change === 'function') {
|
if (loadmoreRef.value && typeof loadmoreRef.value.change === 'function') {
|
||||||
if (data.length < pageState.pageSize) {
|
if (data.length < pageState.pageSize) {
|
||||||
@@ -1040,8 +1073,8 @@ function getJobList(type = 'add') {
|
|||||||
// waterfallsFlowRef.value.refresh();
|
// waterfallsFlowRef.value.refresh();
|
||||||
if (waterfallsFlowRef.value) waterfallsFlowRef.value.refresh();
|
if (waterfallsFlowRef.value) waterfallsFlowRef.value.refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
let params = {
|
let params = {
|
||||||
current: pageState.page,
|
|
||||||
pageSize: pageState.pageSize,
|
pageSize: pageState.pageSize,
|
||||||
...pageState.search,
|
...pageState.search,
|
||||||
// ...conditionSearch.value,
|
// ...conditionSearch.value,
|
||||||
@@ -1073,7 +1106,7 @@ const isFourLevelLinkagePurview=ref(false)
|
|||||||
const getIsFourLevelLinkagePurview=()=>{
|
const getIsFourLevelLinkagePurview=()=>{
|
||||||
let userInfo = uni.getStorageSync('userInfo')
|
let userInfo = uni.getStorageSync('userInfo')
|
||||||
if(userInfo){
|
if(userInfo){
|
||||||
$api.myRequest('/auth/login2/ks',{userid: userInfo.dwUserid, idcardno: userInfo.idCard},"POST",'9100',{}).then(res=>{
|
$api.myRequest('/auth/login2/ks',{userid: userInfo.dwUserid, idcardno: userInfo.idCard},"POST",9100,{}).then(res=>{
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
uni.setStorageSync('fourLevelLinkage-token',res.data.access_token)
|
uni.setStorageSync('fourLevelLinkage-token',res.data.access_token)
|
||||||
let roleIdList= ['103','106','107']
|
let roleIdList= ['103','106','107']
|
||||||
@@ -1100,7 +1133,7 @@ function goRc(){
|
|||||||
if (checkLogin()) {
|
if (checkLogin()) {
|
||||||
let userInfo = uni.getStorageSync('userInfo')
|
let userInfo = uni.getStorageSync('userInfo')
|
||||||
if(userInfo.isCompanyUser == 2){
|
if(userInfo.isCompanyUser == 2){
|
||||||
storeRc.dispatch('LoginByID', userInfo.userId).then(res => {
|
storeRc.dispatch('LoginByID', userInfo.dwUserid || 2025111679160750).then(res => {
|
||||||
// storeRc.dispatch('LoginByID', 2025111679160750).then(res => {
|
// storeRc.dispatch('LoginByID', 2025111679160750).then(res => {
|
||||||
storeRc.dispatch('GetInfo').then(res => {
|
storeRc.dispatch('GetInfo').then(res => {
|
||||||
navTo('/packageRc/pages/daiban/daiban');
|
navTo('/packageRc/pages/daiban/daiban');
|
||||||
@@ -1124,7 +1157,7 @@ function goCa(){
|
|||||||
if (checkLogin()) {
|
if (checkLogin()) {
|
||||||
let userInfo = uni.getStorageSync('userInfo')
|
let userInfo = uni.getStorageSync('userInfo')
|
||||||
storeRc.dispatch('LoginByUserInfo', userInfo).then(res => {
|
storeRc.dispatch('LoginByUserInfo', userInfo).then(res => {
|
||||||
navTo(`/packageCa/search/search?name=${userInfo.name}&idCard=${userInfo.idCard}`);
|
navTo(`/packageCa/search/search?name=${userInfo.name}&userId=${userInfo.idCard}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1133,7 +1166,7 @@ function goCaAI(){
|
|||||||
if (checkLogin()) {
|
if (checkLogin()) {
|
||||||
let userInfo = uni.getStorageSync('userInfo')
|
let userInfo = uni.getStorageSync('userInfo')
|
||||||
storeRc.dispatch('LoginByUserInfo', userInfo).then(res => {
|
storeRc.dispatch('LoginByUserInfo', userInfo).then(res => {
|
||||||
navTo(`/packageCa/search/AIAudition?name=${userInfo.name}&idCard=${userInfo.idCard}`);
|
navTo(`/packageCa/search/AIAudition?name=${userInfo.name}&userId=${userInfo.idCard}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,6 +132,19 @@
|
|||||||
<view class="picker-text" data-placeholder="请选择岗位分类">{{ selectedJobCategory || '请选择岗位分类' }}</view>
|
<view class="picker-text" data-placeholder="请选择岗位分类">{{ selectedJobCategory || '请选择岗位分类' }}</view>
|
||||||
</picker>
|
</picker>
|
||||||
</view>
|
</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>
|
</view>
|
||||||
|
|
||||||
<!-- 图片上传区块 -->
|
<!-- 图片上传区块 -->
|
||||||
@@ -253,6 +266,9 @@
|
|||||||
|
|
||||||
<!-- 自定义tabbar -->
|
<!-- 自定义tabbar -->
|
||||||
<CustomTabBar :currentPage="1" />
|
<CustomTabBar :currentPage="1" />
|
||||||
|
|
||||||
|
<!-- 岗位类型选择器 -->
|
||||||
|
<selectJobs ref="jobTypeSelector" />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -265,6 +281,7 @@ import config from '@/config.js';
|
|||||||
import useDictStore from '@/stores/useDictStore';
|
import useDictStore from '@/stores/useDictStore';
|
||||||
import useUserStore from '@/stores/useUserStore';
|
import useUserStore from '@/stores/useUserStore';
|
||||||
import UniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue';
|
import UniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue';
|
||||||
|
import selectJobs from '@/components/selectJobs/selectJobs.vue';
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const cachedUserInfo = uni.getStorageSync('userInfo') || {};
|
const cachedUserInfo = uni.getStorageSync('userInfo') || {};
|
||||||
// 表单数据
|
// 表单数据
|
||||||
@@ -276,7 +293,8 @@ const formData = reactive({
|
|||||||
vacancies: '', // 招聘人数
|
vacancies: '', // 招聘人数
|
||||||
description: '', // 对应接口字段 description
|
description: '', // 对应接口字段 description
|
||||||
jobRequirements: '',
|
jobRequirements: '',
|
||||||
jobCategory: '', // 新增:岗位分类
|
type: '', // 岗位分类(用户指示使用type字段)
|
||||||
|
jobCategory: '', // 岗位类型
|
||||||
companyId: '', // 新增:企业id
|
companyId: '', // 新增:企业id
|
||||||
latitude: '', // 新增:纬度
|
latitude: '', // 新增:纬度
|
||||||
longitude: '', // 新增:经度
|
longitude: '', // 新增:经度
|
||||||
@@ -313,10 +331,15 @@ const selectedExperience = ref('');
|
|||||||
const selectedWorkDistrict = ref('');
|
const selectedWorkDistrict = ref('');
|
||||||
const selectedWorkLocation = ref('');
|
const selectedWorkLocation = ref('');
|
||||||
const selectedJobCategory = ref('');
|
const selectedJobCategory = ref('');
|
||||||
|
const selectedJobTypeLabel = ref(''); // 新增:岗位类型显示文本
|
||||||
|
const selectedJobTypeIds = ref(''); // 新增:岗位类型ID(多个用逗号分隔)
|
||||||
|
|
||||||
// 滚动视图高度
|
// 滚动视图高度
|
||||||
const scrollViewHeight = ref('calc(100vh - 200rpx)');
|
const scrollViewHeight = ref('calc(100vh - 200rpx)');
|
||||||
|
|
||||||
|
// 岗位类型选择器引用
|
||||||
|
const jobTypeSelector = ref(null);
|
||||||
|
|
||||||
// 计算滚动视图高度
|
// 计算滚动视图高度
|
||||||
const calculateScrollViewHeight = () => {
|
const calculateScrollViewHeight = () => {
|
||||||
const systemInfo = uni.getSystemInfoSync();
|
const systemInfo = uni.getSystemInfoSync();
|
||||||
@@ -413,19 +436,18 @@ const initFormData = async () => {
|
|||||||
// 设置区县选项(从字典获取)
|
// 设置区县选项(从字典获取)
|
||||||
workDistricts.value = dictStore.state.area;
|
workDistricts.value = dictStore.state.area;
|
||||||
|
|
||||||
// 设置岗位分类选项
|
// 设置岗位分类选项 - 从字典获取 position_type
|
||||||
// 只有就业见习基地才能选择"实习实训"选项
|
const positionTypeDict = await dictStore.getDictSelectOption('position_type');
|
||||||
|
console.log('从字典获取的岗位类型数据:', positionTypeDict);
|
||||||
|
|
||||||
|
// 过滤岗位类型选项:只有就业见习基地才能选择"实习实训"选项
|
||||||
|
// 假设实习实训的 value 为 '3'
|
||||||
if (isInternshipBase.value) {
|
if (isInternshipBase.value) {
|
||||||
jobCategories.value = [
|
// 如果是就业见习基地,显示所有选项
|
||||||
{ label: '普通', value: '1' },
|
jobCategories.value = positionTypeDict;
|
||||||
{ label: '零工', value: '2' },
|
|
||||||
{ label: '实习实训', value: '3' }
|
|
||||||
];
|
|
||||||
} else {
|
} else {
|
||||||
jobCategories.value = [
|
// 如果不是就业见习基地,过滤掉实习实训选项
|
||||||
{ label: '普通', value: '1' },
|
jobCategories.value = positionTypeDict.filter(item => item.dictSort !== 2);
|
||||||
{ label: '零工', value: '2' }
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
console.log('岗位分类选项:', jobCategories.value);
|
console.log('岗位分类选项:', jobCategories.value);
|
||||||
|
|
||||||
@@ -487,7 +509,27 @@ const onJobCategoryChange = (e) => {
|
|||||||
const index = e.detail.value;
|
const index = e.detail.value;
|
||||||
const selectedItem = jobCategories.value[index];
|
const selectedItem = jobCategories.value[index];
|
||||||
selectedJobCategory.value = selectedItem.label;
|
selectedJobCategory.value = selectedItem.label;
|
||||||
formData.jobCategory = selectedItem.value;
|
formData.type = selectedItem.value; // 岗位分类保存到type字段
|
||||||
|
};
|
||||||
|
|
||||||
|
// 打开岗位类型选择器
|
||||||
|
const openJobTypeSelector = () => {
|
||||||
|
if (!jobTypeSelector.value) return;
|
||||||
|
|
||||||
|
jobTypeSelector.value.open({
|
||||||
|
title: '选择岗位类型',
|
||||||
|
success: (ids, labels) => {
|
||||||
|
// 保存选中的岗位类型
|
||||||
|
selectedJobTypeIds.value = ids;
|
||||||
|
selectedJobTypeLabel.value = labels;
|
||||||
|
// 将岗位类型文字保存到formData.jobCategory字段
|
||||||
|
formData.jobCategory = labels;
|
||||||
|
console.log('选择的岗位类型ID:', ids, '标签:', labels);
|
||||||
|
},
|
||||||
|
cancel: () => {
|
||||||
|
console.log('取消选择岗位类型');
|
||||||
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// 选择位置
|
// 选择位置
|
||||||
@@ -660,7 +702,8 @@ const publishJob = async () => {
|
|||||||
latitude: formData.latitude,
|
latitude: formData.latitude,
|
||||||
longitude: formData.longitude,
|
longitude: formData.longitude,
|
||||||
description: formData.description,
|
description: formData.description,
|
||||||
jobCategory: formData.jobCategory,
|
type: formData.type, // 岗位分类
|
||||||
|
jobCategory: formData.jobCategory, // 岗位类型
|
||||||
companyId: formData.companyId,
|
companyId: formData.companyId,
|
||||||
companyName: formData.companyName,
|
companyName: formData.companyName,
|
||||||
jobContactList: formData.contacts.filter(contact => contact.name.trim() && contact.phone.trim()).map(contact => ({
|
jobContactList: formData.contacts.filter(contact => contact.name.trim() && contact.phone.trim()).map(contact => ({
|
||||||
@@ -722,11 +765,14 @@ const validateForm = () => {
|
|||||||
{ field: 'jobLocationAreaCode', message: '请选择工作区县' },
|
{ field: 'jobLocationAreaCode', message: '请选择工作区县' },
|
||||||
{ field: 'vacancies', message: '请输入招聘人数' },
|
{ field: 'vacancies', message: '请输入招聘人数' },
|
||||||
{ field: 'description', message: '请输入岗位描述' },
|
{ field: 'description', message: '请输入岗位描述' },
|
||||||
{ field: 'jobCategory', message: '请选择岗位分类' }
|
{ field: 'type', message: '请选择岗位分类' },
|
||||||
|
{ field: 'jobCategory', message: '请选择岗位类型' }
|
||||||
];
|
];
|
||||||
|
|
||||||
for (const { field, message } of requiredFields) {
|
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({
|
uni.showToast({
|
||||||
title: message,
|
title: message,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ const handleLogin = async () => {
|
|||||||
icon: 'success'
|
icon: 'success'
|
||||||
})
|
})
|
||||||
// window.location.assign('http://222.80.110.161:11111/mechine-dual-vue/login')
|
// window.location.assign('http://222.80.110.161:11111/mechine-dual-vue/login')
|
||||||
window.location.assign('http://222.80.110.161:80/mechine-single-vue/login')
|
window.location.assign('https://www.xjksly.cn/mechine-single-vue/login')
|
||||||
// // 跳转到首页
|
// // 跳转到首页
|
||||||
// uni.reLaunch({
|
// uni.reLaunch({
|
||||||
// url: '/pages/index/index'
|
// url: '/pages/index/index'
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="row-right">已认证</view>
|
<view class="row-right">已认证</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="main-row btn-feel">
|
<view class="main-row btn-feel" @click="goCa()">
|
||||||
<view class="row-left">
|
<view class="row-left">
|
||||||
<image class="left-img" src="@/static/icon/server2.png"></image>
|
<image class="left-img" src="@/static/icon/server2.png"></image>
|
||||||
<text class="left-text">素质测评</text>
|
<text class="left-text">素质测评</text>
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
<uni-icons color="#909090" type="right" size="14"></uni-icons>
|
<uni-icons color="#909090" type="right" size="14"></uni-icons>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="main-row btn-feel">
|
<view class="main-row btn-feel" @click="goCaAI()">
|
||||||
<view class="row-left">
|
<view class="row-left">
|
||||||
<image class="left-img" src="@/static/icon/server3.png"></image>
|
<image class="left-img" src="@/static/icon/server3.png"></image>
|
||||||
<text class="left-text">AI面试</text>
|
<text class="left-text">AI面试</text>
|
||||||
@@ -203,6 +203,17 @@ function goToJobHelper() {
|
|||||||
// 跳转到求职者信息补全页面
|
// 跳转到求职者信息补全页面
|
||||||
navTo('/pages/complete-info/complete-info');
|
navTo('/pages/complete-info/complete-info');
|
||||||
}
|
}
|
||||||
|
// 跳转到素质测评
|
||||||
|
function goCa(){
|
||||||
|
let userInfo = uni.getStorageSync('userInfo')
|
||||||
|
navTo(`/packageCa/search/search?name=${userInfo.name}&userId=${userInfo.idCard}`);
|
||||||
|
}
|
||||||
|
// 跳转到AI面试
|
||||||
|
function goCaAI(){
|
||||||
|
let userInfo = uni.getStorageSync('userInfo')
|
||||||
|
navTo(`/packageCa/search/AIAudition?name=${userInfo.name}&userId=${userInfo.idCard}`);
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
|
|||||||
@@ -188,7 +188,9 @@ async function fetchTargetCareerOptions(keyword = '') {
|
|||||||
value: item.id,
|
value: item.id,
|
||||||
startJob: item.startJob,
|
startJob: item.startJob,
|
||||||
endJob: item.endJob,
|
endJob: item.endJob,
|
||||||
jobOrder: item.jobOrder
|
jobOrder: item.jobOrder,
|
||||||
|
startJobId: item.startJobId,
|
||||||
|
endJobId: item.endJobId
|
||||||
}));
|
}));
|
||||||
|
|
||||||
if (targetCareerOptions.value.length === 0) {
|
if (targetCareerOptions.value.length === 0) {
|
||||||
@@ -215,8 +217,8 @@ async function fetchPathCount() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function loadPathDetail(jobPathId) {
|
async function loadPathDetail(startJobId, endJobId) {
|
||||||
if (!jobPathId || jobPathId === null || jobPathId === undefined || jobPathId === '') {
|
if (startJobId === null || startJobId === undefined || startJobId === '' || endJobId === null || endJobId === undefined || endJobId === '') {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '职业路径ID无效',
|
title: '职业路径ID无效',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
@@ -227,7 +229,8 @@ async function loadPathDetail(jobPathId) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const requestParams = {
|
const requestParams = {
|
||||||
jobPathId: jobPathId
|
startJobId,
|
||||||
|
endJobId
|
||||||
};
|
};
|
||||||
|
|
||||||
const response = await getJobPathDetail(requestParams);
|
const response = await getJobPathDetail(requestParams);
|
||||||
@@ -264,6 +267,7 @@ async function loadPathDetail(jobPathId) {
|
|||||||
targetCareer: targetCareerOptions.value[selectedTargetIndex.value]?.label || ''
|
targetCareer: targetCareerOptions.value[selectedTargetIndex.value]?.label || ''
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
console.warn(error, 22222);
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '获取路径详情失败',
|
title: '获取路径详情失败',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
@@ -301,16 +305,16 @@ async function handleQuery() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let jobPathId = option.value;
|
|
||||||
|
|
||||||
isLoadingPath.value = true;
|
isLoadingPath.value = true;
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '加载中...',
|
title: '加载中...',
|
||||||
mask: true
|
mask: true
|
||||||
});
|
});
|
||||||
|
console.log(option);
|
||||||
try {
|
try {
|
||||||
if (!jobPathId) {
|
let { value: jobPathId, startJobId, endJobId } = option;
|
||||||
|
/*if (!jobPathId) {
|
||||||
const response = await getJobPathPage({
|
const response = await getJobPathPage({
|
||||||
jobName: option.label,
|
jobName: option.label,
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
@@ -326,11 +330,12 @@ async function handleQuery() {
|
|||||||
});
|
});
|
||||||
resetPathData();
|
resetPathData();
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
selectedJobPathId.value = jobPathId;
|
// selectedJobPathId.value = jobPathId;
|
||||||
await loadPathDetail(jobPathId);
|
await loadPathDetail(startJobId, endJobId);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
console.warn(error, 11111);
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '查询失败,请重试',
|
title: '查询失败,请重试',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|||||||
BIN
static/tabbar/careerfair.png
Normal file
BIN
static/tabbar/careerfair.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
BIN
static/tabbar/careerfaired.png
Normal file
BIN
static/tabbar/careerfaired.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
@@ -72,7 +72,7 @@ const useUserStore = defineStore("user", () => {
|
|||||||
role.value = {}
|
role.value = {}
|
||||||
uni.removeStorageSync('userInfo')
|
uni.removeStorageSync('userInfo')
|
||||||
uni.removeStorageSync('token')
|
uni.removeStorageSync('token')
|
||||||
|
uni.removeStorageSync('Padmin-Token')
|
||||||
// 如果需要显示登录弹窗,则通过事件通知页面显示微信登录弹窗
|
// 如果需要显示登录弹窗,则通过事件通知页面显示微信登录弹窗
|
||||||
if (showLoginModal) {
|
if (showLoginModal) {
|
||||||
// 通过 uni.$emit 发送全局事件,通知页面显示登录弹窗
|
// 通过 uni.$emit 发送全局事件,通知页面显示登录弹窗
|
||||||
|
|||||||
@@ -1,247 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="zh-CN">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>社保登录流程测试</title>
|
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
font-family: Arial, sans-serif;
|
|
||||||
max-width: 800px;
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: 20px;
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
}
|
|
||||||
.container {
|
|
||||||
background: white;
|
|
||||||
padding: 30px;
|
|
||||||
border-radius: 8px;
|
|
||||||
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
||||||
}
|
|
||||||
h1 {
|
|
||||||
color: #333;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.test-case {
|
|
||||||
margin: 20px 0;
|
|
||||||
padding: 15px;
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
border-radius: 5px;
|
|
||||||
background: #f9f9f9;
|
|
||||||
}
|
|
||||||
.test-case h3 {
|
|
||||||
margin-top: 0;
|
|
||||||
color: #4778EC;
|
|
||||||
}
|
|
||||||
.code {
|
|
||||||
background: #f4f4f4;
|
|
||||||
padding: 10px;
|
|
||||||
border-radius: 4px;
|
|
||||||
font-family: monospace;
|
|
||||||
overflow-x: auto;
|
|
||||||
}
|
|
||||||
.btn {
|
|
||||||
background: #4778EC;
|
|
||||||
color: white;
|
|
||||||
padding: 10px 20px;
|
|
||||||
border: none;
|
|
||||||
border-radius: 4px;
|
|
||||||
cursor: pointer;
|
|
||||||
margin: 10px 5px;
|
|
||||||
}
|
|
||||||
.btn:hover {
|
|
||||||
background: #256BFA;
|
|
||||||
}
|
|
||||||
.result {
|
|
||||||
margin-top: 10px;
|
|
||||||
padding: 10px;
|
|
||||||
border-radius: 4px;
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.success {
|
|
||||||
background: #d4edda;
|
|
||||||
color: #155724;
|
|
||||||
border: 1px solid #c3e6cb;
|
|
||||||
}
|
|
||||||
.error {
|
|
||||||
background: #f8d7da;
|
|
||||||
color: #721c24;
|
|
||||||
border: 1px solid #f5c6cb;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="container">
|
|
||||||
<h1>社保登录流程测试</h1>
|
|
||||||
|
|
||||||
<div class="test-case">
|
|
||||||
<h3>测试用例 1: Base64 解码测试</h3>
|
|
||||||
<p>测试 Base64 解码功能是否正常工作</p>
|
|
||||||
<div class="code">
|
|
||||||
// 测试数据: "142634199305163418" 的 Base64 编码<br>
|
|
||||||
// 原始身份证号: 142634199305163418<br>
|
|
||||||
// Base64 编码: MTQyNjM0MTk5MzA1MTYzNDE4
|
|
||||||
</div>
|
|
||||||
<button class="btn" onclick="testBase64Decode()">测试 Base64 解码</button>
|
|
||||||
<div id="base64Result" class="result"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="test-case">
|
|
||||||
<h3>测试用例 2: URL 参数解析测试</h3>
|
|
||||||
<p>测试从 URL 中获取 idCard 参数的功能</p>
|
|
||||||
<div class="code">
|
|
||||||
// 测试 URL: http://localhost:5173/ks_app/#/pages/login/id-card-login?idCard=MTQyNjM0MTk5MzA1MTYzNDE4<br>
|
|
||||||
// 预期结果: 成功获取到 idCard 参数值
|
|
||||||
</div>
|
|
||||||
<button class="btn" onclick="testUrlParams()">测试 URL 参数解析</button>
|
|
||||||
<div id="urlResult" class="result"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="test-case">
|
|
||||||
<h3>测试用例 3: 完整登录流程测试</h3>
|
|
||||||
<p>模拟完整的社保登录流程</p>
|
|
||||||
<div class="code">
|
|
||||||
1. 从 URL 获取 idCard 参数 (Base64 编码)<br>
|
|
||||||
2. Base64 解码得到明文身份证号<br>
|
|
||||||
3. 调用 /app/idCardLogin 接口<br>
|
|
||||||
4. 处理登录结果
|
|
||||||
</div>
|
|
||||||
<button class="btn" onclick="testFullLoginFlow()">测试完整登录流程</button>
|
|
||||||
<div id="loginResult" class="result"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="test-case">
|
|
||||||
<h3>测试用例 4: 生成测试链接</h3>
|
|
||||||
<p>生成用于测试的社保登录链接</p>
|
|
||||||
<div class="code">
|
|
||||||
身份证号: <input type="text" id="testIdCard" value="142634199305163418" style="width: 200px; padding: 5px;">
|
|
||||||
</div>
|
|
||||||
<button class="btn" onclick="generateTestLink()">生成测试链接</button>
|
|
||||||
<div id="linkResult" class="result"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
// Base64 解码函数 (与前端代码保持一致)
|
|
||||||
function decodeBase64(base64Str) {
|
|
||||||
try {
|
|
||||||
return atob(base64Str);
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Base64解码失败:', error);
|
|
||||||
throw new Error('身份证号码解码失败');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 测试 Base64 解码
|
|
||||||
function testBase64Decode() {
|
|
||||||
const base64Str = "MTQyNjM0MTk5MzA1MTYzNDE4";
|
|
||||||
const resultDiv = document.getElementById('base64Result');
|
|
||||||
|
|
||||||
try {
|
|
||||||
const decoded = decodeBase64(base64Str);
|
|
||||||
resultDiv.innerHTML = `<strong>成功!</strong><br>
|
|
||||||
Base64 编码: ${base64Str}<br>
|
|
||||||
解码结果: ${decoded}<br>
|
|
||||||
预期结果: 142634199305163418<br>
|
|
||||||
匹配: ${decoded === "142634199305163418" ? "✓" : "✗"}`;
|
|
||||||
resultDiv.className = 'result success';
|
|
||||||
resultDiv.style.display = 'block';
|
|
||||||
} catch (error) {
|
|
||||||
resultDiv.innerHTML = `<strong>失败!</strong><br>错误信息: ${error.message}`;
|
|
||||||
resultDiv.className = 'result error';
|
|
||||||
resultDiv.style.display = 'block';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 测试 URL 参数解析
|
|
||||||
function testUrlParams() {
|
|
||||||
const testUrl = "http://localhost:5173/ks_app/#/pages/login/id-card-login?idCard=MTQyNjM0MTk5MzA1MTYzNDE4";
|
|
||||||
const resultDiv = document.getElementById('urlResult');
|
|
||||||
|
|
||||||
try {
|
|
||||||
const urlObj = new URL(testUrl);
|
|
||||||
const idCardParam = urlObj.searchParams.get('idCard');
|
|
||||||
|
|
||||||
resultDiv.innerHTML = `<strong>成功!</strong><br>
|
|
||||||
URL: ${testUrl}<br>
|
|
||||||
获取到的 idCard 参数: ${idCardParam}<br>
|
|
||||||
参数存在: ${idCardParam ? "✓" : "✗"}`;
|
|
||||||
resultDiv.className = 'result success';
|
|
||||||
resultDiv.style.display = 'block';
|
|
||||||
} catch (error) {
|
|
||||||
resultDiv.innerHTML = `<strong>失败!</strong><br>错误信息: ${error.message}`;
|
|
||||||
resultDiv.className = 'result error';
|
|
||||||
resultDiv.style.display = 'block';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 测试完整登录流程
|
|
||||||
function testFullLoginFlow() {
|
|
||||||
const resultDiv = document.getElementById('loginResult');
|
|
||||||
resultDiv.innerHTML = '<strong>测试中...</strong>';
|
|
||||||
resultDiv.className = 'result';
|
|
||||||
resultDiv.style.display = 'block';
|
|
||||||
|
|
||||||
setTimeout(() => {
|
|
||||||
try {
|
|
||||||
// 模拟登录流程
|
|
||||||
const base64IdCard = "MTQyNjM0MTk5MzA1MTYzNDE4";
|
|
||||||
const decodedIdCard = decodeBase64(base64IdCard);
|
|
||||||
|
|
||||||
// 验证身份证格式
|
|
||||||
if (!decodedIdCard || decodedIdCard.length < 15) {
|
|
||||||
throw new Error('身份证号码格式不正确');
|
|
||||||
}
|
|
||||||
|
|
||||||
resultDiv.innerHTML = `<strong>成功!</strong><br>
|
|
||||||
完整登录流程测试通过:<br>
|
|
||||||
1. Base64 参数获取: ✓<br>
|
|
||||||
2. Base64 解码: ✓ (${decodedIdCard})<br>
|
|
||||||
3. 身份证格式验证: ✓<br>
|
|
||||||
4. 接口调用准备: ✓<br>
|
|
||||||
<br>
|
|
||||||
<em>注意: 实际接口调用需要在真实环境中测试</em>`;
|
|
||||||
resultDiv.className = 'result success';
|
|
||||||
} catch (error) {
|
|
||||||
resultDiv.innerHTML = `<strong>失败!</strong><br>错误信息: ${error.message}`;
|
|
||||||
resultDiv.className = 'result error';
|
|
||||||
}
|
|
||||||
}, 1000);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 生成测试链接
|
|
||||||
function generateTestLink() {
|
|
||||||
const idCardInput = document.getElementById('testIdCard');
|
|
||||||
const idCard = idCardInput.value.trim();
|
|
||||||
const resultDiv = document.getElementById('linkResult');
|
|
||||||
|
|
||||||
if (!idCard) {
|
|
||||||
resultDiv.innerHTML = '<strong>错误!</strong><br>请输入身份证号码';
|
|
||||||
resultDiv.className = 'result error';
|
|
||||||
resultDiv.style.display = 'block';
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
const base64IdCard = btoa(idCard);
|
|
||||||
const testLink = `http://localhost:5173/ks_app/#/pages/login/id-card-login?idCard=${base64IdCard}`;
|
|
||||||
|
|
||||||
resultDiv.innerHTML = `<strong>测试链接已生成!</strong><br>
|
|
||||||
原始身份证号: ${idCard}<br>
|
|
||||||
Base64 编码: ${base64IdCard}<br>
|
|
||||||
<br>
|
|
||||||
<strong>测试链接:</strong><br>
|
|
||||||
<a href="${testLink}" target="_blank" style="word-break: break-all;">${testLink}</a><br>
|
|
||||||
<br>
|
|
||||||
<em>复制此链接在开发环境中测试社保登录功能</em>`;
|
|
||||||
resultDiv.className = 'result success';
|
|
||||||
resultDiv.style.display = 'block';
|
|
||||||
} catch (error) {
|
|
||||||
resultDiv.innerHTML = `<strong>生成失败!</strong><br>错误信息: ${error.message}`;
|
|
||||||
resultDiv.className = 'result error';
|
|
||||||
resultDiv.style.display = 'block';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -73,7 +73,7 @@ export function request({
|
|||||||
* @param header Object,headers,默认:{}
|
* @param header Object,headers,默认:{}
|
||||||
* @returns promise
|
* @returns promise
|
||||||
**/
|
**/
|
||||||
export function createRequest(url, data = {}, method = 'GET', loading = false, headers = {}) {
|
export function createRequest(url, data = {}, method = 'GET', loading = false, headers = {},needHeader = true) {
|
||||||
if (loading) {
|
if (loading) {
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '请稍后',
|
title: '请稍后',
|
||||||
@@ -86,7 +86,9 @@ export function createRequest(url, data = {}, method = 'GET', loading = false, h
|
|||||||
}
|
}
|
||||||
|
|
||||||
const header = headers || {};
|
const header = headers || {};
|
||||||
|
if(needHeader){
|
||||||
header["Authorization"] = encodeURIComponent(Authorization);
|
header["Authorization"] = encodeURIComponent(Authorization);
|
||||||
|
}
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
uni.request({
|
uni.request({
|
||||||
url: config.baseUrl + url,
|
url: config.baseUrl + url,
|
||||||
|
|||||||
@@ -10,7 +10,9 @@ import config from '@/config.js'
|
|||||||
let exports = {
|
let exports = {
|
||||||
// ========== baseUrl 配置方式选择 ==========
|
// ========== baseUrl 配置方式选择 ==========
|
||||||
// 方式1:硬编码baseUrl(main分支使用,合并到main时不会影响现有功能)
|
// 方式1:硬编码baseUrl(main分支使用,合并到main时不会影响现有功能)
|
||||||
baseUrl: 'http://222.80.110.161:80/sdrc-api', // 正式环境在济南人才上部署(不要轻易连接)
|
baseUrl: 'https://www.xjksly.cn/sdrc-api', // 正式环境在济南人才上部署(不要轻易连接)
|
||||||
|
// baseUrl: 'http://10.160.0.5:8907', // 开发环境
|
||||||
|
// baseUrl: 'http://172.20.1.48:8903', // 开发环境
|
||||||
|
|
||||||
// 方式2:引用根目录config.js的baseUrl(CareerMap分支可选方式,如需使用请注释掉方式1,取消注释此方式)
|
// 方式2:引用根目录config.js的baseUrl(CareerMap分支可选方式,如需使用请注释掉方式1,取消注释此方式)
|
||||||
// baseUrl: config.baseUrl, // 引用根目录config.js的baseUrl,避免重复配置
|
// baseUrl: config.baseUrl, // 引用根目录config.js的baseUrl,避免重复配置
|
||||||
@@ -26,13 +28,13 @@ let exports = {
|
|||||||
// baseUrl: 'http://ks.zhaopinzao8dian.com/api/ks', // 已从根目录config.js引用,不再重复配置
|
// baseUrl: 'http://ks.zhaopinzao8dian.com/api/ks', // 已从根目录config.js引用,不再重复配置
|
||||||
|
|
||||||
// ========== 职业图谱专用baseUrl ==========
|
// ========== 职业图谱专用baseUrl ==========
|
||||||
zytpBaseUrl: 'http://222.80.110.161:80/career-map/api/ks_zytp/admin-api/zytp',
|
zytpBaseUrl: 'https://www.xjksly.cn/career-map/api/ks_zytp/admin-api/zytp',
|
||||||
|
|
||||||
// ========== 用户接口专用baseUrl(其他用户接口使用) ==========
|
// ========== 用户接口专用baseUrl(其他用户接口使用) ==========
|
||||||
userBaseUrl: 'http://ks.zhaopinzao8dian.com/api/ks', // 用户相关接口使用根目录config.js的baseUrl
|
userBaseUrl: 'http://ks.zhaopinzao8dian.com/api/ks', // 用户相关接口使用根目录config.js的baseUrl
|
||||||
|
|
||||||
// ========== appUserInfo接口专用baseUrl ==========
|
// ========== appUserInfo接口专用baseUrl ==========
|
||||||
appUserInfoBaseUrl: 'http://222.80.110.161:80/api/ks', // appUserInfo接口专用,与其他接口路径不一致
|
appUserInfoBaseUrl: 'https://www.xjksly.cn/api/ks', // appUserInfo接口专用,与其他接口路径不一致
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ const request = config => {
|
|||||||
// 从存储中获取微信登录的 token
|
// 从存储中获取微信登录的 token
|
||||||
const token = getToken()
|
const token = getToken()
|
||||||
if (token && !isToken && !isZytpApi) {
|
if (token && !isToken && !isZytpApi) {
|
||||||
|
// config.header['Authorization'] = 'Bearer ' + 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiJzeXNfdXNlcjoxIiwicm5TdHIiOiJhb0Y4RmJPQWJ6ZVA3NlpzaENyM0tPSEZTbU85U0ZhViIsInVzZXJJZCI6MX0.kPEDm7D8eVvFlwAiUiE57evWaCX5EcSEOq-LEYGTm9Q'
|
||||||
config.header['Authorization'] = 'Bearer ' + token
|
config.header['Authorization'] = 'Bearer ' + token
|
||||||
}
|
}
|
||||||
let requestBaseUrl = baseUrl
|
let requestBaseUrl = baseUrl
|
||||||
|
|||||||
Reference in New Issue
Block a user