diff --git a/packageA/pages/UnitDetails/UnitDetails.vue b/packageA/pages/UnitDetails/UnitDetails.vue
index 1a6e958..13e4745 100644
--- a/packageA/pages/UnitDetails/UnitDetails.vue
+++ b/packageA/pages/UnitDetails/UnitDetails.vue
@@ -140,6 +140,8 @@
isCollection: resData.data.isCollection || 0,
jobList: resData.data.jobList || [] // 使用正确的jobList字段
};
+ // 将职位列表数据赋值给jobInfoList,用于页面渲染
+ jobInfoList.value = resData.data.jobList || [];
console.log('Company details loaded successfully');
} else {
console.error('Failed to load company details:', resData?.msg || 'Unknown error');
@@ -151,6 +153,7 @@
isCollection: 0,
jobList: []
};
+ jobInfoList.value = [];
}
}).catch((error) => {
console.error('API error when fetching company details:', error);
@@ -162,6 +165,7 @@
isCollection: 0,
jobList: []
};
+ jobInfoList.value = [];
});
}
diff --git a/packageA/pages/jobExpect/jobExpect.vue b/packageA/pages/jobExpect/jobExpect.vue
index 7542a16..708e47c 100644
--- a/packageA/pages/jobExpect/jobExpect.vue
+++ b/packageA/pages/jobExpect/jobExpect.vue
@@ -67,9 +67,9 @@ const { dictLabel, oneDictData, getDictData } = useDictStore();
const selectJobsModel = ref();
const selectPopupRef = ref();
const percent = ref('0%');
-const salay = [2, 5, 10, 15, 20, 25, 30, 50, 80, 100];
+const salay = [2000, 5000, 10000, 15000, 20000, 25000, 30000, 50000, 80000, 100000];
const state = reactive({
- lfsalay: [2, 5, 10, 15, 20, 25, 30, 50],
+ lfsalay: [2000, 5000, 10000, 15000, 20000, 25000, 30000, 50000],
risalay: JSON.parse(JSON.stringify(salay)),
salayText: '',
areaText: '',
@@ -137,10 +137,10 @@ const changeSalary = () => {
title: '薪资',
maskClick: true,
data: [state.lfsalay, state.risalay],
- unit: 'k',
+ unit: '元',
success: (_, [min, max]) => {
- fromValue.salaryMin = min.value * 1000;
- fromValue.salaryMax = max.value * 1000;
+ fromValue.salaryMin = min.value;
+ fromValue.salaryMax = max.value;
state.salayText = `${fromValue.salaryMin}-${fromValue.salaryMax}`;
},
change(e) {
diff --git a/packageA/pages/myResume/myResume.vue b/packageA/pages/myResume/myResume.vue
index babf046..1079235 100644
--- a/packageA/pages/myResume/myResume.vue
+++ b/packageA/pages/myResume/myResume.vue
@@ -51,7 +51,7 @@
期望薪资:
- {{ userInfo.salaryMin / 1000 }}k-{{ userInfo.salaryMax / 1000 }}k
+ {{ userInfo.salaryMin }}元-{{ userInfo.salaryMax }}元
期望工作地:
diff --git a/packageA/pages/post/post.vue b/packageA/pages/post/post.vue
index 031d7bf..16514e1 100644
--- a/packageA/pages/post/post.vue
+++ b/packageA/pages/post/post.vue
@@ -107,7 +107,7 @@
公司信息
单位详情
@@ -340,9 +340,14 @@ function getDetail(jobId) {
}
function getCompanyIsAJobs(companyId) {
- $api.createRequest(`/app/company/count/${companyId}`).then((resData) => {
- companyCount.value = resData.data;
- });
+ if (companyId) {
+ $api.createRequest(`/app/company/count/${companyId}`).then((resData) => {
+ companyCount.value = resData.data;
+ });
+ }
+ // $api.createRequest(`/app/company/count/${companyId}`).then((resData) => {
+ // companyCount.value = resData.data;
+ // });
}
function getTextWidth(text, size = 12) {
@@ -508,6 +513,17 @@ function previewImage(url, index) {
function viewResume(userId) {
navTo(`/packageA/pages/resumeDetail/resumeDetail?userId=${userId}`);
}
+
+// 处理查看单位详情
+function handleCompanyDetailClick() {
+ // console.log('----企业ID--', jobInfo.value.company?.companyId)
+ // console.log('----企业data--', jobInfo.value)
+ if (jobInfo.value.company?.companyId) {
+ navTo(`/packageA/pages/UnitDetails/UnitDetails?companyId=${jobInfo.value.company.companyId}`);
+ } else {
+ $api.msg('没有企业信息');
+ }
+}