This commit is contained in:
张成
2025-11-15 12:32:24 +08:00
parent 46768991f8
commit 334bbf1609
9 changed files with 19 additions and 20 deletions

View File

@@ -43,7 +43,7 @@ const GuideBar = (props) => {
url = "/other_pages/message/index";
}
if (code === "list") {
url = "/game_pages/list/index"
url = "/main_pages/index"
}
redirectTo({
url: url,

View File

@@ -97,7 +97,7 @@ const HomeNavbar = (props: IProps) => {
// 点击logo
const handleLogoClick = () => {
// 如果当前在列表页,点击后页面回到顶部
if (getCurrentFullPath() === "/game_pages/list/index") {
if (getCurrentFullPath() === "/main_pages/index") {
// 使用父组件传递的滚动方法(适配 ScrollView
if (onScrollToTop) {
onScrollToTop();
@@ -110,7 +110,7 @@ const HomeNavbar = (props: IProps) => {
}
}
(Taro as any).redirectTo({
url: "game_pages/list/index", // 列表页
url: "/main_pages/index", // 列表页
});
};

View File

@@ -31,10 +31,10 @@ function NTRPTestEntryCard(props: {
setCallback({
type,
next: () => {
Taro.redirectTo({ url: "/game_pages/list/index" });
Taro.redirectTo({ url: "/main_pages/index" });
},
onCancel: () => {
Taro.redirectTo({ url: "/game_pages/list/index" });
Taro.redirectTo({ url: "/main_pages/index" });
},
});
case (EvaluateScene.detail, EvaluateScene.publish):
@@ -43,7 +43,7 @@ function NTRPTestEntryCard(props: {
setCallback({
type,
next: () => {
Taro.redirectTo({ url: "/game_pages/list/index" });
Taro.redirectTo({ url: "/main_pages/index" });
},
onCancel: () => {
Taro.redirectTo({ url: "/user_pages/myself/index" });
@@ -53,10 +53,10 @@ function NTRPTestEntryCard(props: {
setCallback({
type,
next: () => {
Taro.redirectTo({ url: "/game_pages/list/index" });
Taro.redirectTo({ url: "/main_pages/index" });
},
onCancel: () => {
Taro.redirectTo({ url: "/game_pages/list/index" });
Taro.redirectTo({ url: "/main_pages/index" });
},
});
}