feat(careerfair): 优化招聘会页面加载逻辑
- 异步加载招聘会数据 - 移除调试代码 - 简化登录状态检查逻辑 - 优化 exhibitors 页面跳转条件判断 - 移除冗余的登录提示信息
This commit is contained in:
@@ -132,7 +132,7 @@
|
|||||||
});
|
});
|
||||||
const baseUrl = config.imgBaseUrl;
|
const baseUrl = config.imgBaseUrl;
|
||||||
|
|
||||||
onLoad(() => {
|
onLoad(async () => {
|
||||||
// const today = new Date();
|
// const today = new Date();
|
||||||
// const year = today.getFullYear();
|
// const year = today.getFullYear();
|
||||||
// const month = String(today.getMonth() + 1).padStart(2, '0');
|
// const month = String(today.getMonth() + 1).padStart(2, '0');
|
||||||
@@ -143,9 +143,7 @@
|
|||||||
// startDate: currentDate,
|
// startDate: currentDate,
|
||||||
// });
|
// });
|
||||||
// weekList.value = result;
|
// weekList.value = result;
|
||||||
if(thirdLogin()){
|
|
||||||
getHeart();
|
getHeart();
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
@@ -216,7 +214,6 @@
|
|||||||
|
|
||||||
async function goDetail(jobFairId){
|
async function goDetail(jobFairId){
|
||||||
if(await thirdLogin()){
|
if(await thirdLogin()){
|
||||||
debugger
|
|
||||||
if(state.current != 3){
|
if(state.current != 3){
|
||||||
navTo('/packageA/pages/exhibitors/exhibitors?jobFairId=' + jobFairId)
|
navTo('/packageA/pages/exhibitors/exhibitors?jobFairId=' + jobFairId)
|
||||||
}else{
|
}else{
|
||||||
@@ -306,7 +303,6 @@
|
|||||||
getUser();
|
getUser();
|
||||||
} else {
|
} else {
|
||||||
isLogin.value = false;
|
isLogin.value = false;
|
||||||
$api.msg('请先登录')
|
|
||||||
getFair("refresh");
|
getFair("refresh");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user