fix:跳转社招新员工页面

This commit is contained in:
zxj
2025-12-17 21:33:25 +08:00
parent cc21f771c8
commit c561c82638
2 changed files with 21 additions and 20 deletions

View File

@@ -418,20 +418,20 @@ export default {
window.open(obj[val]); window.open(obj[val]);
}, },
async handleCommand(val) { async handleCommand(val) {
if (val === "five") {
// 从后端获取用户信息和报名状态
const res = await getWelcomeData();
if (res.status === 200 && res.data) {
if (res.data?.approvalResults && res.data?.approvalResults != 1) {
this.$router.push("/new-employee/study");
return;
}
}
}
if (val === "four") { if (val === "four") {
window.open("https://m.qingxuetang.com/x/?appId=qxtcorp306130"); window.open("https://m.qingxuetang.com/x/?appId=qxtcorp306130");
// this.$emit('showClass',true) // this.$emit('showClass',true)
} else { } else {
if (val === "five") {
// 从后端获取用户信息和报名状态
const res = await getWelcomeData();
if (res.status === 200 && res.data) {
if (res.data?.approvalResults && res.data?.approvalResults != 1) {
this.$router.push("/new-employee/study");
return;
}
}
}
let urlPre = window.location.protocol + "//" + window.location.host; let urlPre = window.location.protocol + "//" + window.location.host;
// process.env.VUE_APP_BOE_WEB_URL // process.env.VUE_APP_BOE_WEB_URL
let obj = { let obj = {

View File

@@ -422,19 +422,20 @@ export default {
// four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130', // four: 'https://m.qingxuetang.com/x/?appId=qxtcorp306130',
// five: process.env.VUE_APP_BOE_WEB_URL+'/boe/new-employee/index.html' // five: process.env.VUE_APP_BOE_WEB_URL+'/boe/new-employee/index.html'
// }; // };
if (val === "five") {
// 从后端获取用户信息和报名状态
const res = await getWelcomeData();
if (res.status === 200 && res.data) {
if (res.data?.approvalResults && res.data?.approvalResults != 1) {
this.$router.push("/new-employee/study");
return;
}
}
}
if (val === "for") { if (val === "for") {
this.uClassShow = true; this.uClassShow = true;
} else { } else {
if (val === "five") {
// 从后端获取用户信息和报名状态
const res = await getWelcomeData();
if (res.status === 200 && res.data) {
if (res.data?.approvalResults && res.data?.approvalResults != 1) {
this.$router.push("/new-employee/study");
return;
}
}
}
let urlPre = window.location.protocol + "//" + window.location.host; let urlPre = window.location.protocol + "//" + window.location.host;
// process.env.VUE_APP_BOE_WEB_URL // process.env.VUE_APP_BOE_WEB_URL
let obj = { let obj = {