hookehuyr

feat: 更新底部导航栏,将"乐在重阳"改为"便民地图"

更新导航项标签和默认选中页面,以反映功能变更
1 <!-- 1 <!--
2 * @Date: 2025-08-27 17:44:10 2 * @Date: 2025-08-27 17:44:10
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-09-22 15:12:13 4 + * @LastEditTime: 2026-02-10 10:18:46
5 * @FilePath: /map-demo/src/components/BottomNav.vue 5 * @FilePath: /map-demo/src/components/BottomNav.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -42,7 +42,7 @@ const isMiniProgramWebView = computed(() => { ...@@ -42,7 +42,7 @@ const isMiniProgramWebView = computed(() => {
42 42
43 const navItems = shallowRef([ 43 const navItems = shallowRef([
44 { path: '/pages/Dashboard/index', icon: homeIcon, activeIcon: homeIconActive, label: '首页' }, 44 { path: '/pages/Dashboard/index', icon: homeIcon, activeIcon: homeIconActive, label: '首页' },
45 - { path: '/pages/ActivitiesCover/index', icon: activitiesIcon, activeIcon: activitiesIconActive, label: '乐在重阳' }, 45 + { path: '/pages/CheckinMap/index', icon: activitiesIcon, activeIcon: activitiesIconActive, label: '便民地图' },
46 // { path: '/pages/RewardCategories/index', icon: rewardsIcon, activeIcon: rewardsIconActive, label: '兑换' }, 46 // { path: '/pages/RewardCategories/index', icon: rewardsIcon, activeIcon: rewardsIconActive, label: '兑换' },
47 // TAG: 暂时写死以后可能会改变 47 // TAG: 暂时写死以后可能会改变
48 { path: '/pages/Rewards/index?id=health&category=health', icon: rewardsIcon, activeIcon: rewardsIconActive, label: '兑换' }, 48 { path: '/pages/Rewards/index?id=health&category=health', icon: rewardsIcon, activeIcon: rewardsIconActive, label: '兑换' },
...@@ -53,7 +53,7 @@ const currentPage = computed(() => { ...@@ -53,7 +53,7 @@ const currentPage = computed(() => {
53 // const pages = Taro.getCurrentPages(); 53 // const pages = Taro.getCurrentPages();
54 // return pages.length > 0 ? '/' + pages[pages.length - 1].route : ''; 54 // return pages.length > 0 ? '/' + pages[pages.length - 1].route : '';
55 // 默认选中活动页面 55 // 默认选中活动页面
56 - return '/pages/ActivitiesCover/index'; 56 + return '/pages/CheckinMap/index';
57 }); 57 });
58 58
59 const isActive = (path) => { 59 const isActive = (path) => {
......