From 14368e8a09c4b5793d0975f85e36a4c1d410ca36 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 16 五月 2025 17:27:24 +0800
Subject: [PATCH] feat: UI

---
 apps/taro/src/utils/page.ts |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/apps/taro/src/utils/page.ts b/apps/taro/src/utils/page.ts
index 1652ec0..1d45c4e 100644
--- a/apps/taro/src/utils/page.ts
+++ b/apps/taro/src/utils/page.ts
@@ -12,7 +12,7 @@
   if (pages.length > 1) {
     Taro.navigateBack({ delta: delta });
   } else {
-    Taro.switchTab({
+    RouteHelper.switchTab({
       url: Object.values(TabBarPageRouter)[systemStore.activeTab],
     });
   }
@@ -21,7 +21,7 @@
 export function goHome() {
   const systemStore = useSystemStoreWithOut();
   systemStore.setTabIndex(0);
-  Taro.switchTab({
+  RouteHelper.switchTab({
     url: TabBarPageRouter['Home'],
   });
 }
@@ -49,7 +49,14 @@
   }
 
   static navigateTo(option: Taro.navigateTo.Option) {
-    Taro.navigateTo({
+    return Taro.navigateTo({
+      ...option,
+      url: pathAddExtraParam(option.url, { channelId: blLifeRecharge.accountModel.channlesNum }),
+    });
+  }
+
+  static redirectTo(option: Taro.redirectTo.Option) {
+    return Taro.redirectTo({
       ...option,
       url: pathAddExtraParam(option.url, { channelId: blLifeRecharge.accountModel.channlesNum }),
     });

--
Gitblit v1.9.1