From 64b52fa928e11640e8d6aad49bd39cd27c896543 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期五, 21 二月 2025 18:42:13 +0800 Subject: [PATCH] feat: 订单 --- apps/taro/src/pages/home/index.vue | 32 +++++++++++++++----------------- 1 files changed, 15 insertions(+), 17 deletions(-) diff --git a/apps/taro/src/pages/home/index.vue b/apps/taro/src/pages/home/index.vue index 42fca5c..aba6441 100644 --- a/apps/taro/src/pages/home/index.vue +++ b/apps/taro/src/pages/home/index.vue @@ -1,34 +1,32 @@ <template> <PageLayoutWithBg class="index-page-wrapper" :title="'鐢熸椿缂磋垂'" :need-auth="false"> <ContentView> - <RechargeGrid /> + <RechargeGrid + @phoneBillRecharge="goPhoneBillRecharge" + @electricityBillRecharge="goElectricityBillRecharge" + /> </ContentView> </PageLayoutWithBg> </template> <script setup lang="ts"> -import { useUser, useInfiniteLoading } from '@/hooks'; +import { useUser, useAccessLogin } 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(); +const goPhoneBillRecharge = useAccessLogin(() => { + Taro.navigateTo({ + url: `${RouterPath.phoneBillRecharge}`, + }); +}); +const goElectricityBillRecharge = useAccessLogin(() => { + Taro.navigateTo({ + url: `${RouterPath.electricBillRecharge}`, + }); +}); </script> <style lang="scss"> -- Gitblit v1.9.1