简历投递添加确认弹窗、企业招聘会自动更新统一社会信用代码及userid
This commit is contained in:
@@ -323,6 +323,14 @@
|
||||
const deliveringJobs = reactive({});
|
||||
// 岗位投递
|
||||
function deliverResume(job) {
|
||||
uni.showModal({
|
||||
title: "提示",
|
||||
content: "请确认是否投递简历?",
|
||||
showCancel: true,
|
||||
confirmText: "确定",
|
||||
cancelText: "取消",
|
||||
success: (res) => {
|
||||
if(res.confirm){
|
||||
if(deliveringJobs[job.jobId]) return
|
||||
deliveringJobs[job.jobId] = true
|
||||
const raw = uni.getStorageSync("Padmin-Token");
|
||||
@@ -365,6 +373,11 @@
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
// 提交面试邀请
|
||||
const submitInterview = () => {
|
||||
if (!interviewForm.date) {
|
||||
|
||||
@@ -339,11 +339,27 @@
|
||||
// 正确映射响应为用户信息(优先使用 data 字段)
|
||||
const data = resData?.data ?? resData;
|
||||
userInfo.value = data || {};
|
||||
if(data?.info?.entCreditCode && data?.info?.userId){
|
||||
updateEnterpriseId({
|
||||
unifiedSocialCreditCode: data?.info?.entCreditCode,
|
||||
userId: data?.info?.userId,
|
||||
})
|
||||
}
|
||||
getFair("refresh");
|
||||
return userInfo.value;
|
||||
});
|
||||
}
|
||||
|
||||
function updateEnterpriseId(params){
|
||||
const headers = {
|
||||
'Content-Type':'application/json'
|
||||
}
|
||||
return $api.myRequest("/jobfair/public/job-fair-sign-up-enterprise/update-enterprise-id", params, "POST", 9100, headers).then((resData) => {
|
||||
if(resData.code == 200 && resData.data !=0){
|
||||
state.current = 3
|
||||
getMyFair("refresh");
|
||||
}
|
||||
});
|
||||
}
|
||||
function getMyFair(type = "add") {
|
||||
if (type === "refresh") {
|
||||
pageState.pageNum = 1;
|
||||
|
||||
Reference in New Issue
Block a user