对接招聘会接口

This commit is contained in:
xiebin
2025-11-22 18:53:52 +08:00
parent 4b8056b716
commit 99f02927ac
7 changed files with 688 additions and 91 deletions

View File

@@ -21,7 +21,7 @@
<image src="@/static/icon/companyIcon.png" mode=""></image>
</view>
<view class="companyinfo-right">
<view class="row1">{{ companyInfo?.name }}</view>
<view class="row1">{{ companyInfo?.gsmc }}</view>
<view class="row2">
<dict-tree-Label
v-if="companyInfo?.industry"
@@ -30,12 +30,13 @@
></dict-tree-Label>
<span v-if="companyInfo?.industry">&nbsp;</span>
<dict-Label dictType="scale" :value="companyInfo?.scale"></dict-Label>
<span>{{companyInfo.gsxy}}</span>
</view>
</view>
</view>
<view class="conetent-info" :class="{ expanded: isExpanded }">
<view class="info-title">公司介绍</view>
<view class="info-desirption">{{ companyInfo.description }}</view>
<view class="info-desirption">{{ companyInfo.qyxz }}</view>
<!-- <view class="info-title title2">公司地址</view>
<view class="locationCompany"></view> -->
</view>
@@ -47,7 +48,8 @@
src="@/static/icon/downs.png"
></image>
</view>
<scroll-view scroll-y class="Detailscroll-view" @scrolltolower="getJobsList('add')">
<!-- <scroll-view scroll-y class="Detailscroll-view" @scrolltolower="getJobsList('add')"> -->
<scroll-view scroll-y class="Detailscroll-view">
<view class="views">
<view class="Detail-title"><text class="title">在招职位</text></view>
<renderJobs
@@ -85,32 +87,32 @@ const companyInfo = ref({});
onLoad((options) => {
console.log(options);
getCompanyInfo(options.companyId || options.bussinessId);
getCompanyInfo(options.companyId,options.companyName,options.zphId);
});
function companyCollection() {
const companyId = companyInfo.value.companyId;
const companyId = companyInfo.value.gsID;
if (companyInfo.value.isCollection) {
$api.createRequest(`/app/company/collection/${companyId}`, {}, 'DELETE').then((resData) => {
getCompanyInfo(companyId);
// getCompanyInfo(companyId);
$api.msg('取消收藏成功');
});
} else {
$api.createRequest(`/app/company/collection/${companyId}`, {}, 'POST').then((resData) => {
getCompanyInfo(companyId);
// getCompanyInfo(companyId);
$api.msg('收藏成功');
});
}
}
function getCompanyInfo(id) {
$api.createRequest(`/app/company/${id}`).then((resData) => {
function getCompanyInfo(companyId,companyName,zphId) {
$api.createRequest(`/app/internal/companyThirdPart/${companyId}`).then((resData) => {
companyInfo.value = resData.data;
getJobsList();
getJobsList(companyId,companyName,zphId);
});
}
function getJobsList(type = 'add') {
function getJobsList(companyId,companyName,zphId,type='add') {
if (type === 'refresh') {
pageState.page = 1;
pageState.maxPage = 1;
@@ -122,13 +124,14 @@ function getJobsList(type = 'add') {
current: pageState.page,
pageSize: pageState.pageSize,
};
$api.createRequest(`/app/company/job/${companyInfo.value.companyId}`, params).then((resData) => {
$api.createRequest(`/app/internal/jobThirdPart?gsID=${companyId}&gsmc=${companyName}&zphID=${zphId}`, ).then((resData) => {
const { rows, total } = resData;
if (type === 'add') {
const str = pageState.pageSize * (pageState.page - 1);
const end = pageState.list.length;
const reslist = rows;
pageState.list.splice(str, end, ...reslist);
// const str = pageState.pageSize * (pageState.page - 1);
// const end = pageState.list.length;
// const reslist = rows;
// pageState.list.splice(str, end, ...reslist);
pageState.list = rows
} else {
pageState.list = rows;
}