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-10-25 20:14:21 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
157f84a75b54478a2bdac24b52d6ba24f65f41bd
157f84a7
1 parent
424895b1
fix: 将固定家庭总数改为随机四位数
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
src/components/RankingCard.vue
src/pages/FamilyRank/index.vue
src/components/RankingCard.vue
View file @
157f84a
<!--
* @Date: 2025-01-09 00:00:00
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-10-25 20:
00:46
* @LastEditTime: 2025-10-25 20:
13:01
* @FilePath: /lls_program/src/components/RankingCard.vue
* @Description: 排行榜卡片组件
-->
...
...
@@ -334,7 +334,8 @@ const loadLeaderboardData = async (isInitialLoad = false) => {
// 设置当前日期
currentDate.value = response.data.yesterday
// TODO: 设置总家庭数
currentTotalFamilySum.value = 2318;
// 生成随机的4位数
currentTotalFamilySum.value = Math.floor(1000 + Math.random() * 9000);
}
} catch (error) {
console.error('获取排行榜数据失败:', error)
...
...
src/pages/FamilyRank/index.vue
View file @
157f84a
...
...
@@ -371,7 +371,8 @@ const loadLeaderboardData = async (isInitialLoad = false) => {
}
currentDate.value = response.data.yesterday
// TODO: 设置总家庭数
currentTotalFamilySum.value = 2318;
// 生成随机的4位数
currentTotalFamilySum.value = Math.floor(1000 + Math.random() * 9000);
}
} catch (error) {
console.error('获取排行榜数据失败:', error)
...
...
Please
register
or
login
to post a comment