From 92be5ef4fbb40e84e737d6ba8ef8dd0a741abc34 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 21 二月 2025 14:52:13 +0800
Subject: [PATCH] feat: 电费

---
 apps/taro/src/pages/home/index.vue |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/apps/taro/src/pages/home/index.vue b/apps/taro/src/pages/home/index.vue
index 44c8fdb..49528bf 100644
--- a/apps/taro/src/pages/home/index.vue
+++ b/apps/taro/src/pages/home/index.vue
@@ -1,7 +1,10 @@
 <template>
   <PageLayoutWithBg class="index-page-wrapper" :title="'鐢熸椿缂磋垂'" :need-auth="false">
     <ContentView>
-      <RechargeGrid @phoneBillRecharge="goPhoneBillRecharge" />
+      <RechargeGrid
+        @phoneBillRecharge="goPhoneBillRecharge"
+        @electricityBillRecharge="goElectricityBillRecharge"
+      />
     </ContentView>
   </PageLayoutWithBg>
 </template>
@@ -16,7 +19,18 @@
 
 function goPhoneBillRecharge() {
   Taro.navigateTo({
-    url: RouterPath.phoneBillRecharge,
+    url: `${RouterPath.phoneBillRecharge}`,
+  })
+    .then(() => {
+      console.log('Navigate successfully');
+    })
+    .catch((err) => {
+      console.error('Navigation failed:', err);
+    });
+}
+function goElectricityBillRecharge() {
+  Taro.navigateTo({
+    url: `${RouterPath.electricBillRecharge}`,
   })
     .then(() => {
       console.log('Navigate successfully');

--
Gitblit v1.9.1