Sync order detail and scanner verification

This commit is contained in:
2026-06-22 17:03:27 +08:00
parent 0b83a73509
commit c2652b83c4
15 changed files with 1456 additions and 54 deletions

View File

@ -13,6 +13,7 @@ enum AppRoute: Hashable {
case placeholder(title: String)
case home(HomeRoute)
case profile(ProfileRoute)
case orders(OrdersRoute)
/// NavigationStack push TabBar
var hidesTabBarWhenPushed: Bool {
@ -29,6 +30,21 @@ enum AppRoute: Hashable {
route.destinationView
case .profile(let route):
route.destinationView
case .orders(let route):
route.destinationView
}
}
}
extension OrdersRoute {
///
@ViewBuilder
var destinationView: some View {
switch self {
case .storeDetail(let item):
StoreOrderDetailView(item: item)
case .writeOffDetail(let item):
WriteOffOrderDetailView(item: item)
}
}
}