From 500078714411487af00161e01bd7e0b5efdc3414 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期四, 07 八月 2025 13:32:32 +0800
Subject: [PATCH] add:热门景点
---
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