feat(drone-dock): 实现局域网扫码直传交付
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user