feat 对接外部数据投递功能
This commit is contained in:
@@ -46,10 +46,10 @@
|
|||||||
<view class="card-companyName">{{ job.companyName }}</view>
|
<view class="card-companyName">{{ job.companyName }}</view>
|
||||||
<view class="card-tags">
|
<view class="card-tags">
|
||||||
<view class="tag">
|
<view class="tag">
|
||||||
<dict-Label dictType="education" :value="job.education"></dict-Label>
|
{{job.education == '不限' ? '学历不限' : job.education}}
|
||||||
</view>
|
</view>
|
||||||
<view class="tag">
|
<view class="tag">
|
||||||
<dict-Label dictType="experience" :value="job.experience"></dict-Label>
|
{{job.experience == '不限' ? '经验不限' : job.experience}}
|
||||||
</view>
|
</view>
|
||||||
<view class="tag">
|
<view class="tag">
|
||||||
{{ vacanciesTo(job.vacancies) }}
|
{{ vacanciesTo(job.vacancies) }}
|
||||||
@@ -129,7 +129,7 @@ function parseDateTime(datetimeStr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function nextDetail(job) {
|
function nextDetail(job) {
|
||||||
navTo(`/packageA/pages/post/post?jobId=${btoa(job.jobId)}`);
|
navTo(`/packageA/pages/post/post?jobId=${btoa(job.jobId)}&dataType=${job.dataType}`);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -41,8 +41,6 @@ onReachBottom(() => {
|
|||||||
getJobList();
|
getJobList();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function getJobList(type = 'add') {
|
function getJobList(type = 'add') {
|
||||||
if (type === 'refresh') {
|
if (type === 'refresh') {
|
||||||
pageState.page = 1;
|
pageState.page = 1;
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
</view>
|
</view>
|
||||||
<scroll-view scroll-y class="main-scroll" @scrolltolower="getJobList('add')">
|
<scroll-view scroll-y class="main-scroll" @scrolltolower="getJobList('add')">
|
||||||
<view class="one-cards">
|
<view class="one-cards">
|
||||||
<view class="mian">
|
|
||||||
<renderJobViewRecord
|
<renderJobViewRecord
|
||||||
:list="pageState.list"
|
:list="pageState.list"
|
||||||
v-if="pageState.list.length"
|
v-if="pageState.list.length"
|
||||||
@@ -33,7 +32,7 @@
|
|||||||
></renderJobViewRecord>
|
></renderJobViewRecord>
|
||||||
<empty v-else pdTop="200"></empty>
|
<empty v-else pdTop="200"></empty>
|
||||||
<!-- <loadmore ref="loadmoreRef"></loadmore> -->
|
<!-- <loadmore ref="loadmoreRef"></loadmore> -->
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -162,8 +162,13 @@
|
|||||||
|
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<view class="footer">
|
<view class="footer">
|
||||||
<view class="btn-wq button-click" @click="jobApply">
|
<view v-if="dataType==2" class="btn-wq button-click" :class="{'btn-des' : jobInfo.isApply}" @click="jobApply">
|
||||||
{{ dataType === 2 ? '立即投递' : '立即前往' }}
|
<span v-if="jobInfo.isApply"> 已投递 </span>
|
||||||
|
<span v-if="!jobInfo.isApply"> 立即投递</span>
|
||||||
|
</view>
|
||||||
|
<view v-else class="btn-wq button-click" @click="jobApply">
|
||||||
|
<span v-if="jobInfo.isApply"> 立即前往</span>
|
||||||
|
<span v-if="!jobInfo.isApply">立即投递 </span>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -308,19 +313,18 @@ function getCompetivetuveness(jobId) {
|
|||||||
// 申请岗位
|
// 申请岗位
|
||||||
function jobApply() {
|
function jobApply() {
|
||||||
if (dataType.value === 2) {
|
if (dataType.value === 2) {
|
||||||
$api.msg('敬请期待');
|
|
||||||
return
|
|
||||||
// 第三方数据申请逻辑
|
// 第三方数据申请逻辑
|
||||||
const jobId = jobInfo.value.id;
|
const params = {
|
||||||
|
jobid:jobInfo.value.id,
|
||||||
|
jobname:jobInfo.value.gwmc
|
||||||
|
}
|
||||||
if (jobInfo.value.isApply) {
|
if (jobInfo.value.isApply) {
|
||||||
const jobUrl = jobInfo.value.jobUrl;
|
$api.msg('已经投递过该岗位了~');
|
||||||
return window.open(jobUrl);
|
return ;
|
||||||
} else {
|
} else {
|
||||||
$api.createRequest(`/app/job/apply/${jobId}`, {}, 'GET').then((resData) => {
|
$api.createRequest(`/app/internal/sendResume`, params, 'POST').then((resData) => {
|
||||||
getDetail(jobIdRef.value);
|
|
||||||
$api.msg('投递成功');
|
$api.msg('投递成功');
|
||||||
const jobUrl = jobInfo.value.jobUrl;
|
getDetail(jobIdRef.value);
|
||||||
return window.open(jobUrl);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -651,5 +655,9 @@ for i in 0..100
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 90rpx
|
line-height: 90rpx
|
||||||
}
|
}
|
||||||
|
.btn-des{
|
||||||
|
background: #6697FB;
|
||||||
|
box-shadow: 0rpx -4rpx 24rpx 0rpx rgba(11,44,112,0.12);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -259,8 +259,8 @@ function getHoursBetween(startTimeStr, endTimeStr) {
|
|||||||
|
|
||||||
const selectDate = (item) => {
|
const selectDate = (item) => {
|
||||||
if (currentDay.value?.fullDate === item.fullDate) {
|
if (currentDay.value?.fullDate === item.fullDate) {
|
||||||
currentDay.value = {};
|
// currentDay.value = {};
|
||||||
getFair('refresh');
|
// getFair('refresh');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
currentDay.value = item;
|
currentDay.value = item;
|
||||||
|
|||||||
Reference in New Issue
Block a user