调整页面调整细节
This commit is contained in:
parent
7e104cfbbb
commit
fb4e90c518
@ -265,7 +265,7 @@ function handleMenuClick(item: any) {
|
||||
url: item.path,
|
||||
});
|
||||
} else {
|
||||
setGlobal({ lxId: item.lxId });
|
||||
setGlobal({ lxId: item.lxId, from: 'home' });
|
||||
PageUtils.toHome(item.lxId);
|
||||
}
|
||||
}
|
||||
@ -306,6 +306,7 @@ const getArticleList = async () => {
|
||||
};
|
||||
|
||||
onMounted(async () => {
|
||||
setGlobal({ from: 'home' });
|
||||
// 确保有学生年级信息才获取通知公告
|
||||
if (curXs.value && curXs.value.njmcId) {
|
||||
getArticleList();
|
||||
|
||||
@ -145,8 +145,6 @@ const goToDetail = (xkkc: any) => {
|
||||
|
||||
const switchXk = (xk: any) => {
|
||||
xkkcList.value = xk.xkkcs || xk.xkkcList || [];
|
||||
console.log('switchXk', xk)
|
||||
|
||||
// 对课程列表进行排序:先按课程名称,再按课程名称中的序号,最后按上课时间
|
||||
xkkcList.value.sort((a: any, b: any) => {
|
||||
// 提取课程名称(去掉序号部分)
|
||||
|
||||
@ -173,6 +173,7 @@ const submit = debounce(async () => {
|
||||
title: res.message,
|
||||
icon: "none",
|
||||
});
|
||||
PageUtils.toHome(xklxId.value);
|
||||
}
|
||||
} catch (error: any) {
|
||||
hideLoading();
|
||||
@ -203,14 +204,7 @@ onLoad((options:any) => {
|
||||
if (dataObj.action === 'qk') {
|
||||
uni.hideLoading();
|
||||
if (dataObj.code === 1 && dataObj.data === "qk") {
|
||||
if (curXk.value.sfjf === 1) {
|
||||
PageUtils.toHome(xklxId.value);
|
||||
} else {
|
||||
// 不需要支付,直接跳转到支付成功页面
|
||||
uni.navigateTo({
|
||||
url: "/pages/base/xk/pay/success?xklxId=" + xklxId.value,
|
||||
});
|
||||
}
|
||||
PageUtils.toHome(xklxId.value);
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: dataObj.message,
|
||||
|
||||
@ -48,6 +48,7 @@ const initGlobalData = (data: any) => {
|
||||
}
|
||||
}
|
||||
gData.lxId = lxId;
|
||||
gData.from = "launch";
|
||||
setGlobal(gData);
|
||||
return gData;
|
||||
}
|
||||
|
||||
@ -27,7 +27,8 @@ export const PageUtils = {
|
||||
if (devFlag) {
|
||||
userStore.setCurXs(xsList[0]);
|
||||
} else {
|
||||
if (xsList && xsList.length > 1) {
|
||||
if (xsList && xsList.length > 1
|
||||
&& (dataStore.getGlobal && dataStore.getGlobal.from == 'launch')) {
|
||||
uni.reLaunch({
|
||||
url: "/pages/base/home/xsXz",
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user