From 4936e6f16c0cd44299d086911a347cd3626fa2af Mon Sep 17 00:00:00 2001 From: Nikita Kiselev Date: Wed, 22 Oct 2025 12:12:43 +0300 Subject: [PATCH] feat(spa): add custom dock --- spa/src/App.vue | 34 ++-------------- spa/src/components/Dock.vue | 78 +++++++++++++++++++++++++++++++++++++ spa/src/style.css | 5 --- 3 files changed, 81 insertions(+), 36 deletions(-) create mode 100644 spa/src/components/Dock.vue diff --git a/spa/src/App.vue b/spa/src/App.vue index d63217b..d47addd 100644 --- a/spa/src/App.vue +++ b/spa/src/App.vue @@ -11,37 +11,7 @@ - -
- - - Главная - - - - - - - Поиск - - - -
- {{ cart.productsCount }} - - - -
- Корзина -
-
+ @@ -55,6 +25,7 @@ import {useSettingsStore} from "@/stores/SettingsStore.js"; import {useProductFiltersStore} from "@/stores/ProductFiltersStore.js"; import {useCartStore} from "@/stores/CartStore.js"; import CartButton from "@/components/CartButton.vue"; +import Dock from "@/components/Dock.vue"; const tg = useMiniApp(); const platform = ref(); @@ -75,6 +46,7 @@ const routesToHideAppDock = [ 'product.show', 'checkout', 'order_created', + 'filters', ]; const isAppDockShown = computed(() => { diff --git a/spa/src/components/Dock.vue b/spa/src/components/Dock.vue new file mode 100644 index 0000000..fe3adc6 --- /dev/null +++ b/spa/src/components/Dock.vue @@ -0,0 +1,78 @@ + + + + + \ No newline at end of file diff --git a/spa/src/style.css b/spa/src/style.css index bd48efc..6b21fce 100644 --- a/spa/src/style.css +++ b/spa/src/style.css @@ -52,11 +52,6 @@ html { color: white; } -.app-dock { - padding-bottom: var(--tg-safe-area-inset-bottom); - height: calc(64px + var(--tg-safe-area-inset-bottom)); -} - .swiper-pagination-bullets > .swiper-pagination-bullet { background-color: red; color: red;