调整页面调整细节

This commit is contained in:
ywyonui 2025-09-03 15:02:20 +08:00
parent 7e104cfbbb
commit fb4e90c518
5 changed files with 7 additions and 12 deletions

View File

@ -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();

View File

@ -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) => {
//

View File

@ -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,
});
}
} else {
uni.showToast({
title: dataObj.message,

View File

@ -48,6 +48,7 @@ const initGlobalData = (data: any) => {
}
}
gData.lxId = lxId;
gData.from = "launch";
setGlobal(gData);
return gData;
}

View File

@ -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",
});