hookehuyr

需求有改变,暂时屏蔽兑换主页面,写死跳转到个人兑换页面去

<!--
* @Date: 2025-08-27 17:44:10
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-12 23:28:37
* @LastEditTime: 2025-09-15 11:35:20
* @FilePath: /lls_program/src/components/BottomNav.vue
* @Description: 文件描述
-->
......@@ -36,7 +36,8 @@ const meIconActive = 'https://cdn.ipadbiz.cn/lls_prog/icon/me_active1.svg';
const navItems = shallowRef([
{ path: '/pages/Dashboard/index', icon: homeIcon, activeIcon: homeIconActive, label: '首页' },
{ path: '/pages/ActivitiesCover/index', icon: activitiesIcon, activeIcon: activitiesIconActive, label: '活动' },
{ path: '/pages/RewardCategories/index', icon: rewardsIcon, activeIcon: rewardsIconActive, label: '兑换' },
// { path: '/pages/RewardCategories/index', icon: rewardsIcon, activeIcon: rewardsIconActive, label: '兑换' },
{ path: '/pages/Rewards/index?id=health&category=health', icon: rewardsIcon, activeIcon: rewardsIconActive, label: '兑换' },
{ path: '/pages/Profile/index', icon: meIcon, activeIcon: meIconActive, label: '我的' },
]);
......@@ -46,7 +47,7 @@ const currentPage = computed(() => {
});
const isActive = (path) => {
return currentPage.value === path;
return path.includes(currentPage.value);
};
const navigate = (path) => {
......
......@@ -401,7 +401,6 @@ defineExpose({
const initData = async () => {
floatingItems.value = generatePointsData();
animatedTotalPoints.value = props.totalPoints;
console.warn('初始化积分数据', props.pendingPoints)
}
// 监听props变化
......@@ -427,7 +426,8 @@ const handleGoToRewards = () => {
return
}
Taro.navigateTo({
url: '/pages/RewardCategories/index',
// url: '/pages/RewardCategories/index',
url: '/pages/Rewards/index?id=health&category=health',
})
}
......
......@@ -113,7 +113,8 @@ const handleGoToRewards = () => {
return
}
Taro.navigateTo({
url: '/pages/RewardCategories/index',
// url: '/pages/RewardCategories/index',
url: '/pages/Rewards/index?id=health&category=health',
})
}
......
......@@ -93,7 +93,7 @@
</view>
</view>
</view>
<!-- <BottomNav /> -->
<BottomNav />
</view>
</template>
......@@ -101,6 +101,7 @@
import { ref, computed, onMounted, watch } from 'vue';
import Taro, { useDidShow } from '@tarojs/taro';
import { ScreenLittle, Search2, My, ArrowUp, ArrowDown } from '@nutui/icons-vue-taro';
import BottomNav from '../../components/BottomNav.vue';
// 导入接口
import { getUserProfileAPI } from '@/api/user';
import { getFamilyDashboardAPI } from '@/api/family';
......