Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
lls_program
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-09-15 11:36:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2e7a639ff8a53dac0ce0ccd7f70af78ba24fe75e
2e7a639f
1 parent
1b33b2de
需求有改变,暂时屏蔽兑换主页面,写死跳转到个人兑换页面去
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
src/components/BottomNav.vue
src/components/PointsCollector.vue
src/components/TotalPointsDisplay.vue
src/pages/Rewards/index.vue
src/components/BottomNav.vue
View file @
2e7a639
<!--
* @Date: 2025-08-27 17:44:10
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-1
2 23:28:37
* @LastEditTime: 2025-09-1
5 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) => {
...
...
src/components/PointsCollector.vue
View file @
2e7a639
...
...
@@ -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',
})
}
...
...
src/components/TotalPointsDisplay.vue
View file @
2e7a639
...
...
@@ -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',
})
}
...
...
src/pages/Rewards/index.vue
View file @
2e7a639
...
...
@@ -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';
...
...
Please
register
or
login
to post a comment