| | |
| | | |
| | | <script setup lang="ts"> |
| | | import { ref, computed } from 'vue' |
| | | import { useNavigator } from '@/composables/useNavigator' |
| | | const { navigateTo, reLaunchTo} = useNavigator() |
| | | |
| | | interface TabItem { |
| | | text: string |
| | |
| | | |
| | | 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' }, |
| | | ]) |
| | | |
| | |
| | | }) |
| | | |
| | | function go(index: number, item: TabItem) { |
| | | uni.reLaunch({ |
| | | url: item.pagePath, |
| | | }) |
| | | // uni.reLaunch({ |
| | | // url: item.pagePath, |
| | | // }) |
| | | |
| | | reLaunchTo(item.pagePath) |
| | | |
| | | } |
| | | </script> |
| | | |