feat(drone-dock): 完成交付成片UI及首页入口适配
包含全部剩余改动:交付上传与游客确认流程、相关真机测试、drone_dock入口、后端接口与原型复核文档、截图及周报。
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
import SnapKit
|
||||
import UIKit
|
||||
|
||||
/// 拍摄订单页仅发出导航意图,由工作台协调器处理尚未搭建的下级页面。
|
||||
/// 拍摄订单页发出明确导航意图,由工作台协调器展示对应下级页面。
|
||||
@MainActor
|
||||
protocol DroneShootingOrdersViewControllerDelegate: AnyObject {
|
||||
/// 用户请求开始、继续、重新准备拍摄,或查看当前任务。
|
||||
func shootingOrdersViewController(_ controller: DroneShootingOrdersViewController, didSelectShooting order: DroneShootingOrder)
|
||||
/// 用户请求查看该订单的原素材。
|
||||
func shootingOrdersViewController(_ controller: DroneShootingOrdersViewController, didSelectMaterials order: DroneShootingOrder)
|
||||
/// 用户请求交付成片;当前阶段只提供外观及导航回调。
|
||||
/// 用户请求追加交付成片。
|
||||
func shootingOrdersViewController(_ controller: DroneShootingOrdersViewController, didSelectDelivery order: DroneShootingOrder)
|
||||
/// 用户请求整单游客确认或查看确认记录。
|
||||
func shootingOrdersViewController(_ controller: DroneShootingOrdersViewController, didSelectConfirmation order: DroneShootingOrder)
|
||||
}
|
||||
|
||||
/// 当前用户在当前景区的拍摄订单页面;使用本地 ViewModel 展示四种履约分类。
|
||||
@@ -41,8 +43,13 @@ final class DroneShootingOrdersViewController: BaseViewController {
|
||||
/// 回到页面后读取共享的本地快照,不创建或重新发送任务。
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
super.viewWillAppear(animated)
|
||||
refreshOrders()
|
||||
}
|
||||
|
||||
/// 成片弹层关闭后主动读取共享摘要,保留当前 Tab 与滚动位置。
|
||||
func refreshOrders() {
|
||||
viewModel.refresh()
|
||||
applySnapshot(animatingDifferences: false)
|
||||
if isViewLoaded { applySnapshot(animatingDifferences: false) }
|
||||
}
|
||||
|
||||
override func setupNavigationBar() {
|
||||
@@ -151,6 +158,10 @@ final class DroneShootingOrdersViewController: BaseViewController {
|
||||
guard let self else { return }
|
||||
self.delegate?.shootingOrdersViewController(self, didSelectDelivery: order)
|
||||
}
|
||||
cell.cardView.onConfirmationTap = { [weak self] in
|
||||
guard let self else { return }
|
||||
self.delegate?.shootingOrdersViewController(self, didSelectConfirmation: order)
|
||||
}
|
||||
return cell
|
||||
}
|
||||
dataSource?.supplementaryViewProvider = { [weak self] list, kind, indexPath in
|
||||
|
||||
Reference in New Issue
Block a user