From 988837b3fbffb8abea06dcb875f5746b9fce3c57 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期四, 20 二月 2025 18:22:20 +0800 Subject: [PATCH] fix: 页面 --- apps/taro/src/pages/home/index.vue | 28 ++++++++++++---------------- 1 files changed, 12 insertions(+), 16 deletions(-) diff --git a/apps/taro/src/pages/home/index.vue b/apps/taro/src/pages/home/index.vue index 42fca5c..44c8fdb 100644 --- a/apps/taro/src/pages/home/index.vue +++ b/apps/taro/src/pages/home/index.vue @@ -1,7 +1,7 @@ <template> <PageLayoutWithBg class="index-page-wrapper" :title="'鐢熸椿缂磋垂'" :need-auth="false"> <ContentView> - <RechargeGrid /> + <RechargeGrid @phoneBillRecharge="goPhoneBillRecharge" /> </ContentView> </PageLayoutWithBg> </template> @@ -10,25 +10,21 @@ import { useUser, useInfiniteLoading } from '@/hooks'; import { useUserStore } from '@/stores/modules/user'; import Taro from '@tarojs/taro'; -import _ from 'lodash'; import IconLogo from '@/assets/home/icon-logo.png'; import { OrderInputType } from '@life-payment/constants'; import { RechargeGrid } from '@life-payment/components'; -const { locationCity } = useUser(); - -const userStore = useUserStore(); - -const queryState = reactive({}); - -const list = ref([ - 'https://storage.360buyimg.com/jdc-article/NutUItaro34.jpg', - 'https://storage.360buyimg.com/jdc-article/NutUItaro2.jpg', - 'https://storage.360buyimg.com/jdc-article/welcomenutui.jpg', - 'https://storage.360buyimg.com/jdc-article/fristfabu.jpg', -]); - -const selectItem = ref(); +function goPhoneBillRecharge() { + Taro.navigateTo({ + url: RouterPath.phoneBillRecharge, + }) + .then(() => { + console.log('Navigate successfully'); + }) + .catch((err) => { + console.error('Navigation failed:', err); + }); +} </script> <style lang="scss"> -- Gitblit v1.9.1