优化冷启动流程:Launch Screen 对齐 Splash,仅阻塞 rolePermissions。

移除 SplashCoordinator,bootstrap 期间用 SplashView 覆盖避免空白闪屏,其余账号数据改为后台补充刷新。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-30 09:56:49 +08:00
parent d2fe5d71e4
commit 258c438f9a
15 changed files with 545 additions and 223 deletions

View File

@ -10,13 +10,13 @@
App 启动链路为:
**`suixinkanApp``RootView``SplashView` 覆盖层 + 并行 bootstrap → 按 `AppSession.phase` 展示 `LoginView``MainTabsView`**
**`suixinkanApp``RootView`阻塞 `rolePermissions` + 后台补充 bootstrap → 按 `AppSession.phase` 展示 `LoginView``MainTabsView`**
用户感知的「启动 Loading」并非 Lottie 全局 Loading而是
1. **系统 Launch Screen**白底 + LogoiOS 原生)
2. **应用内 `SplashView`**品牌页bootstrap 完成即结束,无固定最短展示时长
3. **有 token 时的 `.restoring` 阶段**Splash 下方空白背景,等待 4 个 API 完成
1. **系统 Launch Screen**品牌页iOS 原生)
2. **`.restoring` 短暂空白**(仅等待 `rolePermissions`,完成后立即进主界面
3. **后台补充刷新**`userInfo``scenicListAll``storeAll`,不阻塞首屏
冷启动期间 **不使用** `GlobalLoadingCenter` / Lottie 动画。