在招职位列表显示

This commit is contained in:
francis_fh
2026-01-15 19:59:55 +08:00
parent a299608fca
commit a663010b61
6 changed files with 37 additions and 28 deletions

View File

@@ -107,7 +107,7 @@
<text class="title">公司信息</text>
<text
class="btntext button-click"
@click="navTo(`/packageA/pages/UnitDetails/UnitDetails?companyId=${jobInfo.company.companyId}`)"
@click="handleCompanyDetailClick"
>
单位详情
</text>
@@ -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('没有企业信息');
}
}
</script>
<style lang="stylus" scoped>