Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 264d8c884c | |||
| 1d10f5c75a | |||
|
|
4f590d12a7 | ||
|
|
e7222e93d8 | ||
|
|
4e57363b4a | ||
| 85e5061a02 | |||
|
|
c60119c369 | ||
|
|
311d234b5c | ||
|
|
708f135ec3 | ||
| cd084835f6 | |||
|
|
56437a88ea | ||
|
|
7796261deb | ||
|
|
b51edb246a | ||
|
|
70a95dfe5d | ||
| 9d0881e6d1 | |||
|
|
8b3523f645 |
@@ -77,7 +77,7 @@ function nextDetail(job) {
|
|||||||
const recordData = recommedIndexDb.JobParameter(job);
|
const recordData = recommedIndexDb.JobParameter(job);
|
||||||
recommedIndexDb.addRecord(recordData);
|
recommedIndexDb.addRecord(recordData);
|
||||||
}
|
}
|
||||||
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}`);
|
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}&encryptJobId=${encodeURIComponent(job.encryptJobId)}`);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ function nextDetail(job) {
|
|||||||
const recordData = recommedIndexDb.JobParameter(job);
|
const recordData = recommedIndexDb.JobParameter(job);
|
||||||
recommedIndexDb.addRecord(recordData);
|
recommedIndexDb.addRecord(recordData);
|
||||||
}
|
}
|
||||||
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}`);
|
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}&encryptJobId=${encodeURIComponent(job.encryptJobId)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleSelect(jobId) {
|
function toggleSelect(jobId) {
|
||||||
@@ -122,7 +122,7 @@ function handleCardClick(job, e) {
|
|||||||
const recordData = recommedIndexDb.JobParameter(job);
|
const recordData = recommedIndexDb.JobParameter(job);
|
||||||
recommedIndexDb.addRecord(recordData);
|
recommedIndexDb.addRecord(recordData);
|
||||||
}
|
}
|
||||||
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}`);
|
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}&encryptJobId=${encodeURIComponent(job.encryptJobId)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 新增:提供选中状态和切换方法给父组件
|
// 新增:提供选中状态和切换方法给父组件
|
||||||
|
|||||||
@@ -41,8 +41,8 @@ onReachBottom(() => {
|
|||||||
getJobList();
|
getJobList();
|
||||||
});
|
});
|
||||||
|
|
||||||
function navToPost(jobId) {
|
function navToPost(job) {
|
||||||
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(jobId)}`);
|
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}&encryptJobId=${encodeURIComponent(job.encryptJobId)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getJobList(type = 'add') {
|
function getJobList(type = 'add') {
|
||||||
|
|||||||
@@ -83,8 +83,8 @@ function toSelectDate() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function navToPost(jobId) {
|
function navToPost(job) {
|
||||||
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(jobId)}`);
|
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}&encryptJobId=${encodeURIComponent(job.encryptJobId)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
function searchCollection(e) {
|
function searchCollection(e) {
|
||||||
|
|||||||
@@ -47,8 +47,8 @@ onReachBottom(() => {
|
|||||||
getJobList();
|
getJobList();
|
||||||
});
|
});
|
||||||
|
|
||||||
function navToPost(jobId) {
|
function navToPost(job) {
|
||||||
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(jobId)}`);
|
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}&encryptJobId=${encodeURIComponent(job.encryptJobId)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getJobList(type = 'add') {
|
function getJobList(type = 'add') {
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<view style="display: flex; justify-content: center; padding: 0px 0">
|
<view style="display: flex; justify-content: center; padding: 0px 0">
|
||||||
<canvas canvas-id="radarCanvas" id="radarCanvas" style="width: 300px; height: 250px"></canvas>
|
<canvas canvas-id="radarCanvas" style="width: 600rpx; height: 500rpx"></canvas>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive, inject, watch, ref, onMounted, computed } from 'vue';
|
import { reactive, inject, watch, ref, onMounted, computed } from 'vue';
|
||||||
import { onLoad, onShow } from '@dcloudio/uni-app';
|
import { onReady } from '@dcloudio/uni-app';
|
||||||
// const src = ref('');
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
value: {
|
value: {
|
||||||
@@ -41,7 +40,7 @@ function getRadarData() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 监听页面初始化
|
// 监听页面初始化
|
||||||
onMounted(() => {
|
onReady(() => {
|
||||||
// 延迟执行,确保 canvas 已经渲染
|
// 延迟执行,确保 canvas 已经渲染
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const { labels, data } = getRadarData();
|
const { labels, data } = getRadarData();
|
||||||
@@ -66,12 +65,10 @@ watch(
|
|||||||
|
|
||||||
function rawRadarChart(labels, data) {
|
function rawRadarChart(labels, data) {
|
||||||
const ctx = uni.createCanvasContext('radarCanvas');
|
const ctx = uni.createCanvasContext('radarCanvas');
|
||||||
const width = 80;
|
const width = 150;
|
||||||
const height = 80;
|
const height = 125;
|
||||||
const centerX = 150;
|
const centerX = 300;
|
||||||
const centerY = 125;
|
const centerY = 250;
|
||||||
// const data = [2, 3.5, 5, 3.5, 5, 3.5]; // 示例数据
|
|
||||||
// const labels = ['火烧', '泡水', '事故', '外观', '部件', '火烧'];
|
|
||||||
const colors = ['#F5F5F5', '#F5F5F5', '#F5F5F5', '#F5F5F5', '#F5F5F5'];
|
const colors = ['#F5F5F5', '#F5F5F5', '#F5F5F5', '#F5F5F5', '#F5F5F5'];
|
||||||
const maxScore = 5; // 数据最大值
|
const maxScore = 5; // 数据最大值
|
||||||
|
|
||||||
@@ -89,7 +86,6 @@ function rawRadarChart(labels, data) {
|
|||||||
ctx.fill();
|
ctx.fill();
|
||||||
|
|
||||||
//多边形圈
|
//多边形圈
|
||||||
// 多边形圈
|
|
||||||
for (let i = 5; i > 0; i--) {
|
for (let i = 5; i > 0; i--) {
|
||||||
ctx.setStrokeStyle(colors[i - 1]); // 设置边框颜色
|
ctx.setStrokeStyle(colors[i - 1]); // 设置边框颜色
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
@@ -106,20 +102,14 @@ function rawRadarChart(labels, data) {
|
|||||||
ctx.stroke(); // 只描边,不填充
|
ctx.stroke(); // 只描边,不填充
|
||||||
}
|
}
|
||||||
|
|
||||||
// //竖线
|
// 绘制连接线
|
||||||
labels.forEach((label, index) => {
|
labels.forEach((label, index) => {
|
||||||
ctx.setStrokeStyle('#F5F5F5');
|
ctx.setStrokeStyle('#F5F5F5');
|
||||||
ctx.setFillStyle('#F5F5F5');
|
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
|
ctx.moveTo(centerX, centerY);
|
||||||
const x1 = centerX + width * 0.6 * Math.sin(angleStep * index);
|
const x = centerX + width * Math.cos(angleStep * index - Math.PI / 2);
|
||||||
const y1 = centerY + height * 0.6 * Math.cos(angleStep * index);
|
const y = centerY + height * Math.sin(angleStep * index - Math.PI / 2);
|
||||||
const x = centerX + width * Math.sin(angleStep * index);
|
|
||||||
const y = centerY + height * Math.cos(angleStep * index);
|
|
||||||
|
|
||||||
ctx.moveTo(x1, y1);
|
|
||||||
ctx.lineTo(x, y);
|
ctx.lineTo(x, y);
|
||||||
|
|
||||||
ctx.closePath();
|
ctx.closePath();
|
||||||
ctx.stroke();
|
ctx.stroke();
|
||||||
});
|
});
|
||||||
@@ -145,15 +135,16 @@ function rawRadarChart(labels, data) {
|
|||||||
ctx.stroke();
|
ctx.stroke();
|
||||||
|
|
||||||
// 绘制每个小圆点
|
// 绘制每个小圆点
|
||||||
ctx.setFillStyle('#256BFA'); // 小圆点颜色(你可以改)
|
ctx.setFillStyle('#256BFA'); // 小圆点颜色
|
||||||
pointList.forEach((point) => {
|
pointList.forEach((point) => {
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
ctx.arc(point.x, point.y, 4, 0, 2 * Math.PI); // 半径 4,可以自己调大小
|
ctx.arc(point.x, point.y, 4, 0, 2 * Math.PI); // 半径 4
|
||||||
ctx.fill();
|
ctx.fill();
|
||||||
});
|
});
|
||||||
|
|
||||||
// 绘制标签
|
// 绘制标签
|
||||||
ctx.setTextAlign('center');
|
ctx.setTextAlign('center');
|
||||||
|
ctx.setTextBaseline('middle');
|
||||||
|
|
||||||
labels.forEach((label, index) => {
|
labels.forEach((label, index) => {
|
||||||
const x = centerX + (width + 30) * Math.cos(angleStep * index - Math.PI / 2);
|
const x = centerX + (width + 30) * Math.cos(angleStep * index - Math.PI / 2);
|
||||||
@@ -162,33 +153,13 @@ function rawRadarChart(labels, data) {
|
|||||||
//标题
|
//标题
|
||||||
ctx.setFillStyle('#000');
|
ctx.setFillStyle('#000');
|
||||||
ctx.setFontSize(12);
|
ctx.setFontSize(12);
|
||||||
ctx.font = 'bold 12px sans-serif';
|
|
||||||
ctx.fillText(label, x, y);
|
ctx.fillText(label, x, y);
|
||||||
|
|
||||||
// ctx.setFillStyle('#A2A4A2');
|
|
||||||
// ctx.font = '12px sans-serif';
|
|
||||||
// ctx.setFontSize(12);
|
|
||||||
// ctx.fillText(data[index], x, y + 16);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
ctx.draw();
|
ctx.draw();
|
||||||
|
|
||||||
//转图片
|
|
||||||
|
|
||||||
// uni.canvasToTempFilePath({
|
|
||||||
// x: 0,
|
|
||||||
// y: 0,
|
|
||||||
// width: 320,
|
|
||||||
// height: 320,
|
|
||||||
// destWidth: 840,
|
|
||||||
// destHeight: 840,
|
|
||||||
// canvasId: 'radarCanvas',
|
|
||||||
// success: (res) => {
|
|
||||||
// // 在H5平台下,tempFilePath 为 base64
|
|
||||||
// src = res.tempFilePath;
|
|
||||||
// },
|
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style></style>
|
<style>
|
||||||
|
/* 确保canvas容器有足够的空间 */
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -60,6 +60,14 @@
|
|||||||
<view class="explain-right button-click" @click="seeExplain">点击查看</view>
|
<view class="explain-right button-click" @click="seeExplain">点击查看</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="content-card">
|
||||||
|
<view class="card-title">
|
||||||
|
<text class="title">工作地点</text>
|
||||||
|
</view>
|
||||||
|
<view class="description">
|
||||||
|
{{ jobInfo.jobAddress || jobInfo.jobLocation || '暂无地址信息' }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="content-card">
|
<view class="content-card">
|
||||||
<view class="card-title">
|
<view class="card-title">
|
||||||
<text class="title">职位描述</text>
|
<text class="title">职位描述</text>
|
||||||
@@ -90,7 +98,7 @@
|
|||||||
<view class="contact-label">联系人:</view>
|
<view class="contact-label">联系人:</view>
|
||||||
<view class="contact-value">{{ contact.contactPerson }}</view>
|
<view class="contact-value">{{ contact.contactPerson }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="contact-info">
|
<view class="contact-info" v-if="contact.position">
|
||||||
<view class="contact-label">职位:</view>
|
<view class="contact-label">职位:</view>
|
||||||
<view class="contact-value">{{ contact.position }}</view>
|
<view class="contact-value">{{ contact.position }}</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -127,6 +135,7 @@
|
|||||||
<span v-if="jobInfo.company?.industry"> </span>
|
<span v-if="jobInfo.company?.industry"> </span>
|
||||||
<dict-Label dictType="scale" :value="jobInfo.company?.scale"></dict-Label>
|
<dict-Label dictType="scale" :value="jobInfo.company?.scale"></dict-Label>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="row2">
|
<view class="row2">
|
||||||
<text>在招</text>
|
<text>在招</text>
|
||||||
<text style="color: #256bfa">{{ companyCount }}</text>
|
<text style="color: #256bfa">{{ companyCount }}</text>
|
||||||
@@ -143,7 +152,7 @@
|
|||||||
></map>
|
></map>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="content-card" v-if="currentUserType !== 0">
|
<view class="content-card jzlfx-card" v-if="currentUserType !== 0">
|
||||||
<view class="card-title">
|
<view class="card-title">
|
||||||
<text class="title">竞争力分析</text>
|
<text class="title">竞争力分析</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -262,6 +271,7 @@ const jobInfo = ref({});
|
|||||||
const state = reactive({});
|
const state = reactive({});
|
||||||
const mapCovers = ref([]);
|
const mapCovers = ref([]);
|
||||||
const jobIdRef = ref();
|
const jobIdRef = ref();
|
||||||
|
const jobId = ref();
|
||||||
// 竞争力分析数据,初始化为包含默认值的完整结构,确保雷达图能正常渲染
|
// 竞争力分析数据,初始化为包含默认值的完整结构,确保雷达图能正常渲染
|
||||||
const raderData = ref({
|
const raderData = ref({
|
||||||
matchScore: 0,
|
matchScore: 0,
|
||||||
@@ -284,7 +294,7 @@ const showConfirmDialog = ref(false);
|
|||||||
|
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
console.log(option, 'option');
|
console.log(option, 'option');
|
||||||
if (option.jobId) {
|
if (option.encryptJobId) {
|
||||||
initLoad(option);
|
initLoad(option);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -294,7 +304,7 @@ onShow(() => {
|
|||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
try {
|
try {
|
||||||
const option = parseQueryParams(); // 兼容微信内置浏览器
|
const option = parseQueryParams(); // 兼容微信内置浏览器
|
||||||
if (option.jobId) {
|
if (option.encryptJobId) {
|
||||||
initLoad(option);
|
initLoad(option);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@@ -303,10 +313,13 @@ onShow(() => {
|
|||||||
// #endif
|
// #endif
|
||||||
});
|
});
|
||||||
function initLoad(option) {
|
function initLoad(option) {
|
||||||
const jobId = decodeURIComponent(option.jobId);
|
const encryptJobId = decodeURIComponent(option.encryptJobId);
|
||||||
if (jobId !== jobIdRef.value) {
|
if (option.jobId) {
|
||||||
jobIdRef.value = jobId;
|
jobId.value = decodeURIComponent(option.jobId);
|
||||||
getDetail(jobId);
|
}
|
||||||
|
if (encryptJobId !== jobIdRef.value) {
|
||||||
|
jobIdRef.value = encryptJobId;
|
||||||
|
getDetail(encryptJobId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -318,17 +331,17 @@ function seeExplain() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDetail(jobId) {
|
function getDetail(encryptJobId) {
|
||||||
return new Promise((reslove, reject) => {
|
return new Promise((reslove, reject) => {
|
||||||
$api.createRequest(`/app/job/${jobId}`).then((resData) => {
|
$api.createRequest(`/app/job/${encryptJobId}`).then((resData) => {
|
||||||
const { latitude, longitude, companyName, companyId } = resData.data;
|
const { latitude, longitude, companyName, companyId } = resData.data;
|
||||||
jobInfo.value = resData.data;
|
jobInfo.value = resData.data;
|
||||||
reslove(resData.data);
|
reslove(resData.data);
|
||||||
getCompanyIsAJobs(companyId);
|
getCompanyIsAJobs(companyId);
|
||||||
if (currentUserType.value !== 0) {
|
if (currentUserType.value !== 0) {
|
||||||
getCompetivetuveness(jobId);
|
getCompetivetuveness(encryptJobId);
|
||||||
}
|
}
|
||||||
// getCompetivetuveness(jobId);
|
// getCompetivetuveness(encryptJobId);
|
||||||
if (latitude && longitude) {
|
if (latitude && longitude) {
|
||||||
mapCovers.value = [
|
mapCovers.value = [
|
||||||
{
|
{
|
||||||
@@ -370,8 +383,8 @@ function getTextWidth(text, size = 12) {
|
|||||||
return -(estimatedWidth / 2) - 20; // 计算文字中心点
|
return -(estimatedWidth / 2) - 20; // 计算文字中心点
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCompetivetuveness(jobId) {
|
function getCompetivetuveness(encryptJobId) {
|
||||||
$api.createRequest(`/app/job/competitiveness/${jobId}`, {}, 'GET').then((resData) => {
|
$api.createRequest(`/app/job/competitiveness/${encryptJobId}`, {}, 'GET').then((resData) => {
|
||||||
// 如果接口返回的数据为 null 或空,使用默认值0
|
// 如果接口返回的数据为 null 或空,使用默认值0
|
||||||
if (resData && resData.data) {
|
if (resData && resData.data) {
|
||||||
// 确保 radarChart 字段存在,如果不存在则使用默认值
|
// 确保 radarChart 字段存在,如果不存在则使用默认值
|
||||||
@@ -446,19 +459,20 @@ function hideDialog() {
|
|||||||
|
|
||||||
// 确认操作
|
// 确认操作
|
||||||
function confirmAction() {
|
function confirmAction() {
|
||||||
const jobId = jobInfo.value.jobId;
|
const encryptJobId = jobIdRef.value;
|
||||||
if (jobInfo.value.isApply === 1) {
|
if (jobInfo.value.isApply === 1) {
|
||||||
// 取消投递
|
// 取消投递
|
||||||
$api.createRequest(`/app/job/applyJobCencal`, { jobId }, 'DELETE').then((resData) => {
|
const cancelJobId = jobId.value || jobInfo.value.jobId;
|
||||||
|
$api.createRequest(`/app/job/applyJobCencal`, { jobId: cancelJobId }, 'DELETE').then((resData) => {
|
||||||
$api.msg('取消投递成功');
|
$api.msg('取消投递成功');
|
||||||
getDetail(jobId); // 刷新职位信息
|
getDetail(encryptJobId); // 刷新职位信息
|
||||||
showConfirmDialog.value = false;
|
showConfirmDialog.value = false;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// 确认投递
|
// 确认投递
|
||||||
$api.createRequest(`/app/job/apply/${jobId}`, {}, 'GET').then((resData) => {
|
$api.createRequest(`/app/job/apply/${encryptJobId}`, {}, 'GET').then((resData) => {
|
||||||
$api.msg('申请成功');
|
$api.msg('申请成功');
|
||||||
getDetail(jobId); // 刷新职位信息
|
getDetail(encryptJobId); // 刷新职位信息
|
||||||
showConfirmDialog.value = false;
|
showConfirmDialog.value = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -466,8 +480,8 @@ function confirmAction() {
|
|||||||
|
|
||||||
// 确认投递
|
// 确认投递
|
||||||
function confirmApply() {
|
function confirmApply() {
|
||||||
const jobId = jobInfo.value.jobId;
|
const encryptJobId = jobIdRef.value;
|
||||||
$api.createRequest(`/app/job/apply/${jobId}`, {}, 'GET').then((resData) => {
|
$api.createRequest(`/app/job/apply/${encryptJobId}`, {}, 'GET').then((resData) => {
|
||||||
$api.msg('申请成功');
|
$api.msg('申请成功');
|
||||||
const jobUrl = jobInfo.value.jobUrl;
|
const jobUrl = jobInfo.value.jobUrl;
|
||||||
// return window.open(jobUrl);
|
// return window.open(jobUrl);
|
||||||
@@ -477,8 +491,8 @@ function confirmApply() {
|
|||||||
|
|
||||||
// 取消投递
|
// 取消投递
|
||||||
function cancelApply() {
|
function cancelApply() {
|
||||||
const jobId = jobInfo.value.jobId;
|
const cancelJobId = jobId.value || jobInfo.value.jobId;
|
||||||
$api.createRequest(`/app/job/applyJobCencal`, { jobId }, 'DELETE').then((resData) => {
|
$api.createRequest(`/app/job/applyJobCencal`, { jobId: cancelJobId }, 'DELETE').then((resData) => {
|
||||||
$api.msg('取消投递成功');
|
$api.msg('取消投递成功');
|
||||||
showConfirmDialog.value = false;
|
showConfirmDialog.value = false;
|
||||||
});
|
});
|
||||||
@@ -486,15 +500,15 @@ function cancelApply() {
|
|||||||
|
|
||||||
// 取消/收藏岗位
|
// 取消/收藏岗位
|
||||||
function jobCollection() {
|
function jobCollection() {
|
||||||
const jobId = jobInfo.value.jobId;
|
const encryptJobId = jobIdRef.value;
|
||||||
if (jobInfo.value.isCollection) {
|
if (jobInfo.value.isCollection) {
|
||||||
$api.createRequest(`/app/job/collection/${jobId}`, {}, 'DELETE').then((resData) => {
|
$api.createRequest(`/app/job/collection/${encryptJobId}`, {}, 'DELETE').then((resData) => {
|
||||||
getDetail(jobId);
|
getDetail(encryptJobId);
|
||||||
$api.msg('取消收藏成功');
|
$api.msg('取消收藏成功');
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$api.createRequest(`/app/job/collection/${jobId}`, {}, 'POST').then((resData) => {
|
$api.createRequest(`/app/job/collection/${encryptJobId}`, {}, 'POST').then((resData) => {
|
||||||
getDetail(jobId);
|
getDetail(encryptJobId);
|
||||||
$api.msg('收藏成功');
|
$api.msg('收藏成功');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -774,9 +788,9 @@ for i in 0..100
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.content{
|
.content{
|
||||||
padding: 0 28rpx
|
|
||||||
height: 100%
|
height: 100%
|
||||||
padding-top: 28rpx
|
padding-top: 28rpx
|
||||||
|
padding-bottom: 28rpx
|
||||||
.content-top{
|
.content-top{
|
||||||
box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(0,0,0,0.04);
|
box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(0,0,0,0.04);
|
||||||
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
||||||
@@ -825,7 +839,19 @@ for i in 0..100
|
|||||||
color: #64779F;
|
color: #64779F;
|
||||||
border-bottom-left-radius: 20rpx
|
border-bottom-left-radius: 20rpx
|
||||||
}
|
}
|
||||||
|
.publish-time{
|
||||||
|
margin-top: 20rpx
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999999;
|
||||||
|
text-align: right
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
/* #ifdef H5 */
|
||||||
|
.jzlfx-card{
|
||||||
|
padding-bottom: 90rpx!important;
|
||||||
|
}
|
||||||
|
/* #endif */
|
||||||
.content-card{
|
.content-card{
|
||||||
padding: 24rpx
|
padding: 24rpx
|
||||||
margin-top: 28rpx
|
margin-top: 28rpx
|
||||||
|
|||||||
@@ -1,18 +1,64 @@
|
|||||||
<template>
|
<template>
|
||||||
<AppLayout title="" :use-scroll-view="false">
|
<AppLayout title="" :use-scroll-view="false">
|
||||||
<view class="wrap">
|
<view class="login-container">
|
||||||
<view class="login_index">
|
<!-- 顶部装饰 -->
|
||||||
<input class="input" placeholder="请输入账号" placeholder-class="inputplace" v-model="form.username" />
|
<view class="header-decoration">
|
||||||
<view class="login_yzm">
|
<view class="decoration-circle circle-1"></view>
|
||||||
<input class="input" type="password" placeholder="请输入密码" placeholder-class="inputplace"
|
<view class="decoration-circle circle-2"></view>
|
||||||
v-model="form.password" />
|
</view>
|
||||||
|
|
||||||
|
<!-- Logo区域 -->
|
||||||
|
<view class="logo-section">
|
||||||
|
<view class="logo-wrapper">
|
||||||
|
<text class="logo-icon">✦</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="login_yzm">
|
<text class="logo-title">欢迎回来</text>
|
||||||
<input class="input" placeholder="请输入验证码" placeholder-class="inputplace" v-model="form.code" />
|
<text class="logo-subtitle">请登录您的账号</text>
|
||||||
<image class="yzm" :src="codeUrl" @click="getCodeImg"></image>
|
</view>
|
||||||
|
|
||||||
|
<!-- 登录表单 -->
|
||||||
|
<view class="form-section">
|
||||||
|
<view class="form-item">
|
||||||
|
<view class="form-label">账号</view>
|
||||||
|
<view class="input-wrapper">
|
||||||
|
<text class="input-icon">👤</text>
|
||||||
|
<input class="form-input" placeholder="请输入账号" placeholder-class="inputplace" v-model="form.username" />
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<button class="com-btn" @click="register">登 录</button>
|
<view class="form-item">
|
||||||
|
<view class="form-label">密码</view>
|
||||||
|
<view class="input-wrapper">
|
||||||
|
<text class="input-icon">🔒</text>
|
||||||
|
<input class="form-input" type="password" placeholder="请输入密码" placeholder-class="inputplace" v-model="form.password" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="form-item">
|
||||||
|
<view class="form-label">验证码</view>
|
||||||
|
<view class="input-wrapper verify-wrapper">
|
||||||
|
<text class="input-icon">✧</text>
|
||||||
|
<input class="form-input verify-input" placeholder="请输入验证码" placeholder-class="inputplace" v-model="form.code" />
|
||||||
|
<image class="verify-code" :src="codeUrl" @click="getCodeImg"></image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 登录按钮 -->
|
||||||
|
<view class="button-section">
|
||||||
|
<button class="login-btn" @click="register">
|
||||||
|
<text class="btn-text">登 录</text>
|
||||||
|
<text class="btn-arrow">→</text>
|
||||||
|
</button>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 底部装饰 -->
|
||||||
|
<view class="footer-decoration">
|
||||||
|
<view class="decoration-dots">
|
||||||
|
<view class="dot"></view>
|
||||||
|
<view class="dot dot-active"></view>
|
||||||
|
<view class="dot"></view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</AppLayout>
|
</AppLayout>
|
||||||
@@ -49,15 +95,12 @@
|
|||||||
code: '',
|
code: '',
|
||||||
uuid: ''
|
uuid: ''
|
||||||
})
|
})
|
||||||
const jumpUrl=ref('')
|
|
||||||
onLoad((option) => {
|
onLoad((option) => {
|
||||||
console.log("111",option)
|
console.log("111")
|
||||||
if(option.flag){
|
if(option.flag){
|
||||||
flag.value=option.flag
|
flag.value=option.flag
|
||||||
}
|
}
|
||||||
if(option.jump){
|
|
||||||
jumpUrl.value=option.jump
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
@@ -142,13 +185,11 @@
|
|||||||
})
|
})
|
||||||
}else if(flag.value=='nw'){
|
}else if(flag.value=='nw'){
|
||||||
$api.myRequest('/auth/login',form,'post',9100).then((res) => {
|
$api.myRequest('/auth/login',form,'post',9100).then((res) => {
|
||||||
uni.setStorageSync('Padmin-Token', res.data.access_token)
|
uni.setStorageSync('inspur-admin-Token', res.data.access_token)
|
||||||
// 临时修改,现在有多个跳转页面
|
uni.setStorageSync('fourLevelLinkage-token', res.data.access_token)
|
||||||
// uni.reLaunch({
|
|
||||||
// url: '/packageB/priority/helpFilter'
|
|
||||||
// })
|
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url:jumpUrl.value
|
url: '/packageB/priority/helpFilter'
|
||||||
})
|
})
|
||||||
codeUrl.value = 'data:image/gif;base64,' + res.img
|
codeUrl.value = 'data:image/gif;base64,' + res.img
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
@@ -179,130 +220,220 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="stylus">
|
<style scoped lang="stylus">
|
||||||
.wrap {
|
/* 主题色变量 */
|
||||||
background-color: #ffffff;
|
$primary-color = #46ca98
|
||||||
height: 100vh;
|
$primary-light = #e8f8f0
|
||||||
position: relative;
|
$primary-dark = #3ab882
|
||||||
|
$text-primary = #1a1a1a
|
||||||
|
$text-secondary = #666666
|
||||||
|
$text-placeholder = #b5b5b5
|
||||||
|
$bg-light = #f8faf9
|
||||||
|
$border-color = #e8e8e8
|
||||||
|
|
||||||
.lg-head {
|
.login-container
|
||||||
height: 480rpx;
|
background: linear-gradient(180deg, #f8faf9 0%, #ffffff 100%)
|
||||||
background: #46ca98;
|
min-height: 100vh
|
||||||
position: relative;
|
display: flex
|
||||||
|
flex-direction: column
|
||||||
|
align-items: center
|
||||||
|
position: relative
|
||||||
|
overflow: hidden
|
||||||
|
|
||||||
.view_logo {
|
/* 顶部装饰 */
|
||||||
text-align: center;
|
.header-decoration
|
||||||
|
position: absolute
|
||||||
|
top: 0
|
||||||
|
left: 0
|
||||||
|
right: 0
|
||||||
|
height: 400rpx
|
||||||
|
pointer-events: none
|
||||||
|
|
||||||
.login_logo {
|
.decoration-circle
|
||||||
width: 300rpx;
|
position: absolute
|
||||||
height: 300rpx;
|
border-radius: 50%
|
||||||
margin-top: 100rpx;
|
background: linear-gradient(135deg, rgba(70, 202, 152, 0.1) 0%, rgba(70, 202, 152, 0.05) 100%)
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.bg-cover {
|
.circle-1
|
||||||
position: absolute;
|
width: 300rpx
|
||||||
bottom: -4rpx;
|
height: 300rpx
|
||||||
left: 0;
|
top: -100rpx
|
||||||
right: 0;
|
right: -80rpx
|
||||||
height: 30rpx;
|
|
||||||
background-size: 100% 100%;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.login_index {
|
.circle-2
|
||||||
font-size: 36rpx;
|
width: 200rpx
|
||||||
font-weight: 500;
|
height: 200rpx
|
||||||
width: 596rpx;
|
top: 60rpx
|
||||||
margin: 0 auto;
|
left: -60rpx
|
||||||
|
background: linear-gradient(135deg, rgba(70, 202, 152, 0.08) 0%, rgba(70, 202, 152, 0.02) 100%)
|
||||||
|
|
||||||
::v-deep .is-input-border {
|
/* Logo区域 */
|
||||||
border: 0;
|
.logo-section
|
||||||
border-bottom: 1px solid #dcdfe6 !important;
|
margin-top: 160rpx
|
||||||
border-radius: 0;
|
display: flex
|
||||||
}
|
flex-direction: column
|
||||||
|
align-items: center
|
||||||
|
animation: fadeInUp 0.6s ease-out
|
||||||
|
|
||||||
::v-deep .uni-input-input {
|
.logo-wrapper
|
||||||
font-size: 32rpx;
|
width: 140rpx
|
||||||
padding-left: 10rpx;
|
height: 140rpx
|
||||||
}
|
background: linear-gradient(145deg, $primary-color 0%, $primary-dark 100%)
|
||||||
|
border-radius: 36rpx
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
justify-content: center
|
||||||
|
box-shadow: 0 16rpx 40rpx rgba(70, 202, 152, 0.3)
|
||||||
|
margin-bottom: 40rpx
|
||||||
|
|
||||||
::v-deep .uniui-contact-filled:before {
|
.logo-icon
|
||||||
color: #46ca98;
|
font-size: 60rpx
|
||||||
font-size: 50rpx;
|
color: #ffffff
|
||||||
}
|
|
||||||
|
|
||||||
::v-deep .uniui-locked-filled:before {
|
.logo-title
|
||||||
color: #46ca98;
|
font-size: 48rpx
|
||||||
font-size: 50rpx;
|
font-weight: 600
|
||||||
}
|
color: $text-primary
|
||||||
|
letter-spacing: 2rpx
|
||||||
|
margin-bottom: 12rpx
|
||||||
|
|
||||||
.login_yzm {
|
.logo-subtitle
|
||||||
margin-top: 40rpx;
|
font-size: 28rpx
|
||||||
display: flex;
|
color: $text-secondary
|
||||||
align-items: center;
|
letter-spacing: 1rpx
|
||||||
|
|
||||||
.yzm {
|
/* 表单区域 */
|
||||||
width: 200rpx;
|
.form-section
|
||||||
height: 80rpx;
|
width: 600rpx
|
||||||
}
|
margin-top: 80rpx
|
||||||
}
|
animation: fadeInUp 0.6s ease-out 0.15s backwards
|
||||||
|
|
||||||
.com-btn {
|
.form-item
|
||||||
height: 100rpx;
|
margin-bottom: 40rpx
|
||||||
background: #46ca98;
|
|
||||||
border-radius: 50rpx;
|
|
||||||
color: #fff;
|
|
||||||
margin-top: 100rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login_wt {
|
.form-label
|
||||||
margin: 0 auto;
|
font-size: 26rpx
|
||||||
text-align: right;
|
color: $text-secondary
|
||||||
font-size: 24rpx;
|
margin-bottom: 16rpx
|
||||||
color: rgba(134, 134, 136, 1);
|
padding-left: 8rpx
|
||||||
}
|
letter-spacing: 1rpx
|
||||||
}
|
|
||||||
|
|
||||||
.lg-bottom {
|
.input-wrapper
|
||||||
position: absolute;
|
display: flex
|
||||||
bottom: -3px;
|
align-items: center
|
||||||
left: 0;
|
background: #ffffff
|
||||||
width: 100%;
|
border-radius: 24rpx
|
||||||
|
padding: 0 32rpx
|
||||||
|
height: 100rpx
|
||||||
|
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.04)
|
||||||
|
border: 2rpx solid transparent
|
||||||
|
transition: all 0.3s ease
|
||||||
|
|
||||||
.bottom-svg {
|
&:focus-within
|
||||||
position: absolute;
|
border-color: $primary-color
|
||||||
bottom: -3px;
|
box-shadow: 0 4rpx 24rpx rgba(70, 202, 152, 0.15)
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.login_tongyi {
|
.input-icon
|
||||||
|
font-size: 36rpx
|
||||||
|
margin-right: 20rpx
|
||||||
|
opacity: 0.7
|
||||||
|
|
||||||
font-size: 26rpx;
|
.form-input
|
||||||
color: rgba(196, 196, 196, 1);
|
flex: 1
|
||||||
width: 620rpx;
|
height: 100%
|
||||||
margin: 32rpx auto;
|
font-size: 30rpx
|
||||||
text-align: center;
|
color: $text-primary
|
||||||
|
|
||||||
text {
|
.verify-wrapper
|
||||||
color: rgba(86, 176, 236, 1);
|
padding-right: 16rpx
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.input {
|
.verify-input
|
||||||
padding: 0 30rpx 0 80rpx;
|
flex: 1
|
||||||
height: 80rpx;
|
|
||||||
background: #FFFFFF;
|
|
||||||
border-radius: 75rpx 75rpx 75rpx 75rpx;
|
|
||||||
font-size: 28rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.inputplace {
|
.verify-code
|
||||||
font-weight: 400;
|
width: 180rpx
|
||||||
font-size: 28rpx;
|
height: 72rpx
|
||||||
color: #B5B5B5;
|
border-radius: 16rpx
|
||||||
}
|
margin-left: 16rpx
|
||||||
|
cursor: pointer
|
||||||
|
transition: transform 0.2s ease
|
||||||
|
|
||||||
|
&:active
|
||||||
|
transform: scale(0.95)
|
||||||
|
|
||||||
|
/* 输入框占位符 */
|
||||||
|
.inputplace
|
||||||
|
font-weight: 400
|
||||||
|
font-size: 28rpx
|
||||||
|
color: $text-placeholder
|
||||||
|
|
||||||
|
/* 按钮区域 */
|
||||||
|
.button-section
|
||||||
|
width: 600rpx
|
||||||
|
margin-top: 60rpx
|
||||||
|
animation: fadeInUp 0.6s ease-out 0.3s backwards
|
||||||
|
|
||||||
|
.login-btn
|
||||||
|
width: 100%
|
||||||
|
height: 108rpx
|
||||||
|
background: linear-gradient(135deg, $primary-color 0%, $primary-dark 100%)
|
||||||
|
border-radius: 54rpx
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
justify-content: center
|
||||||
|
box-shadow: 0 12rpx 32rpx rgba(70, 202, 152, 0.35)
|
||||||
|
transition: all 0.3s ease
|
||||||
|
border: none
|
||||||
|
|
||||||
|
&:active
|
||||||
|
transform: translateY(2rpx)
|
||||||
|
box-shadow: 0 8rpx 24rpx rgba(70, 202, 152, 0.3)
|
||||||
|
|
||||||
|
.btn-text
|
||||||
|
font-size: 34rpx
|
||||||
|
font-weight: 500
|
||||||
|
color: #ffffff
|
||||||
|
letter-spacing: 8rpx
|
||||||
|
|
||||||
|
.btn-arrow
|
||||||
|
font-size: 32rpx
|
||||||
|
color: #ffffff
|
||||||
|
margin-left: 16rpx
|
||||||
|
transition: transform 0.3s ease
|
||||||
|
|
||||||
|
.login-btn:active .btn-arrow
|
||||||
|
transform: translateX(8rpx)
|
||||||
|
|
||||||
|
/* 底部装饰 */
|
||||||
|
.footer-decoration
|
||||||
|
position: absolute
|
||||||
|
bottom: 60rpx
|
||||||
|
display: flex
|
||||||
|
flex-direction: column
|
||||||
|
align-items: center
|
||||||
|
animation: fadeInUp 0.6s ease-out 0.45s backwards
|
||||||
|
|
||||||
|
.decoration-dots
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
gap: 16rpx
|
||||||
|
|
||||||
|
.dot
|
||||||
|
width: 12rpx
|
||||||
|
height: 12rpx
|
||||||
|
border-radius: 50%
|
||||||
|
background: rgba(70, 202, 152, 0.3)
|
||||||
|
|
||||||
|
.dot-active
|
||||||
|
width: 36rpx
|
||||||
|
border-radius: 6rpx
|
||||||
|
background: $primary-color
|
||||||
|
|
||||||
|
/* 动画 */
|
||||||
|
@keyframes fadeInUp
|
||||||
|
from
|
||||||
|
opacity: 0
|
||||||
|
transform: translateY(30rpx)
|
||||||
|
to
|
||||||
|
opacity: 1
|
||||||
|
transform: translateY(0)
|
||||||
</style>
|
</style>
|
||||||
@@ -42,7 +42,7 @@ import { inject, ref, reactive, onMounted } from "vue";
|
|||||||
const { $api, navTo, navBack, vacanciesTo } = inject("globalFunction");
|
const { $api, navTo, navBack, vacanciesTo } = inject("globalFunction");
|
||||||
import config from "@/config.js";
|
import config from "@/config.js";
|
||||||
import AppLayout from "@/components/AppLayout/AppLayout.vue";
|
import AppLayout from "@/components/AppLayout/AppLayout.vue";
|
||||||
import CryptoJS from 'crypto-js'
|
// import CryptoJS from 'crypto-js'
|
||||||
|
|
||||||
|
|
||||||
const title = ref("");
|
const title = ref("");
|
||||||
|
|||||||
@@ -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" @click="goRecommend(item)">智能推荐</button>
|
<!-- <button class="mini-btn form-box-btn recommend-btn" size="mini" @click="goRecommend(item)">智能推荐</button> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -267,7 +267,7 @@ function getTaskTypeLabelByValue(value) {
|
|||||||
// 加载某一级的数据(parentId 为空表示根)
|
// 加载某一级的数据(parentId 为空表示根)
|
||||||
async function loadLevelData(parentId,node) {
|
async function loadLevelData(parentId,node) {
|
||||||
let header = {
|
let header = {
|
||||||
'Authorization': uni.getStorageSync('fourLevelLinkage-token'),
|
'Authorization': 'Bearer ' + uni.getStorageSync('fourLevelLinkage-token'),
|
||||||
'Content-Type': "application/x-www-form-urlencoded"
|
'Content-Type': "application/x-www-form-urlencoded"
|
||||||
};
|
};
|
||||||
let params = { parentId };
|
let params = { parentId };
|
||||||
@@ -384,7 +384,7 @@ 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}&goal_person_id=${item.goal_person_id}&name=${item.name}&&taskType=${getTaskTypeLabelByValue(item.task_type)}`);
|
||||||
}
|
}
|
||||||
//智能推荐
|
//智能推荐
|
||||||
const goRecommend = (item) => {
|
const goRecommend = (item) => {
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ const onDateChange = ( e) => {
|
|||||||
}
|
}
|
||||||
function getFollowList(){
|
function getFollowList(){
|
||||||
let header={
|
let header={
|
||||||
'Authorization':uni.getStorageSync('fourLevelLinkage-token'),
|
'Authorization':'Bearer ' + uni.getStorageSync('fourLevelLinkage-token'),
|
||||||
'Content-Type': "application/x-www-form-urlencoded"
|
'Content-Type': "application/x-www-form-urlencoded"
|
||||||
}
|
}
|
||||||
let params={
|
let params={
|
||||||
@@ -211,13 +211,14 @@ const handleSubmit = () => {
|
|||||||
formRef.value?.validate()
|
formRef.value?.validate()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
let header={
|
let header={
|
||||||
'Authorization':uni.getStorageSync('fourLevelLinkage-token')
|
'Authorization':'Bearer ' + uni.getStorageSync('fourLevelLinkage-token')
|
||||||
}
|
}
|
||||||
formData.goalPersonId=personInfo.value.goalPersonId
|
formData.goalPersonId=personInfo.value.goalPersonId
|
||||||
$api.myRequest('/dispatch/assist/records/addRecords', formData,'post',9100,header).then((resData) => {
|
$api.myRequest('/dispatch/assist/records/addRecords', formData,'post',9100,header).then((resData) => {
|
||||||
console.log("resData",resData)
|
console.log("resData",resData)
|
||||||
if(resData && resData.code == 200){
|
if(resData && resData.code == 200){
|
||||||
handleReset()
|
handleReset()
|
||||||
|
getFollowList()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '保存成功',
|
title: '保存成功',
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
@@ -247,6 +248,8 @@ const handleReset = () => {
|
|||||||
formData.nextContactDate = '';
|
formData.nextContactDate = '';
|
||||||
}
|
}
|
||||||
onLoad((options) => {
|
onLoad((options) => {
|
||||||
|
console.log(options)
|
||||||
|
personInfo.value.goalPersonId=options.goal_person_id
|
||||||
personInfo.value.person_id=options.person_id
|
personInfo.value.person_id=options.person_id
|
||||||
personInfo.value.name=options.name
|
personInfo.value.name=options.name
|
||||||
personInfo.value.taskType=options.taskType
|
personInfo.value.taskType=options.taskType
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ import { onLoad, onShow } from '@dcloudio/uni-app';
|
|||||||
const { $api, navTo, vacanciesTo, formatTotal, config } = inject('globalFunction');
|
const { $api, navTo, vacanciesTo, formatTotal, config } = inject('globalFunction');
|
||||||
import useUserStore from '@/stores/useUserStore';
|
import useUserStore from '@/stores/useUserStore';
|
||||||
import useDictStore from '@/stores/useDictStore';
|
import useDictStore from '@/stores/useDictStore';
|
||||||
import CryptoJS from 'crypto-js'
|
// import CryptoJS from 'crypto-js'
|
||||||
|
|
||||||
onLoad(() => {
|
onLoad(() => {
|
||||||
// thirdLogin()
|
// thirdLogin()
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ import { onLoad, onShow } from '@dcloudio/uni-app';
|
|||||||
const { $api, navTo, vacanciesTo, formatTotal, config } = inject('globalFunction');
|
const { $api, navTo, vacanciesTo, formatTotal, config } = inject('globalFunction');
|
||||||
import useUserStore from '@/stores/useUserStore';
|
import useUserStore from '@/stores/useUserStore';
|
||||||
import useDictStore from '@/stores/useDictStore';
|
import useDictStore from '@/stores/useDictStore';
|
||||||
import CryptoJS from 'crypto-js'
|
// import CryptoJS from 'crypto-js'
|
||||||
|
|
||||||
onLoad(() => {
|
onLoad(() => {
|
||||||
thirdLogin()
|
thirdLogin()
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ import { inject, ref, reactive } from 'vue';
|
|||||||
import { onLoad } from '@dcloudio/uni-app';
|
import { onLoad } from '@dcloudio/uni-app';
|
||||||
const { $api, navTo, navBack } = inject('globalFunction');
|
const { $api, navTo, navBack } = inject('globalFunction');
|
||||||
import config from "@/config.js"
|
import config from "@/config.js"
|
||||||
import CryptoJS from 'crypto-js'
|
// import CryptoJS from 'crypto-js'
|
||||||
|
|
||||||
// state
|
// state
|
||||||
const title = ref('');
|
const title = ref('');
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ import { inject, ref, reactive } from 'vue';
|
|||||||
import { onLoad } from '@dcloudio/uni-app';
|
import { onLoad } from '@dcloudio/uni-app';
|
||||||
const { $api, navTo, navBack } = inject('globalFunction');
|
const { $api, navTo, navBack } = inject('globalFunction');
|
||||||
import config from "@/config.js"
|
import config from "@/config.js"
|
||||||
import CryptoJS from 'crypto-js'
|
// import CryptoJS from 'crypto-js'
|
||||||
|
|
||||||
// state
|
// state
|
||||||
const title = ref('');
|
const title = ref('');
|
||||||
|
|||||||
@@ -10,6 +10,12 @@ api.queryAIUrl = (idCard,name) => request.globalRequest(`/Home/QueryAIUrl?userId
|
|||||||
// 获取个人档案
|
// 获取个人档案
|
||||||
api.queryStudentProfile = () => request.globalRequest(`/StudentResource/QueryStudentProfile`,'GET', {})
|
api.queryStudentProfile = () => request.globalRequest(`/StudentResource/QueryStudentProfile`,'GET', {})
|
||||||
|
|
||||||
|
// 保存操作日志
|
||||||
|
api.saveUserOperationLog = (data) => request.globalRequest(`/UserOperationLog/SaveUserOperationLog`,'POST', data)
|
||||||
|
|
||||||
|
// 获取操作日志
|
||||||
|
api.getUserOperationLogList = (data) => request.globalRequest(`/UserOperationLog/GetUserOperationLogList`,'POST', data)
|
||||||
|
|
||||||
|
|
||||||
export default api
|
export default api
|
||||||
|
|
||||||
|
|||||||
@@ -53,6 +53,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import api from "@/packageCa/apiCa/testManage.js"
|
import api from "@/packageCa/apiCa/testManage.js"
|
||||||
|
import apiuser from "@/packageCa/apiCa/user.js"
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -179,6 +180,27 @@
|
|||||||
}, 300)
|
}, 300)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 添加日志
|
||||||
|
postLog(operationType, remarks, beforeData = "", afterData = ""){
|
||||||
|
try {
|
||||||
|
const data = {
|
||||||
|
OperationType: operationType,
|
||||||
|
Remarks: remarks,
|
||||||
|
BeforeOperationJson: beforeData,
|
||||||
|
AfterOperationJson: afterData
|
||||||
|
};
|
||||||
|
console.log(data);
|
||||||
|
// return;
|
||||||
|
// 异步记录日志,不阻塞主流程
|
||||||
|
apiuser.saveUserOperationLog(data).then((res) => {
|
||||||
|
console.log('[Operation Log] 记录成功', res);
|
||||||
|
}).catch((err) => {
|
||||||
|
console.error('[Operation Log] 记录失败', err);
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
console.error('[Operation Log] 记录异常', e);
|
||||||
|
}
|
||||||
|
},
|
||||||
// 提交题目
|
// 提交题目
|
||||||
submitTitle() {
|
submitTitle() {
|
||||||
let testStr = "";
|
let testStr = "";
|
||||||
@@ -250,7 +272,11 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
this.postLog(201,`【新增】保存${this.testTitle}`,"",JSON.stringify({
|
||||||
|
TestType: this.testType,
|
||||||
|
TestStr: testStr
|
||||||
|
}))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -61,6 +61,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import api from "@/packageCa/apiCa/testManage.js"
|
import api from "@/packageCa/apiCa/testManage.js"
|
||||||
|
import apiuser from "@/packageCa/apiCa/user.js"
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -249,6 +250,27 @@
|
|||||||
},400)
|
},400)
|
||||||
|
|
||||||
},
|
},
|
||||||
|
// 添加日志
|
||||||
|
postLog(operationType, remarks, beforeData = "", afterData = ""){
|
||||||
|
try {
|
||||||
|
const data = {
|
||||||
|
OperationType: operationType,
|
||||||
|
Remarks: remarks,
|
||||||
|
BeforeOperationJson: beforeData,
|
||||||
|
AfterOperationJson: afterData
|
||||||
|
};
|
||||||
|
console.log(data);
|
||||||
|
// return;
|
||||||
|
// 异步记录日志,不阻塞主流程
|
||||||
|
apiuser.saveUserOperationLog(data).then((res) => {
|
||||||
|
console.log('[Operation Log] 记录成功', res);
|
||||||
|
}).catch((err) => {
|
||||||
|
console.error('[Operation Log] 记录失败', err);
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
console.error('[Operation Log] 记录异常', e);
|
||||||
|
}
|
||||||
|
},
|
||||||
// 提交题目
|
// 提交题目
|
||||||
submitTitle() {
|
submitTitle() {
|
||||||
let testStr = "";
|
let testStr = "";
|
||||||
@@ -282,6 +304,10 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
this.postLog(201,`【新增】保存职业兴趣测评`,"",JSON.stringify({
|
||||||
|
TestType: 11,
|
||||||
|
TestStr: testStr
|
||||||
|
}))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import api from "@/packageCa/apiCa/testManage.js"
|
import api from "@/packageCa/apiCa/testManage.js"
|
||||||
|
import apiuser from "@/packageCa/apiCa/user.js"
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -142,6 +143,27 @@
|
|||||||
},400)
|
},400)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 添加日志
|
||||||
|
postLog(operationType, remarks, beforeData = "", afterData = ""){
|
||||||
|
try {
|
||||||
|
const data = {
|
||||||
|
OperationType: operationType,
|
||||||
|
Remarks: remarks,
|
||||||
|
BeforeOperationJson: beforeData,
|
||||||
|
AfterOperationJson: afterData
|
||||||
|
};
|
||||||
|
console.log(data);
|
||||||
|
// return;
|
||||||
|
// 异步记录日志,不阻塞主流程
|
||||||
|
apiuser.saveUserOperationLog(data).then((res) => {
|
||||||
|
console.log('[Operation Log] 记录成功', res);
|
||||||
|
}).catch((err) => {
|
||||||
|
console.error('[Operation Log] 记录失败', err);
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
console.error('[Operation Log] 记录异常', e);
|
||||||
|
}
|
||||||
|
},
|
||||||
// 提交题目
|
// 提交题目
|
||||||
submitTitle() {
|
submitTitle() {
|
||||||
let testStr = "";
|
let testStr = "";
|
||||||
@@ -195,6 +217,10 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
this.postLog(201,`【新增】保存人格测评`,"",JSON.stringify({
|
||||||
|
TestType: 15,
|
||||||
|
TestStr: testStr
|
||||||
|
}))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import api from "@/packageCa/apiCa/testManage.js"
|
import api from "@/packageCa/apiCa/testManage.js"
|
||||||
|
import apiuser from "@/packageCa/apiCa/user.js"
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -145,6 +146,27 @@
|
|||||||
},300)
|
},300)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 添加日志
|
||||||
|
postLog(operationType, remarks, beforeData = "", afterData = ""){
|
||||||
|
try {
|
||||||
|
const data = {
|
||||||
|
OperationType: operationType,
|
||||||
|
Remarks: remarks,
|
||||||
|
BeforeOperationJson: beforeData,
|
||||||
|
AfterOperationJson: afterData
|
||||||
|
};
|
||||||
|
console.log(data);
|
||||||
|
// return;
|
||||||
|
// 异步记录日志,不阻塞主流程
|
||||||
|
apiuser.saveUserOperationLog(data).then((res) => {
|
||||||
|
console.log('[Operation Log] 记录成功', res);
|
||||||
|
}).catch((err) => {
|
||||||
|
console.error('[Operation Log] 记录失败', err);
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
console.error('[Operation Log] 记录异常', e);
|
||||||
|
}
|
||||||
|
},
|
||||||
// 提交题目
|
// 提交题目
|
||||||
submitTitle() {
|
submitTitle() {
|
||||||
let testStr = "";
|
let testStr = "";
|
||||||
@@ -197,6 +219,10 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
this.postLog(201,`【新增】保存工作测评`,"",JSON.stringify({
|
||||||
|
TestType: 17,
|
||||||
|
TestStr: testStr
|
||||||
|
}))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,6 +46,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import api from "@/packageCa/apiCa/user.js"
|
import api from "@/packageCa/apiCa/user.js"
|
||||||
|
import apiuser from "@/packageCa/apiCa/user.js"
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -103,7 +104,7 @@
|
|||||||
url: "/packageCa/userCenter/smartTarget"
|
url: "/packageCa/userCenter/smartTarget"
|
||||||
})
|
})
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -116,10 +117,32 @@
|
|||||||
user: res.Data.userInfo
|
user: res.Data.userInfo
|
||||||
};
|
};
|
||||||
uni.setStorageSync('CAuserInfo',params);
|
uni.setStorageSync('CAuserInfo',params);
|
||||||
|
this.postLog(101,`【用户登入】【小程序】${res.Data.userInfo}登录成功`,"",JSON.stringify(params))
|
||||||
}else {
|
}else {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 添加日志
|
||||||
|
postLog(operationType, remarks, beforeData = "", afterData = ""){
|
||||||
|
try {
|
||||||
|
const data = {
|
||||||
|
OperationType: operationType,
|
||||||
|
Remarks: remarks,
|
||||||
|
BeforeOperationJson: beforeData,
|
||||||
|
AfterOperationJson: afterData
|
||||||
|
};
|
||||||
|
console.log(data);
|
||||||
|
// return;
|
||||||
|
// 异步记录日志,不阻塞主流程
|
||||||
|
apiuser.saveUserOperationLog(data).then((res) => {
|
||||||
|
console.log('[Operation Log] 记录成功', res);
|
||||||
|
}).catch((err) => {
|
||||||
|
console.error('[Operation Log] 记录失败', err);
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
console.error('[Operation Log] 记录异常', e);
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -482,6 +505,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-right: 55rpx;
|
margin-right: 55rpx;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
&:nth-child(4){
|
&:nth-child(4){
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,6 +105,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import api from "@/packageCa/apiCa/studentProfile.js"
|
import api from "@/packageCa/apiCa/studentProfile.js"
|
||||||
|
import apiuser from "@/packageCa/apiCa/user.js"
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -127,6 +128,27 @@
|
|||||||
url: `/packageCa/pagesTest/testList`
|
url: `/packageCa/pagesTest/testList`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 添加日志
|
||||||
|
postLog(operationType, remarks, beforeData = "", afterData = ""){
|
||||||
|
try {
|
||||||
|
const data = {
|
||||||
|
OperationType: operationType,
|
||||||
|
Remarks: remarks,
|
||||||
|
BeforeOperationJson: beforeData,
|
||||||
|
AfterOperationJson: afterData
|
||||||
|
};
|
||||||
|
console.log(data);
|
||||||
|
// return;
|
||||||
|
// 异步记录日志,不阻塞主流程
|
||||||
|
apiuser.saveUserOperationLog(data).then((res) => {
|
||||||
|
console.log('[Operation Log] 记录成功', res);
|
||||||
|
}).catch((err) => {
|
||||||
|
console.error('[Operation Log] 记录失败', err);
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
console.error('[Operation Log] 记录异常', e);
|
||||||
|
}
|
||||||
|
},
|
||||||
//选中职业添加
|
//选中职业添加
|
||||||
async checkedJob(ITEM){
|
async checkedJob(ITEM){
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
@@ -141,6 +163,7 @@
|
|||||||
icon: "none"
|
icon: "none"
|
||||||
})
|
})
|
||||||
this.getGXCareerPlanList();
|
this.getGXCareerPlanList();
|
||||||
|
this.postLog(304,`【新增】新增了${ITEM.Name}意向职业`,"",JSON.stringify(ITEM))
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.Message,
|
title: res.Message,
|
||||||
|
|||||||
@@ -121,6 +121,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import api from "@/packageCa/apiCa/studentProfile.js"
|
import api from "@/packageCa/apiCa/studentProfile.js"
|
||||||
|
import apiuser from "@/packageCa/apiCa/user.js"
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -145,6 +146,27 @@
|
|||||||
this.queryPlanList();
|
this.queryPlanList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 添加日志
|
||||||
|
postLog(operationType, remarks, beforeData = "", afterData = ""){
|
||||||
|
try {
|
||||||
|
const data = {
|
||||||
|
OperationType: operationType,
|
||||||
|
Remarks: remarks,
|
||||||
|
BeforeOperationJson: beforeData,
|
||||||
|
AfterOperationJson: afterData
|
||||||
|
};
|
||||||
|
console.log(data);
|
||||||
|
// return;
|
||||||
|
// 异步记录日志,不阻塞主流程
|
||||||
|
apiuser.saveUserOperationLog(data).then((res) => {
|
||||||
|
console.log('[Operation Log] 记录成功', res);
|
||||||
|
}).catch((err) => {
|
||||||
|
console.error('[Operation Log] 记录失败', err);
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
console.error('[Operation Log] 记录异常', e);
|
||||||
|
}
|
||||||
|
},
|
||||||
// 切换目标标签
|
// 切换目标标签
|
||||||
changeTarget(ITEM){
|
changeTarget(ITEM){
|
||||||
if(ITEM.EncodeId == this.checkedTargetCode){
|
if(ITEM.EncodeId == this.checkedTargetCode){
|
||||||
@@ -221,6 +243,7 @@
|
|||||||
})
|
})
|
||||||
this.queryPlanList();
|
this.queryPlanList();
|
||||||
this.delIds=[];
|
this.delIds=[];
|
||||||
|
this.postLog(302,`【新增】新增了学习计划`,"",JSON.stringify(data))
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.Message,
|
title: res.Message,
|
||||||
|
|||||||
@@ -127,6 +127,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import api from "@/packageCa/apiCa/studentProfile.js"
|
import api from "@/packageCa/apiCa/studentProfile.js"
|
||||||
|
import apiuser from "@/packageCa/apiCa/user.js"
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -192,6 +193,7 @@
|
|||||||
this.jobSkill = JSON.parse(data.JobSkill).slice(0,5);
|
this.jobSkill = JSON.parse(data.JobSkill).slice(0,5);
|
||||||
this.professionalRequire = JSON.parse(data.ProfessionalRequire).slice(0,5);
|
this.professionalRequire = JSON.parse(data.ProfessionalRequire).slice(0,5);
|
||||||
this.isLoadingEnd = true;
|
this.isLoadingEnd = true;
|
||||||
|
this.postLog(303,`【新增】查看了${data.Name}的职业发展路径`,"",JSON.stringify(res.Data))
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.Message,
|
title: res.Message,
|
||||||
@@ -199,6 +201,27 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 添加日志
|
||||||
|
postLog(operationType, remarks, beforeData = "", afterData = ""){
|
||||||
|
try {
|
||||||
|
const data = {
|
||||||
|
OperationType: operationType,
|
||||||
|
Remarks: remarks,
|
||||||
|
BeforeOperationJson: beforeData,
|
||||||
|
AfterOperationJson: afterData
|
||||||
|
};
|
||||||
|
console.log(data);
|
||||||
|
// return;
|
||||||
|
// 异步记录日志,不阻塞主流程
|
||||||
|
apiuser.saveUserOperationLog(data).then((res) => {
|
||||||
|
console.log('[Operation Log] 记录成功', res);
|
||||||
|
}).catch((err) => {
|
||||||
|
console.error('[Operation Log] 记录失败', err);
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
console.error('[Operation Log] 记录异常', e);
|
||||||
|
}
|
||||||
|
},
|
||||||
// 去测评
|
// 去测评
|
||||||
navTest(){
|
navTest(){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
@@ -175,6 +175,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import api from "@/packageCa/apiCa/studentProfile.js"
|
import api from "@/packageCa/apiCa/studentProfile.js"
|
||||||
|
import apiuser from "@/packageCa/apiCa/user.js"
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -199,6 +200,27 @@
|
|||||||
this.querySmartTargets();
|
this.querySmartTargets();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 添加日志
|
||||||
|
postLog(operationType, remarks, beforeData = "", afterData = ""){
|
||||||
|
try {
|
||||||
|
const data = {
|
||||||
|
OperationType: operationType,
|
||||||
|
Remarks: remarks,
|
||||||
|
BeforeOperationJson: beforeData,
|
||||||
|
AfterOperationJson: afterData
|
||||||
|
};
|
||||||
|
console.log(data);
|
||||||
|
// return;
|
||||||
|
// 异步记录日志,不阻塞主流程
|
||||||
|
apiuser.saveUserOperationLog(data).then((res) => {
|
||||||
|
console.log('[Operation Log] 记录成功', res);
|
||||||
|
}).catch((err) => {
|
||||||
|
console.error('[Operation Log] 记录失败', err);
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
console.error('[Operation Log] 记录异常', e);
|
||||||
|
}
|
||||||
|
},
|
||||||
goPlan(){
|
goPlan(){
|
||||||
if(this.targetList.length==0){
|
if(this.targetList.length==0){
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -248,6 +270,7 @@
|
|||||||
icon: "success"
|
icon: "success"
|
||||||
})
|
})
|
||||||
this.querySmartTargets();
|
this.querySmartTargets();
|
||||||
|
this.postLog(301,`【新增】保存SMART目标`,"",JSON.stringify(this.targetForm))
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.Message,
|
title: res.Message,
|
||||||
@@ -300,6 +323,7 @@
|
|||||||
Timeliness: "",
|
Timeliness: "",
|
||||||
};
|
};
|
||||||
this.querySmartTargets();
|
this.querySmartTargets();
|
||||||
|
this.postLog(301,`【删除】删除SMART目标`,"",JSON.stringify(this.targetForm))
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.Message,
|
title: res.Message,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// const baseUrl = "https://localhost:7026/career";
|
// const baseUrl = "https://ksrs.51xuanxiao.com/career";
|
||||||
const baseUrl = "https://www.xjksly.cn/career";
|
const baseUrl = "https://www.xjksly.cn/career";
|
||||||
const request = {}
|
const request = {}
|
||||||
const headers = {}
|
const headers = {}
|
||||||
|
|||||||
@@ -163,7 +163,7 @@
|
|||||||
} from "@/utils/tabbarManager";
|
} from "@/utils/tabbarManager";
|
||||||
|
|
||||||
import config from "@/config.js";
|
import config from "@/config.js";
|
||||||
import CryptoJS from 'crypto-js'
|
// import CryptoJS from 'crypto-js'
|
||||||
const {
|
const {
|
||||||
longitudeVal,
|
longitudeVal,
|
||||||
latitudeVal
|
latitudeVal
|
||||||
|
|||||||
@@ -161,12 +161,12 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="service-title">帮扶</view>
|
<view class="service-title">帮扶</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="service-item press-button" v-if="isFourLevelLinkagePurview" @click="helpTaskClick">
|
<!-- <view class="service-item press-button" v-if="isFourLevelLinkagePurview" @click="helpTaskClick">
|
||||||
<view class="service-icon service-icon-1">
|
<view class="service-icon service-icon-1">
|
||||||
<uni-icons type="shop" size="32" color="#FFFFFF"></uni-icons>
|
<uni-icons type="shop" size="32" color="#FFFFFF"></uni-icons>
|
||||||
</view>
|
</view>
|
||||||
<view class="service-title">帮扶任务</view>
|
<view class="service-title">帮扶任务</view>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="service-item press-button" @click="handleNoticeClick">
|
<view class="service-item press-button" @click="handleNoticeClick">
|
||||||
<view class="service-icon service-icon-10">
|
<view class="service-icon service-icon-10">
|
||||||
<uni-icons type="sound" size="32" color="#FFFFFF"></uni-icons>
|
<uni-icons type="sound" size="32" color="#FFFFFF"></uni-icons>
|
||||||
@@ -304,8 +304,14 @@
|
|||||||
:value="list"
|
:value="list"
|
||||||
>
|
>
|
||||||
<view v-for="(job, index) in list" :key="index" :slot="`slot${index}`">
|
<view v-for="(job, index) in list" :key="index" :slot="`slot${index}`">
|
||||||
<view class="item btn-feel" v-if="!job.recommend">
|
<view class="item" v-if="!job.recommend">
|
||||||
<view class="falls-card" :class="{ 'disabled-card': Number(job.jobStatus) === 1 }" @click="nextDetail(job)">
|
<view
|
||||||
|
class="falls-card"
|
||||||
|
:class="{
|
||||||
|
'disabled-card': Number(job.isPublish) === 0
|
||||||
|
}"
|
||||||
|
@click="Number(job.isPublish) === 1 ? nextDetail(job) : null"
|
||||||
|
>
|
||||||
<view class="falls-card-pay">
|
<view class="falls-card-pay">
|
||||||
<view class="fl_1 falls-card-title">{{ job.jobTitle }}</view>
|
<view class="fl_1 falls-card-title">{{ job.jobTitle }}</view>
|
||||||
<view class="fr_1 pay-text">
|
<view class="fr_1 pay-text">
|
||||||
@@ -354,13 +360,16 @@
|
|||||||
<view class="fl_1">
|
<view class="fl_1">
|
||||||
{{ job.companyName }}
|
{{ job.companyName }}
|
||||||
</view>
|
</view>
|
||||||
<view class="fr-1">
|
<view class="fr-1" v-if="job.regionName">
|
||||||
地区:{{ config.appInfo.areaName }}
|
地区:{{ job.regionName }}
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 未通过审核状态显示 -->
|
||||||
|
<view class="unpublished-badge" v-if="Number(job.isPublish) === 0">
|
||||||
|
未通过审核
|
||||||
</view>
|
</view>
|
||||||
<!-- 招聘者显示上下架开关 -->
|
<!-- 招聘者显示上下架开关 -->
|
||||||
<view class="falls-card-actions" v-if="isRecruiter">
|
<view class="falls-card-actions" v-if="isRecruiter && Number(job.isPublish) === 1">
|
||||||
<view class="job-status-switch" @click.stop="toggleJobStatus(job)">
|
<view class="job-status-switch" @click.stop="toggleJobStatus(job)">
|
||||||
<view class="switch-track" :class="{ 'active': Number(job.jobStatus) === 0 }">
|
<view class="switch-track" :class="{ 'active': Number(job.jobStatus) === 0 }">
|
||||||
<view class="switch-thumb" :class="{ 'active': Number(job.jobStatus) === 0 }"></view>
|
<view class="switch-thumb" :class="{ 'active': Number(job.jobStatus) === 0 }"></view>
|
||||||
@@ -401,8 +410,14 @@
|
|||||||
:value="list"
|
:value="list"
|
||||||
>
|
>
|
||||||
<template v-slot:default="job">
|
<template v-slot:default="job">
|
||||||
<view class="item btn-feel" v-if="!job.recommend">
|
<view class="item" v-if="!job.recommend">
|
||||||
<view class="falls-card" :class="{ 'disabled-card': Number(job.jobStatus) === 1 }" @click="nextDetail(job)">
|
<view
|
||||||
|
class="falls-card"
|
||||||
|
:class="{
|
||||||
|
'disabled-card': (Number(job.jobStatus) === 1 || Number(job.isPublish) === 0) && currentUserType !== 0
|
||||||
|
}"
|
||||||
|
@click="Number(job.isPublish) === 1 ? nextDetail(job) : null"
|
||||||
|
>
|
||||||
<view class="falls-card-pay">
|
<view class="falls-card-pay">
|
||||||
<view class="fl_1 falls-card-title">{{ job.jobTitle }}</view>
|
<view class="fl_1 falls-card-title">{{ job.jobTitle }}</view>
|
||||||
<view class="fr_1 pay-text">
|
<view class="fr_1 pay-text">
|
||||||
@@ -447,13 +462,16 @@
|
|||||||
<view class="fl_1">
|
<view class="fl_1">
|
||||||
{{ job.companyName }}
|
{{ job.companyName }}
|
||||||
</view>
|
</view>
|
||||||
<view class="fr-1">
|
<view class="fr-1" v-if="job.regionName">
|
||||||
地区:{{ config.appInfo.areaName }}
|
地区:{{ job.regionName }}
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 未通过审核状态显示 -->
|
||||||
|
<view class="unpublished-badge" v-if="Number(job.isPublish) === 0">
|
||||||
|
未通过审核
|
||||||
</view>
|
</view>
|
||||||
<!-- 招聘者显示上下架开关 -->
|
<!-- 招聘者显示上下架开关 -->
|
||||||
<view class="falls-card-actions" v-if="isRecruiter">
|
<view class="falls-card-actions" v-if="isRecruiter && Number(job.isPublish) === 1">
|
||||||
<view class="job-status-switch" @click.stop="toggleJobStatus(job)">
|
<view class="job-status-switch" @click.stop="toggleJobStatus(job)">
|
||||||
<view class="switch-track" :class="{ 'active': Number(job.jobStatus) === 0 }">
|
<view class="switch-track" :class="{ 'active': Number(job.jobStatus) === 0 }">
|
||||||
<view class="switch-thumb" :class="{ 'active': Number(job.jobStatus) === 0 }"></view>
|
<view class="switch-thumb" :class="{ 'active': Number(job.jobStatus) === 0 }"></view>
|
||||||
@@ -578,6 +596,15 @@ const shouldShowCompanyCard = computed(() => {
|
|||||||
return companyInfo.name && companyInfo.name.trim() !== '';
|
return companyInfo.name && companyInfo.name.trim() !== '';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 计算当前用户类型
|
||||||
|
const currentUserType = computed(() => {
|
||||||
|
// 优先从store获取,如果为空则从缓存获取
|
||||||
|
const storeIsCompanyUser = userInfo.value?.isCompanyUser;
|
||||||
|
const cachedUserInfo = uni.getStorageSync('userInfo') || {};
|
||||||
|
const cachedIsCompanyUser = cachedUserInfo.isCompanyUser;
|
||||||
|
return storeIsCompanyUser !== undefined ? Number(storeIsCompanyUser) : Number(cachedIsCompanyUser);
|
||||||
|
});
|
||||||
|
|
||||||
// 计算是否显示企业用户内容
|
// 计算是否显示企业用户内容
|
||||||
const shouldShowCompanyContent = computed(() => {
|
const shouldShowCompanyContent = computed(() => {
|
||||||
// 未登录时不显示企业内容
|
// 未登录时不显示企业内容
|
||||||
@@ -1065,7 +1092,7 @@ function clearfindJob(job) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function nextDetail(job) {
|
function nextDetail(job) {
|
||||||
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}`);
|
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}&encryptJobId=${encodeURIComponent(job.encryptJobId)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
function navToService(serviceType) {
|
function navToService(serviceType) {
|
||||||
@@ -1216,7 +1243,6 @@ function getJobRecommend(type = 'add') {
|
|||||||
sessionId: useUserStore().seesionId,
|
sessionId: useUserStore().seesionId,
|
||||||
...pageState.search,
|
...pageState.search,
|
||||||
...conditionSearch.value,
|
...conditionSearch.value,
|
||||||
isPublish: 1,
|
|
||||||
};
|
};
|
||||||
// 当选中零工市场(4)或疆外(3)时,order参数传递0
|
// 当选中零工市场(4)或疆外(3)时,order参数传递0
|
||||||
if (pageState.search.order === 3 || pageState.search.order === 4) {
|
if (pageState.search.order === 3 || pageState.search.order === 4) {
|
||||||
@@ -1231,9 +1257,11 @@ function getJobRecommend(type = 'add') {
|
|||||||
// 只有企业用户(isCompanyUser=0)才添加current字段
|
// 只有企业用户(isCompanyUser=0)才添加current字段
|
||||||
if (userType === 0) {
|
if (userType === 0) {
|
||||||
params.current = pageNull.value;
|
params.current = pageNull.value;
|
||||||
|
// 企业用户不传递isPublish字段
|
||||||
} else {
|
} else {
|
||||||
// 求职者只显示已上架的岗位(jobStatus=0)
|
// 求职者只显示已上架且通过审核的岗位(jobStatus=0, isPublish=1)
|
||||||
params.jobStatus = 0;
|
params.jobStatus = 0;
|
||||||
|
params.isPublish = 1;
|
||||||
}
|
}
|
||||||
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) => {
|
||||||
@@ -1315,9 +1343,10 @@ function getJobList(type = 'add') {
|
|||||||
const cachedIsCompanyUser = cachedUserInfo.isCompanyUser;
|
const cachedIsCompanyUser = cachedUserInfo.isCompanyUser;
|
||||||
const userType = storeIsCompanyUser !== undefined ? Number(storeIsCompanyUser) : Number(cachedIsCompanyUser);
|
const userType = storeIsCompanyUser !== undefined ? Number(storeIsCompanyUser) : Number(cachedIsCompanyUser);
|
||||||
|
|
||||||
// 如果不是企业用户(求职者),只显示已上架的岗位
|
// 如果不是企业用户(求职者),只显示已上架且通过审核的岗位
|
||||||
if (userType !== 0) {
|
if (userType !== 0) {
|
||||||
params.jobStatus = 0;
|
params.jobStatus = 0;
|
||||||
|
params.isPublish = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$api.createRequest('/app/job/list', params).then((resData) => {
|
$api.createRequest('/app/job/list', params).then((resData) => {
|
||||||
@@ -1344,7 +1373,7 @@ function getJobList(type = 'add') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 上架岗位
|
// 上架岗位
|
||||||
const jobUp = (jobId) => {
|
const jobUp = (encryptJobId) => {
|
||||||
if (!checkLogin()) return;
|
if (!checkLogin()) return;
|
||||||
|
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
@@ -1352,7 +1381,7 @@ const jobUp = (jobId) => {
|
|||||||
mask: true
|
mask: true
|
||||||
});
|
});
|
||||||
|
|
||||||
$api.createRequest(`/app/job/jobUp/${jobId}`, {}, 'PUT', true).then((res) => {
|
$api.createRequest(`/app/job/jobUp/${encryptJobId}`, {}, 'PUT', true).then((res) => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
$api.msg('上架成功');
|
$api.msg('上架成功');
|
||||||
// 刷新数据
|
// 刷新数据
|
||||||
@@ -1369,7 +1398,7 @@ const jobUp = (jobId) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 下架岗位
|
// 下架岗位
|
||||||
const jobDown = (jobId) => {
|
const jobDown = (encryptJobId) => {
|
||||||
if (!checkLogin()) return;
|
if (!checkLogin()) return;
|
||||||
|
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
@@ -1377,7 +1406,7 @@ const jobDown = (jobId) => {
|
|||||||
mask: true
|
mask: true
|
||||||
});
|
});
|
||||||
|
|
||||||
$api.createRequest(`/app/job/jobDown/${jobId}`, {}, 'PUT', true).then((res) => {
|
$api.createRequest(`/app/job/jobDown/${encryptJobId}`, {}, 'PUT', true).then((res) => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
$api.msg('下架成功');
|
$api.msg('下架成功');
|
||||||
// 刷新数据
|
// 刷新数据
|
||||||
@@ -1404,14 +1433,14 @@ const toggleJobStatus = (job) => {
|
|||||||
|
|
||||||
// 根据当前状态决定调用哪个接口
|
// 根据当前状态决定调用哪个接口
|
||||||
const isCurrentlyUp = Number(job.jobStatus) === 0; // 0: 已上架, 1: 已下架
|
const isCurrentlyUp = Number(job.jobStatus) === 0; // 0: 已上架, 1: 已下架
|
||||||
const apiUrl = isCurrentlyUp ? `/app/job/jobDown/${job.jobId}` : `/app/job/jobUp/${job.jobId}`;
|
const apiUrl = isCurrentlyUp ? `/app/job/jobDown/${job.encryptJobId}` : `/app/job/jobUp/${job.encryptJobId}`;
|
||||||
|
|
||||||
$api.createRequest(apiUrl, {}, 'PUT', true).then((res) => {
|
$api.createRequest(apiUrl, {}, 'PUT', true).then((res) => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
$api.msg(isCurrentlyUp ? '下架成功' : '上架成功');
|
$api.msg(isCurrentlyUp ? '下架成功' : '上架成功');
|
||||||
|
|
||||||
// 更新本地数据状态,避免立即刷新整个列表
|
// 更新本地数据状态,避免立即刷新整个列表
|
||||||
const jobIndex = list.value.findIndex(item => item.jobId === job.jobId);
|
const jobIndex = list.value.findIndex(item => item.encryptJobId === job.encryptJobId);
|
||||||
if (jobIndex !== -1) {
|
if (jobIndex !== -1) {
|
||||||
// 更新状态
|
// 更新状态
|
||||||
list.value[jobIndex].jobStatus = isCurrentlyUp ? 1 : 0;
|
list.value[jobIndex].jobStatus = isCurrentlyUp ? 1 : 0;
|
||||||
@@ -2133,6 +2162,17 @@ defineExpose({ loadData });
|
|||||||
margin: 4rpx 4rpx 0 0
|
margin: 4rpx 4rpx 0 0
|
||||||
height: 26rpx
|
height: 26rpx
|
||||||
width: 26rpx
|
width: 26rpx
|
||||||
|
// 未通过审核状态样式
|
||||||
|
.unpublished-badge
|
||||||
|
position: absolute
|
||||||
|
top: 0
|
||||||
|
right: 0
|
||||||
|
background-color: #FF4D4F
|
||||||
|
color: #FFFFFF
|
||||||
|
font-size: 20rpx
|
||||||
|
padding: 6rpx 12rpx
|
||||||
|
border-bottom-left-radius: 16rpx
|
||||||
|
z-index: 10
|
||||||
// 推荐卡片
|
// 推荐卡片
|
||||||
.recommend-card::before
|
.recommend-card::before
|
||||||
position: absolute
|
position: absolute
|
||||||
|
|||||||
@@ -43,12 +43,23 @@
|
|||||||
<uni-icons type="right" size="14" color="#909090"></uni-icons>
|
<uni-icons type="right" size="14" color="#909090"></uni-icons>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="service-item btn-feel">
|
<view class="service-item btn-feel" @click="openReminderSettings">
|
||||||
<view class="service-left">
|
<view class="service-left">
|
||||||
<uni-icons type="notification" size="20" color="#256BFA"></uni-icons>
|
<uni-icons type="notification" size="20" color="#256BFA"></uni-icons>
|
||||||
<text class="service-text">通知与提醒</text>
|
<text class="service-text">通知与提醒</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="service-status">已开启</view>
|
<view class="service-status">
|
||||||
|
<switch class="reminder-switch" :checked="reminderEnabled" @change="toggleReminder"></switch>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="service-item btn-feel" @click="openFeedbackPopup">
|
||||||
|
<view class="service-left">
|
||||||
|
<uni-icons type="chat" size="20" color="#256BFA"></uni-icons>
|
||||||
|
<text class="service-text">评论与反馈</text>
|
||||||
|
</view>
|
||||||
|
<view class="service-status">
|
||||||
|
<uni-icons type="right" size="14" color="#909090"></uni-icons>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="service-item btn-feel" @click="handleInstitutionClick(1)">
|
<view class="service-item btn-feel" @click="handleInstitutionClick(1)">
|
||||||
<view class="service-left">
|
<view class="service-left">
|
||||||
@@ -97,6 +108,39 @@
|
|||||||
@close="close"
|
@close="close"
|
||||||
></uni-popup-dialog>
|
></uni-popup-dialog>
|
||||||
</uni-popup>
|
</uni-popup>
|
||||||
|
<!-- 提醒设置弹窗 -->
|
||||||
|
<uni-popup ref="reminderPopup" type="center">
|
||||||
|
<view class="reminder-popup">
|
||||||
|
<view class="reminder-popup-title">提醒设置</view>
|
||||||
|
<view class="reminder-popup-content">
|
||||||
|
<view class="reminder-item" v-for="(item, index) in reminderOptions" :key="index">
|
||||||
|
<view class="reminder-item-label">{{ item.label }}</view>
|
||||||
|
<radio :value="item.value" :checked="reminderFrequency === item.value" @change="handleFrequencyChange"></radio>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="reminder-popup-footer">
|
||||||
|
<button class="reminder-popup-btn" @click="closeReminderPopup">确定</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</uni-popup>
|
||||||
|
<!-- 评论与反馈弹窗 -->
|
||||||
|
<uni-popup ref="feedbackPopup" type="center">
|
||||||
|
<view class="feedback-popup">
|
||||||
|
<view class="feedback-popup-title">评论与反馈</view>
|
||||||
|
<view class="feedback-popup-content">
|
||||||
|
<textarea class="feedback-textarea" v-model="feedbackContent" placeholder="请输入您的评论或反馈..."></textarea>
|
||||||
|
<view class="feedback-rating">
|
||||||
|
<text class="feedback-rating-label">满意度评分:</text>
|
||||||
|
<view class="feedback-stars">
|
||||||
|
<text class="feedback-star" v-for="i in 5" :key="i" @click="setRating(i)" :class="{ 'active': rating >= i }">★</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="feedback-popup-footer">
|
||||||
|
<button class="feedback-popup-btn" @click="submitFeedback">提交</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</uni-popup>
|
||||||
</AppLayout>
|
</AppLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -107,6 +151,21 @@ import useUserStore from '@/stores/useUserStore';
|
|||||||
|
|
||||||
const { $api, navTo } = inject('globalFunction');
|
const { $api, navTo } = inject('globalFunction');
|
||||||
const popup = ref(null);
|
const popup = ref(null);
|
||||||
|
const reminderPopup = ref(null);
|
||||||
|
const feedbackPopup = ref(null);
|
||||||
|
|
||||||
|
// 提醒设置
|
||||||
|
const reminderEnabled = ref(true);
|
||||||
|
const reminderFrequency = ref('realtime');
|
||||||
|
const reminderOptions = ref([
|
||||||
|
{ label: '实时提醒', value: 'realtime' },
|
||||||
|
{ label: '每小时提醒', value: 'hourly' },
|
||||||
|
{ label: '每天提醒', value: 'daily' }
|
||||||
|
]);
|
||||||
|
|
||||||
|
// 评论与反馈
|
||||||
|
const feedbackContent = ref('');
|
||||||
|
const rating = ref(0);
|
||||||
|
|
||||||
// 企业信息数据
|
// 企业信息数据
|
||||||
const companyInfo = reactive({
|
const companyInfo = reactive({
|
||||||
@@ -196,6 +255,57 @@ function getCompanyInfo() {
|
|||||||
companyInfo.isVerified = false;
|
companyInfo.isVerified = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 切换提醒开启/关闭状态
|
||||||
|
function toggleReminder(e) {
|
||||||
|
reminderEnabled.value = e.detail.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 打开提醒设置弹窗
|
||||||
|
function openReminderSettings() {
|
||||||
|
reminderPopup.value.open();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 关闭提醒设置弹窗
|
||||||
|
function closeReminderPopup() {
|
||||||
|
reminderPopup.value.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 处理提醒频率变化
|
||||||
|
function handleFrequencyChange(e) {
|
||||||
|
reminderFrequency.value = e.detail.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 打开评论与反馈弹窗
|
||||||
|
function openFeedbackPopup() {
|
||||||
|
feedbackPopup.value.open();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 关闭评论与反馈弹窗
|
||||||
|
function closeFeedbackPopup() {
|
||||||
|
feedbackPopup.value.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 设置评分
|
||||||
|
function setRating(score) {
|
||||||
|
rating.value = score;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 提交反馈
|
||||||
|
function submitFeedback() {
|
||||||
|
// 模拟提交成功
|
||||||
|
uni.showToast({
|
||||||
|
title: '反馈提交成功',
|
||||||
|
icon: 'success'
|
||||||
|
});
|
||||||
|
// 清空表单
|
||||||
|
feedbackContent.value = '';
|
||||||
|
rating.value = 0;
|
||||||
|
// 延迟关闭弹窗,确保用户能看到成功提示
|
||||||
|
setTimeout(() => {
|
||||||
|
closeFeedbackPopup();
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
@@ -331,4 +441,137 @@ function getCompanyInfo() {
|
|||||||
transform: scale(0.98);
|
transform: scale(0.98);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 提醒开关样式
|
||||||
|
.reminder-switch {
|
||||||
|
transform: scale(0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 提醒设置弹窗样式
|
||||||
|
.reminder-popup {
|
||||||
|
width: 600rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
padding: 32rpx;
|
||||||
|
|
||||||
|
.reminder-popup-title {
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #333333;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 32rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reminder-popup-content {
|
||||||
|
margin-bottom: 40rpx;
|
||||||
|
|
||||||
|
.reminder-item {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding: 24rpx 0;
|
||||||
|
border-bottom: 1rpx solid #F0F0F0;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reminder-item-label {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.reminder-popup-footer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
.reminder-popup-btn {
|
||||||
|
width: 100%;
|
||||||
|
height: 80rpx;
|
||||||
|
background: #256BFA;
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 评论与反馈弹窗样式
|
||||||
|
.feedback-popup {
|
||||||
|
width: 600rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
padding: 32rpx;
|
||||||
|
|
||||||
|
.feedback-popup-title {
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #333333;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 32rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feedback-popup-content {
|
||||||
|
margin-bottom: 40rpx;
|
||||||
|
|
||||||
|
.feedback-textarea {
|
||||||
|
width: 100%;
|
||||||
|
height: 200rpx;
|
||||||
|
border: 1rpx solid #E5E5E5;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
padding: 20rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
resize: none;
|
||||||
|
margin-bottom: 32rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feedback-rating {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.feedback-rating-label {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feedback-stars {
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
.feedback-star {
|
||||||
|
font-size: 40rpx;
|
||||||
|
color: #E5E5E5;
|
||||||
|
margin-right: 16rpx;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
color: #FFD700;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.feedback-popup-footer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
.feedback-popup-btn {
|
||||||
|
width: 100%;
|
||||||
|
height: 80rpx;
|
||||||
|
background: #256BFA;
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -105,12 +105,23 @@
|
|||||||
<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="openReminderSettings">
|
||||||
<view class="row-left">
|
<view class="row-left">
|
||||||
<image class="left-img" src="@/static/icon/server4.png"></image>
|
<image class="left-img" src="@/static/icon/server4.png"></image>
|
||||||
<text class="left-text">通知与提醒</text>
|
<text class="left-text">通知与提醒</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="row-right">已开启</view>
|
<view class="row-right">
|
||||||
|
<switch class="reminder-switch" :checked="reminderEnabled" @change="toggleReminder"></switch>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="main-row btn-feel" @click="openFeedbackPopup">
|
||||||
|
<view class="row-left">
|
||||||
|
<image class="left-img" src="@/static/icon/feedback.png"></image>
|
||||||
|
<text class="left-text">评论与反馈</text>
|
||||||
|
</view>
|
||||||
|
<view class="row-right">
|
||||||
|
<uni-icons color="#909090" type="right" size="14"></uni-icons>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="userType === 2" class="card-help button-click" @click="goToJobHelper">求职帮</view>
|
<view v-if="userType === 2" class="card-help button-click" @click="goToJobHelper">求职帮</view>
|
||||||
@@ -126,6 +137,39 @@
|
|||||||
@close="close"
|
@close="close"
|
||||||
></uni-popup-dialog>
|
></uni-popup-dialog>
|
||||||
</uni-popup>
|
</uni-popup>
|
||||||
|
<!-- 提醒设置弹窗 -->
|
||||||
|
<uni-popup ref="reminderPopup" type="center">
|
||||||
|
<view class="reminder-popup">
|
||||||
|
<view class="reminder-popup-title">提醒设置</view>
|
||||||
|
<view class="reminder-popup-content">
|
||||||
|
<view class="reminder-item" v-for="(item, index) in reminderOptions" :key="index">
|
||||||
|
<view class="reminder-item-label">{{ item.label }}</view>
|
||||||
|
<radio :value="item.value" :checked="reminderFrequency === item.value" @change="handleFrequencyChange"></radio>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="reminder-popup-footer">
|
||||||
|
<button class="reminder-popup-btn" @click="closeReminderPopup">确定</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</uni-popup>
|
||||||
|
<!-- 评论与反馈弹窗 -->
|
||||||
|
<uni-popup ref="feedbackPopup" type="center">
|
||||||
|
<view class="feedback-popup">
|
||||||
|
<view class="feedback-popup-title">评论与反馈</view>
|
||||||
|
<view class="feedback-popup-content">
|
||||||
|
<textarea class="feedback-textarea" v-model="feedbackContent" placeholder="请输入您的评论或反馈..."></textarea>
|
||||||
|
<view class="feedback-rating">
|
||||||
|
<text class="feedback-rating-label">满意度评分:</text>
|
||||||
|
<view class="feedback-stars">
|
||||||
|
<text class="feedback-star" v-for="i in 5" :key="i" @click="setRating(i)" :class="{ 'active': rating >= i }">★</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="feedback-popup-footer">
|
||||||
|
<button class="feedback-popup-btn" @click="submitFeedback">提交</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</uni-popup>
|
||||||
</view>
|
</view>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<!-- 统一使用系统tabBar -->
|
<!-- 统一使用系统tabBar -->
|
||||||
@@ -141,9 +185,24 @@ const { $api, navTo } = inject('globalFunction');
|
|||||||
import useUserStore from '@/stores/useUserStore';
|
import useUserStore from '@/stores/useUserStore';
|
||||||
import { tabbarManager } from '@/utils/tabbarManager';
|
import { tabbarManager } from '@/utils/tabbarManager';
|
||||||
const popup = ref(null);
|
const popup = ref(null);
|
||||||
|
const reminderPopup = ref(null);
|
||||||
|
const feedbackPopup = ref(null);
|
||||||
const { userInfo, Completion } = storeToRefs(useUserStore());
|
const { userInfo, Completion } = storeToRefs(useUserStore());
|
||||||
const counts = ref({});
|
const counts = ref({});
|
||||||
|
|
||||||
|
// 提醒设置
|
||||||
|
const reminderEnabled = ref(true);
|
||||||
|
const reminderFrequency = ref('realtime');
|
||||||
|
const reminderOptions = ref([
|
||||||
|
{ label: '实时提醒', value: 'realtime' },
|
||||||
|
{ label: '每小时提醒', value: 'hourly' },
|
||||||
|
{ label: '每天提醒', value: 'daily' }
|
||||||
|
]);
|
||||||
|
|
||||||
|
// 评论与反馈
|
||||||
|
const feedbackContent = ref('');
|
||||||
|
const rating = ref(0);
|
||||||
|
|
||||||
// 获取用户类型,参考首页的实现方式
|
// 获取用户类型,参考首页的实现方式
|
||||||
const userType = computed(() => {
|
const userType = computed(() => {
|
||||||
// 优先从store获取,如果为空则从缓存获取
|
// 优先从store获取,如果为空则从缓存获取
|
||||||
@@ -236,6 +295,57 @@ function goToMessage(){
|
|||||||
navTo('/pages/msglog/msglog');
|
navTo('/pages/msglog/msglog');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 切换提醒开启/关闭状态
|
||||||
|
function toggleReminder(e) {
|
||||||
|
reminderEnabled.value = e.detail.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 打开提醒设置弹窗
|
||||||
|
function openReminderSettings() {
|
||||||
|
reminderPopup.value.open();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 关闭提醒设置弹窗
|
||||||
|
function closeReminderPopup() {
|
||||||
|
reminderPopup.value.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 处理提醒频率变化
|
||||||
|
function handleFrequencyChange(e) {
|
||||||
|
reminderFrequency.value = e.detail.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 打开评论与反馈弹窗
|
||||||
|
function openFeedbackPopup() {
|
||||||
|
feedbackPopup.value.open();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 关闭评论与反馈弹窗
|
||||||
|
function closeFeedbackPopup() {
|
||||||
|
feedbackPopup.value.close();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 设置评分
|
||||||
|
function setRating(score) {
|
||||||
|
rating.value = score;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 提交反馈
|
||||||
|
function submitFeedback() {
|
||||||
|
// 模拟提交成功
|
||||||
|
uni.showToast({
|
||||||
|
title: '反馈提交成功',
|
||||||
|
icon: 'success'
|
||||||
|
});
|
||||||
|
// 清空表单
|
||||||
|
feedbackContent.value = '';
|
||||||
|
rating.value = 0;
|
||||||
|
// 延迟关闭弹窗,确保用户能看到成功提示
|
||||||
|
setTimeout(() => {
|
||||||
|
closeFeedbackPopup();
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
@@ -470,4 +580,137 @@ function goToMessage(){
|
|||||||
margin-left: 20rpx;
|
margin-left: 20rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 提醒设置弹窗样式
|
||||||
|
.reminder-popup {
|
||||||
|
width: 600rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
padding: 32rpx;
|
||||||
|
|
||||||
|
.reminder-popup-title {
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #333333;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 32rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reminder-popup-content {
|
||||||
|
margin-bottom: 40rpx;
|
||||||
|
|
||||||
|
.reminder-item {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding: 24rpx 0;
|
||||||
|
border-bottom: 1rpx solid #F0F0F0;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reminder-item-label {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.reminder-popup-footer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
.reminder-popup-btn {
|
||||||
|
width: 100%;
|
||||||
|
height: 80rpx;
|
||||||
|
background: #256BFA;
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 提醒开关样式
|
||||||
|
.reminder-switch {
|
||||||
|
transform: scale(0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 评论与反馈弹窗样式
|
||||||
|
.feedback-popup {
|
||||||
|
width: 600rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
padding: 32rpx;
|
||||||
|
|
||||||
|
.feedback-popup-title {
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #333333;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 32rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feedback-popup-content {
|
||||||
|
margin-bottom: 40rpx;
|
||||||
|
|
||||||
|
.feedback-textarea {
|
||||||
|
width: 100%;
|
||||||
|
height: 200rpx;
|
||||||
|
border: 1rpx solid #E5E5E5;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
padding: 20rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
resize: none;
|
||||||
|
margin-bottom: 32rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feedback-rating {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.feedback-rating-label {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.feedback-stars {
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
.feedback-star {
|
||||||
|
font-size: 40rpx;
|
||||||
|
color: #E5E5E5;
|
||||||
|
margin-right: 16rpx;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
color: #FFD700;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.feedback-popup-footer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
.feedback-popup-btn {
|
||||||
|
width: 100%;
|
||||||
|
height: 80rpx;
|
||||||
|
background: #256BFA;
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ function nextDetail(job) {
|
|||||||
const recordData = recommedIndexDb.JobParameter(job);
|
const recordData = recommedIndexDb.JobParameter(job);
|
||||||
recommedIndexDb.addRecord(recordData);
|
recommedIndexDb.addRecord(recordData);
|
||||||
}
|
}
|
||||||
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}`);
|
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}&encryptJobId=${encodeURIComponent(job.encryptJobId)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
function nextVideo(job) {
|
function nextVideo(job) {
|
||||||
|
|||||||
@@ -1,33 +1,43 @@
|
|||||||
import { computed, ref, watch } from 'vue';
|
import { computed, ref, watch } from 'vue';
|
||||||
import { defineStore } from 'pinia';
|
import { defineStore, storeToRefs } from 'pinia';
|
||||||
|
import useUserStore from '@/stores/useUserStore';
|
||||||
import { getCurrentPosition, getPath, getPathDetail } from '@/apiRc/service/careerPath';
|
import { getCurrentPosition, getPath, getPathDetail } from '@/apiRc/service/careerPath';
|
||||||
|
|
||||||
|
|
||||||
export const useCareerPathStore = defineStore('career-path', () => {
|
export const useCareerPathStore = defineStore('career-path', () => {
|
||||||
|
const { userInfo: ui } = storeToRefs(useUserStore());
|
||||||
const userInfo = ref({
|
const userInfo = ref({
|
||||||
userName: '',
|
userName: '',
|
||||||
professions: [],
|
professions: [],
|
||||||
skills: []
|
skills: []
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
watch(() => ui.value, () => {
|
||||||
const data = uni.getStorageSync('userInfo');
|
if (!ui.value) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
const { jobTitle, appSkillsList } = ui.value;
|
||||||
|
|
||||||
userInfo.value.professions = data.jobTitle.map((d) => {
|
userInfo.value.professions = jobTitle.map((d) => {
|
||||||
return {
|
return {
|
||||||
label: d,
|
label: d,
|
||||||
value: d
|
value: d
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
userInfo.value.skills = data.appSkillsList.map((d) => {
|
userInfo.value.skills = appSkillsList.map((d) => {
|
||||||
return {
|
return {
|
||||||
label: d.name,
|
label: d.name,
|
||||||
value: d.name
|
value: d.name
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.warn(e);
|
console.warn(e);
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
immediate: true,
|
||||||
|
deep: true
|
||||||
|
});
|
||||||
|
|
||||||
const professionIndex = ref(0);
|
const professionIndex = ref(0);
|
||||||
const profession = ref('');
|
const profession = ref('');
|
||||||
|
|||||||
@@ -1,33 +1,43 @@
|
|||||||
import { computed, ref, watch } from 'vue';
|
import { computed, ref, watch } from 'vue';
|
||||||
import { defineStore } from 'pinia';
|
import { defineStore, storeToRefs } from 'pinia';
|
||||||
|
import useUserStore from '@/stores/useUserStore';
|
||||||
import { getProfessions, getRecommend, getSkillTags } from '@/apiRc/service/careerRecommendation';
|
import { getProfessions, getRecommend, getSkillTags } from '@/apiRc/service/careerRecommendation';
|
||||||
|
|
||||||
|
|
||||||
export const useCareerRecommendationStore = defineStore('career-recommendation', () => {
|
export const useCareerRecommendationStore = defineStore('career-recommendation', () => {
|
||||||
|
const { userInfo: ui } = storeToRefs(useUserStore());
|
||||||
const userInfo = ref({
|
const userInfo = ref({
|
||||||
userName: '',
|
userName: '',
|
||||||
professions: [],
|
professions: [],
|
||||||
skills: []
|
skills: []
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
watch(() => ui.value, () => {
|
||||||
const data = uni.getStorageSync('userInfo');
|
if (!ui.value) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
const { jobTitle, appSkillsList } = ui.value;
|
||||||
|
|
||||||
userInfo.value.professions = data.jobTitle.map((d) => {
|
userInfo.value.professions = jobTitle.map((d) => {
|
||||||
return {
|
return {
|
||||||
label: d,
|
label: d,
|
||||||
value: d
|
value: d
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
userInfo.value.skills = data.appSkillsList.map((d) => {
|
userInfo.value.skills = appSkillsList.map((d) => {
|
||||||
return {
|
return {
|
||||||
label: d.name,
|
label: d.name,
|
||||||
value: d.name
|
value: d.name
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.warn(e);
|
console.warn(e);
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
immediate: true,
|
||||||
|
deep: true
|
||||||
|
});
|
||||||
|
|
||||||
const professionIndex = ref(0);
|
const professionIndex = ref(0);
|
||||||
const profession = ref('');
|
const profession = ref('');
|
||||||
@@ -144,7 +154,7 @@ export const useCareerRecommendationStore = defineStore('career-recommendation',
|
|||||||
|
|
||||||
const eventProfession = (e) => {
|
const eventProfession = (e) => {
|
||||||
professionIndex.value = Number(e.detail.value);
|
professionIndex.value = Number(e.detail.value);
|
||||||
const item = professionsRef.value[e.detail.value]
|
const item = professionsRef.value[ e.detail.value ];
|
||||||
profession.value = item.value;
|
profession.value = item.value;
|
||||||
professionLabel.value = item.label;
|
professionLabel.value = item.label;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,34 +1,44 @@
|
|||||||
import { computed, ref, watch } from 'vue';
|
import { computed, ref, watch } from 'vue';
|
||||||
import { defineStore } from 'pinia';
|
import { defineStore, storeToRefs } from 'pinia';
|
||||||
|
import useUserStore from '@/stores/useUserStore';
|
||||||
import { getCurrentPosition, getPath } from '@/apiRc/service/careerPath';
|
import { getCurrentPosition, getPath } from '@/apiRc/service/careerPath';
|
||||||
import { getCareerPath, getSkillResult } from '@/apiRc/service/skillDevelopment';
|
import { getCareerPath, getSkillResult } from '@/apiRc/service/skillDevelopment';
|
||||||
|
|
||||||
|
|
||||||
export const useSkillDevelopmentStore = defineStore('skill-development', () => {
|
export const useSkillDevelopmentStore = defineStore('skill-development', () => {
|
||||||
|
const { userInfo: ui } = storeToRefs(useUserStore());
|
||||||
const userInfo = ref({
|
const userInfo = ref({
|
||||||
userName: '',
|
userName: '',
|
||||||
professions: [],
|
professions: [],
|
||||||
skills: []
|
skills: []
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
watch(() => ui.value, () => {
|
||||||
const data = uni.getStorageSync('userInfo');
|
if (!ui.value) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
const { jobTitle, appSkillsList } = ui.value;
|
||||||
|
|
||||||
userInfo.value.professions = data.jobTitle.map((d) => {
|
userInfo.value.professions = jobTitle.map((d) => {
|
||||||
return {
|
return {
|
||||||
label: d,
|
label: d,
|
||||||
value: d
|
value: d
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
userInfo.value.skills = data.appSkillsList.map((d) => {
|
userInfo.value.skills = appSkillsList.map((d) => {
|
||||||
return {
|
return {
|
||||||
label: d.name,
|
label: d.name,
|
||||||
value: d.name
|
value: d.name
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.warn(e);
|
console.warn(e);
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
immediate: true,
|
||||||
|
deep: true
|
||||||
|
});
|
||||||
|
|
||||||
const professionIndex = ref(0);
|
const professionIndex = ref(0);
|
||||||
const profession = ref('');
|
const profession = ref('');
|
||||||
|
|||||||
Reference in New Issue
Block a user