岗位详情页面弹窗优化
This commit is contained in:
@@ -218,7 +218,7 @@
|
|||||||
<view style="height: 34px"></view>
|
<view style="height: 34px"></view>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<view class="footer">
|
<view class="footer">
|
||||||
<view class="btn-wq button-click" @click="jobApply">投递简历</view>
|
<view class="btn-wq button-click" @click="jobApply">{{ jobInfo.isApply === 1 ? '取消投递简历' : '投递简历' }}</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<VideoPlayer ref="videoPalyerRef" />
|
<VideoPlayer ref="videoPalyerRef" />
|
||||||
@@ -226,11 +226,11 @@
|
|||||||
<!-- 确认弹窗 -->
|
<!-- 确认弹窗 -->
|
||||||
<view v-if="showConfirmDialog" class="confirm-dialog">
|
<view v-if="showConfirmDialog" class="confirm-dialog">
|
||||||
<view class="dialog-content">
|
<view class="dialog-content">
|
||||||
<view class="dialog-title">确认投递</view>
|
<view class="dialog-title">{{ jobInfo.isApply === 1 ? '确认取消投递' : '确认投递' }}</view>
|
||||||
<view class="dialog-message">确定要投递此职位吗?</view>
|
<view class="dialog-message">{{ jobInfo.isApply === 1 ? '确定要取消投递此职位吗?' : '确定要投递此职位吗?' }}</view>
|
||||||
<view class="dialog-buttons">
|
<view class="dialog-buttons">
|
||||||
<view class="btn-cancel button-click" @click="cancelApply">取消</view>
|
<view class="btn-cancel button-click" @click="hideDialog">取消</view>
|
||||||
<view class="btn-confirm button-click" @click="confirmApply">确认</view>
|
<view class="btn-confirm button-click" @click="confirmAction">确认</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -439,6 +439,31 @@ function jobApply() {
|
|||||||
showConfirmDialog.value = true;
|
showConfirmDialog.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 隐藏弹窗
|
||||||
|
function hideDialog() {
|
||||||
|
showConfirmDialog.value = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 确认操作
|
||||||
|
function confirmAction() {
|
||||||
|
const jobId = jobInfo.value.jobId;
|
||||||
|
if (jobInfo.value.isApply === 1) {
|
||||||
|
// 取消投递
|
||||||
|
$api.createRequest(`/app/job/applyJobCencal`, { jobId }, 'DELETE').then((resData) => {
|
||||||
|
$api.msg('取消投递成功');
|
||||||
|
getDetail(jobId); // 刷新职位信息
|
||||||
|
showConfirmDialog.value = false;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
// 确认投递
|
||||||
|
$api.createRequest(`/app/job/apply/${jobId}`, {}, 'GET').then((resData) => {
|
||||||
|
$api.msg('申请成功');
|
||||||
|
getDetail(jobId); // 刷新职位信息
|
||||||
|
showConfirmDialog.value = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 确认投递
|
// 确认投递
|
||||||
function confirmApply() {
|
function confirmApply() {
|
||||||
const jobId = jobInfo.value.jobId;
|
const jobId = jobInfo.value.jobId;
|
||||||
|
|||||||
Reference in New Issue
Block a user