feat(drone-dock): 实现局域网扫码直传交付

This commit is contained in:
2026-10-30 14:50:34 +08:00
parent 0bc801f399
commit f99a175f99
25 changed files with 3084 additions and 74 deletions
@@ -13,6 +13,18 @@ enum DroneDockDeliveryEntry {
navigation.modalPresentationStyle = .pageSheet
navigation.onDidCloseCloud = onDidCloseCloud
methods.onClose = { [weak navigation] in navigation?.dismiss(animated: true) }
methods.onNearbyTransfer = { [weak navigation, weak methods] in
guard let navigation, let methods, navigation.topViewController === methods else { return }
let nearby = DroneDockNearbyTransferViewController(customerTitle: order.touristTitle)
nearby.onClose = { [weak navigation] in navigation?.dismiss(animated: true) }
navigation.isModalInPresentation = true
navigation.sheetPresentationController?.animateChanges {
navigation.sheetPresentationController?.detents = [.large()]
navigation.sheetPresentationController?.selectedDetentIdentifier = .large
}
navigation.setNavigationBarHidden(false, animated: true)
navigation.pushViewController(nearby, animated: true)
}
methods.onCloudUpload = { [weak navigation, weak methods] in
guard let navigation, let methods, navigation.topViewController === methods else { return }
let cloud = controllerFactory(order, context, taskID)