From 9c680ea2c5938d26065232d3a658a9a615e1f827 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 13 三月 2025 16:39:14 +0800
Subject: [PATCH] fix: 修改导航 在路由上强制增加channelId
---
apps/taro/src/pages/home/index.vue | 56 ++++++++++++++++++++++++++------------------------------
1 files changed, 26 insertions(+), 30 deletions(-)
diff --git a/apps/taro/src/pages/home/index.vue b/apps/taro/src/pages/home/index.vue
index c09afc4..2c96fe7 100644
--- a/apps/taro/src/pages/home/index.vue
+++ b/apps/taro/src/pages/home/index.vue
@@ -1,46 +1,42 @@
<template>
- <PageLayoutWithBg class="index-page-wrapper" :title="''" :need-auth="false">
- <template #left>
- <div class="menu-btn-wrapper menu-logo">
- <img :src="IconLogo" class="logo" />
- </div>
- </template>
- <div class="home-header">
- <div class="home-banner-wrapper">
- <nut-swiper :auto-play="3000">
- <nut-swiper-item v-for="(item, index) in list" :key="index">
- <img :src="item" class="banner-img" draggable="false" />
- </nut-swiper-item>
- </nut-swiper>
- </div>
- </div>
- <RechargeGrid />
+ <PageLayoutWithBg class="index-page-wrapper" :title="'鐢熸椿缂磋垂'" :need-auth="false">
+ <ContentView>
+ <RechargeGrid
+ @phoneBillRecharge="goPhoneBillRecharge"
+ @electricityBillRecharge="goElectricityBillRecharge"
+ @gasBillRecharge="goGasBillRecharge"
+ />
+ </ContentView>
</PageLayoutWithBg>
</template>
<script setup lang="ts">
-import { useUser, useInfiniteLoading } from '@/hooks';
+import { 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();
+import CustomTabBar from '../../custom-tab-bar/index';
const userStore = useUserStore();
-const queryState = reactive({});
+const router = Taro.useRouter();
-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(() => {
+ RouteHelper.navigateTo({
+ url: `${RouterPath.phoneBillRecharge}`,
+ });
+});
+const goElectricityBillRecharge = useAccessLogin(() => {
+ RouteHelper.navigateTo({
+ url: `${RouterPath.electricBillRecharge}`,
+ });
+});
+const goGasBillRecharge = useAccessLogin(() => {
+ RouteHelper.navigateTo({
+ url: `${RouterPath.gasBillRecharge}`,
+ });
+});
</script>
<style lang="scss">
--
Gitblit v1.9.1