From f3ea52bf97e61f6917ccaab904817d74d9d4860c Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期四, 17 七月 2025 09:55:36 +0800 Subject: [PATCH] init --- components/footer/customer-footer.vue | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/components/footer/customer-footer.vue b/components/footer/customer-footer.vue index 423802c..4035861 100644 --- a/components/footer/customer-footer.vue +++ b/components/footer/customer-footer.vue @@ -19,6 +19,8 @@ <script setup lang="ts"> import { ref, computed } from 'vue' +import { useNavigator } from '@/composables/useNavigator' +const { navigateTo, reLaunchTo} = useNavigator() interface TabItem { text: string @@ -33,9 +35,9 @@ const tabBar = ref<TabItem[]>([ { text: '首页', pagePath: '/pages/home/home' }, - { text: '影视地图', pagePath: '/sub-pages/film-map/index' }, - { text: '我的种草', pagePath: '/sub-pages/customer/shopping/shopping' }, - { text: '社区', pagePath: '/sub-pages/community/index' }, + // { text: '影视地图', pagePath: '/sub-pages/film-map/index' }, + // { text: '我的种草', pagePath: '/sub-pages/customer/shopping/shopping' }, + { text: '草原', pagePath: '/sub-pages/community/index' }, { text: '我的', pagePath: '/sub-pages/mine/index' }, ]) @@ -57,9 +59,12 @@ }) function go(index: number, item: TabItem) { - uni.reLaunch({ - url: item.pagePath, - }) + // uni.reLaunch({ + // url: item.pagePath, + // }) + + reLaunchTo(item.pagePath) + } </script> -- Gitblit v1.9.3