From 42c8688561bf80722626ed06a4b884db80fbebee Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Mon, 19 Jan 2026 12:09:18 +0700 Subject: [PATCH] =?UTF-8?q?Simplify=20catalog=20root=20pages=20-=20show=20?= =?UTF-8?q?only=20'=D0=92=D1=8B=D0=B1=D0=B5=D1=80=D0=B8=D1=82=D0=B5...'=20?= =?UTF-8?q?hint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/pages/catalog/hubs/index.vue | 21 ++++----------------- app/pages/catalog/offers/index.vue | 17 +---------------- app/pages/catalog/suppliers/index.vue | 4 ++++ 3 files changed, 9 insertions(+), 33 deletions(-) diff --git a/app/pages/catalog/hubs/index.vue b/app/pages/catalog/hubs/index.vue index 9a5494c..c29c3a8 100644 --- a/app/pages/catalog/hubs/index.vue +++ b/app/pages/catalog/hubs/index.vue @@ -54,10 +54,11 @@ + + Выберите хаб + + - - {{ country.name }} - @@ -98,7 +99,6 @@ const { countryFilters, isLoading, isLoadingMore, - itemsByCountry, canLoadMore, loadMore, init @@ -175,19 +175,6 @@ const onSelectHub = (hub: any) => { selectedHubId.value = hub.uuid } -// Helper to get country for hub -const getCountryForHub = (hub: any) => { - return itemsByCountry.value.filter(c => c.hubs.some(h => h.uuid === hub.uuid)) -} - -// Check if this hub is first in its country group -const isFirstInCountry = (hub: any) => { - for (const country of itemsByCountry.value) { - if (country.hubs[0]?.uuid === hub.uuid) return true - } - return false -} - await init() useHead(() => ({ diff --git a/app/pages/catalog/offers/index.vue b/app/pages/catalog/offers/index.vue index dbcafc9..a12ed2a 100644 --- a/app/pages/catalog/offers/index.vue +++ b/app/pages/catalog/offers/index.vue @@ -19,22 +19,7 @@ - - - - - - - {{ t('catalogProducts.empty.title') }} - {{ t('catalogProducts.empty.subtitle') }} - - - - - - {{ t('catalogProducts.header.title') }} - {{ t('catalogProducts.header.subtitle', { count: products.length }) }} - + Выберите товар diff --git a/app/pages/catalog/suppliers/index.vue b/app/pages/catalog/suppliers/index.vue index d43370f..f9a0162 100644 --- a/app/pages/catalog/suppliers/index.vue +++ b/app/pages/catalog/suppliers/index.vue @@ -22,6 +22,10 @@ /> + + Выберите поставщика + +