From ad032ad0889156572271868601d6665e560318b4 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期四, 06 三月 2025 13:04:29 +0800 Subject: [PATCH] fix: 对接 --- apps/taro/src/pages/home/index.vue | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/apps/taro/src/pages/home/index.vue b/apps/taro/src/pages/home/index.vue index e349db9..be8d149 100644 --- a/apps/taro/src/pages/home/index.vue +++ b/apps/taro/src/pages/home/index.vue @@ -1,24 +1,35 @@ <template> <PageLayoutWithBg class="index-page-wrapper" :title="'鐢熸椿缂磋垂'" :need-auth="false"> <ContentView> - <RechargeGrid @phoneBillRecharge="goPhoneBillRecharge" /> + <RechargeGrid + @phoneBillRecharge="goPhoneBillRecharge" + @electricityBillRecharge="goElectricityBillRecharge" + /> </ContentView> </PageLayoutWithBg> </template> <script setup lang="ts"> -import { useUser, useAccessLogin } from '@/hooks'; +import { useAccessLogin } from '@/hooks'; import { useUserStore } from '@/stores/modules/user'; import Taro from '@tarojs/taro'; -import IconLogo from '@/assets/home/icon-logo.png'; import { OrderInputType } from '@life-payment/constants'; import { RechargeGrid } from '@life-payment/components'; + +const userStore = useUserStore(); + +const router = Taro.useRouter(); const goPhoneBillRecharge = useAccessLogin(() => { Taro.navigateTo({ url: `${RouterPath.phoneBillRecharge}`, }); }); +const goElectricityBillRecharge = useAccessLogin(() => { + Taro.navigateTo({ + url: `${RouterPath.electricBillRecharge}`, + }); +}); </script> <style lang="scss"> -- Gitblit v1.9.1