添加红点修复

This commit is contained in:
张成
2025-11-21 14:50:42 +08:00
parent 27264011a1
commit 1c8b6163bb
17 changed files with 485 additions and 1202 deletions

View File

@@ -47,25 +47,7 @@ const GuideBar = (props) => {
return;
}
// 否则使用路由跳转(兼容模式)
let url = `/pages/${code}/index`;
if (code === "personal") {
url = "/user_pages/myself/index";
}
if (code === "message") {
url = "/other_pages/message/index";
}
if (code === "list") {
url = "/main_pages/index"
}
redirectTo({
url: url,
}).then(() => {
(Taro as any).pageScrollTo({
scrollTop: 0,
duration: 300,
});
});
};
return (

View File

@@ -58,10 +58,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.navigateBack();
},
});
@@ -97,7 +97,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/edit/index" });