feat(careerfair): 优化招聘会页面加载逻辑

- 异步加载招聘会数据
- 移除调试代码
- 简化登录状态检查逻辑
- 优化 exhibitors 页面跳转条件判断
- 移除冗余的登录提示信息
This commit is contained in:
hanguangpu01
2025-12-09 17:48:07 +08:00
parent aa4b185aa2
commit 99aea9e243

View File

@@ -132,7 +132,7 @@
});
const baseUrl = config.imgBaseUrl;
onLoad(() => {
onLoad(async () => {
// const today = new Date();
// const year = today.getFullYear();
// const month = String(today.getMonth() + 1).padStart(2, '0');
@@ -143,9 +143,7 @@
// startDate: currentDate,
// });
// weekList.value = result;
if(thirdLogin()){
getHeart();
}
});
onShow(() => {
@@ -216,7 +214,6 @@
async function goDetail(jobFairId){
if(await thirdLogin()){
debugger
if(state.current != 3){
navTo('/packageA/pages/exhibitors/exhibitors?jobFairId=' + jobFairId)
}else{
@@ -306,7 +303,6 @@
getUser();
} else {
isLogin.value = false;
$api.msg('请先登录')
getFair("refresh");
}
});