feat: 统一机巢加载体验并对齐到达态界面
工作台、准备页、任务首次读取和景区空境库复用应用通用 Loading;到达态按 Web 展示,保留倒计时及手动开拍权限。新增图传几何诊断,不改变 Fit 渲染或设备连接行为。 验证:App 与测试包无签名 build-for-testing 编译通过,git diff --check 通过。iPhone 11 当前 unavailable,真机回归待设备重连后执行。
This commit is contained in:
@@ -3,7 +3,7 @@ import UIKit
|
||||
|
||||
/// 展示准备信息并提交召唤;业务成功后携同一任务 ID 进入真实拍摄任务页。
|
||||
@MainActor
|
||||
final class DroneDockRemotePreparationViewController: BaseViewController {
|
||||
final class DroneDockRemotePreparationViewController: GlobalLoadingPageViewController {
|
||||
/// 当前订单、准备信息及任务创建状态。
|
||||
let viewModel: DroneDockPreparationViewModel
|
||||
|
||||
@@ -162,6 +162,7 @@ final class DroneDockRemotePreparationViewController: BaseViewController {
|
||||
startPlaneStatusPolling()
|
||||
guard !isRefreshing else { return }
|
||||
isRefreshing = true
|
||||
setPageLoading(viewModel.projectInfo == nil)
|
||||
refreshTask = Task { @MainActor [weak self] in
|
||||
guard let self else { return }
|
||||
let isInitialLoad = self.viewModel.projectInfo == nil
|
||||
@@ -169,6 +170,7 @@ final class DroneDockRemotePreparationViewController: BaseViewController {
|
||||
await self.viewModel.refresh()
|
||||
guard !Task.isCancelled else { return }
|
||||
self.isRefreshing = false
|
||||
self.setPageLoading(false)
|
||||
self.refreshControl.endRefreshing()
|
||||
self.applySnapshot(animated: true) { [weak self] in
|
||||
guard let self else { return }
|
||||
|
||||
Reference in New Issue
Block a user