From 16c0a8112ea8042c1450c4a8103ed29c13ef7527 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Wed, 21 Jan 2026 14:53:27 +0700 Subject: [PATCH] Add offer detail page /catalog/offers/[offerId] - New page shows offer details, supplier info, and full KYC profile - Updated CalcResultContent to navigate to offer page on card click --- app/components/CalcResultContent.vue | 6 +- app/pages/catalog/offers/[offerId].vue | 176 +++++++++++++++++++++++++ 2 files changed, 177 insertions(+), 5 deletions(-) create mode 100644 app/pages/catalog/offers/[offerId].vue diff --git a/app/components/CalcResultContent.vue b/app/components/CalcResultContent.vue index fe2e185..74860cd 100644 --- a/app/components/CalcResultContent.vue +++ b/app/components/CalcResultContent.vue @@ -180,11 +180,7 @@ const getKycProfileUuid = (offerUuid?: string | null) => { // Navigate to offer detail page const navigateToOffer = (offerUuid?: string | null) => { if (!offerUuid) return - const offer = offersData.value.get(offerUuid) - if (!offer?.teamUuid || !productUuid.value || !destinationUuid.value) return - - // Navigate to /catalog/suppliers/[supplierId]/[productId]/[hubId] - navigateTo(localePath(`/catalog/suppliers/${offer.teamUuid}/${productUuid.value}/${destinationUuid.value}`)) + navigateTo(localePath(`/catalog/offers/${offerUuid}`)) } // Load offer details for prices diff --git a/app/pages/catalog/offers/[offerId].vue b/app/pages/catalog/offers/[offerId].vue new file mode 100644 index 0000000..f24cbfc --- /dev/null +++ b/app/pages/catalog/offers/[offerId].vue @@ -0,0 +1,176 @@ + + + + + + + + Загрузка оффера... + + + + + + Оффер не найден + + + + + + + + + + + {{ offer.productName || 'Товар' }} + {{ offer.locationName }} + + + {{ priceDisplay }} + + + + + + + Доступно: {{ offer.quantity }} {{ offer.unit || 'т' }} + + + + + + + + + + + + + + + + + Поставщик + + + + + + + + + + {{ supplier.name }} + {{ supplier.country }} + + Верифицирован + + + + + + + + + + + + + Связаться с поставщиком + + + + Назад к результатам + + + + + + + + +