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:06:09 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
424895b11c4127e3511b95fc5a9a2de4113db259
424895b1
1 parent
54884d7e
fix: 调整数字滚动动画延迟时间从300ms到500ms
增加延迟时间让用户更清楚地看到滚动效果
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/pages/Dashboard/index.vue
src/pages/Dashboard/index.vue
View file @
424895b
<!--
* @Date: 2025-08-27 17:43:45
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-10-25
18:22:46
* @LastEditTime: 2025-10-25
20:05:09
* @FilePath: /lls_program/src/pages/Dashboard/index.vue
* @Description: 首页
-->
...
...
@@ -295,7 +295,7 @@ const handleStepsSynced = async () => {
console.log('微信步数同步完成,开始刷新Dashboard页面数据')
// 步数同步完成后,调用统一的数据刷新函数
await refreshDashboardData();
// 如果已经触发过页面滚动,则在数据刷新后触发数字滚动
if (hasTriggeredNumberRoll.value) {
setTimeout(() => {
...
...
@@ -720,7 +720,7 @@ const triggerNumberRollForDataReload = () => {
if (rankingCardRef.value && rankingCardRef.value.resetNumberRoll) {
rankingCardRef.value.resetNumberRoll()
}
// 延迟一点时间再触发,让用户看到滚动效果
setTimeout(() => {
if (rankingCardRef.value && rankingCardRef.value.startNumberRoll) {
...
...
@@ -730,6 +730,6 @@ const triggerNumberRollForDataReload = () => {
setTimeout(() => {
isNumberRollInProgress.value = false
}, 1000) // 假设滚动动画需要1秒
},
3
00)
},
5
00)
}
</script>
...
...
Please
register
or
login
to post a comment