flat: 性能优化,animation 等\preload等

This commit is contained in:
Apcallover
2025-12-01 20:29:19 +08:00
parent ecfacd13e3
commit 16b8ca84cd
20 changed files with 169 additions and 64 deletions

View File

@@ -83,6 +83,13 @@ onLoad(() => {
if (fristEntry) {
uni.hideTabBar();
}
// 预加载较重页面
setTimeout(() => {
uni.preloadPage({ url: '/packageA/pages/post/post' });
uni.preloadPage({ url: '/pages/nearby/nearby' });
uni.preloadPage({ url: '/pages/chat/chat' });
uni.preloadPage({ url: '/packageA/pages/choiceness/choiceness' });
}, 3000);
});
onShow(() => {