From 1850d255a76872e0936317e5a2e9fedab077ae90 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:49:21 +0700 Subject: [PATCH] feat(orders): open order details in bottom sheet (no page transition) - Created OrderDetailBottomSheet.vue component (like KycBottomSheet) - Click on order in list opens bottom sheet instead of navigating - Slide-up animation with backdrop - Click backdrop or X to close --- .../catalog/OrderDetailBottomSheet.vue | 391 ++++++++++++++++++ app/pages/clientarea/orders/index.vue | 90 ++-- 2 files changed, 439 insertions(+), 42 deletions(-) create mode 100644 app/components/catalog/OrderDetailBottomSheet.vue diff --git a/app/components/catalog/OrderDetailBottomSheet.vue b/app/components/catalog/OrderDetailBottomSheet.vue new file mode 100644 index 0000000..95b821b --- /dev/null +++ b/app/components/catalog/OrderDetailBottomSheet.vue @@ -0,0 +1,391 @@ + + + + + + + + + + + + + + + + + {{ t('common.error') }} + {{ orderError }} + + + + + + + + + + {{ orderTitle }} + + #{{ order.name }} + {{ order.status }} + + + + + + + + + + + + + + + + + + + + + + + + {{ orderError }} + + {{ t('ordersDetail.errors.retry') }} + + + + + + + + + {{ meta }} + + + + + + + + {{ t('ordersDetail.sections.stages.title', 'Маршрут') }} + + + + + + + + + {{ stage.from }} + + → {{ stage.to }} + + + {{ stage.meta.join(' · ') }} + + + + + + + + + + + {{ t('ordersDetail.sections.timeline.title') }} + + + + + + + + + {{ t('ordersDetail.sections.map.title', 'Карта') }} + + + + + + + + + + + + + + + + + + + diff --git a/app/pages/clientarea/orders/index.vue b/app/pages/clientarea/orders/index.vue index 9c35e12..0ac3abd 100644 --- a/app/pages/clientarea/orders/index.vue +++ b/app/pages/clientarea/orders/index.vue @@ -1,17 +1,18 @@ - + + @@ -58,38 +59,35 @@ - - - - #{{ item.name }} - - {{ getStatusText(item.status) }} - + + #{{ item.name }} + + {{ getStatusText(item.status) }} + + + + + + {{ item.sourceLocationName }} - - - - {{ item.sourceLocationName }} - - - - {{ item.destinationLocationName }} - - - - {{ getOrderDate(item) }} + + + {{ item.destinationLocationName }} - + + {{ getOrderDate(item) }} + + @@ -105,7 +103,15 @@ {{ displayItems.length }} {{ t('catalog.of') }} {{ filteredItems.length }} - + + + + +