From f857c40ca26dd21dd8c0d78571c2ec5e31168cae Mon Sep 17 00:00:00 2001 From: alsaze Date: Thu, 13 Nov 2025 16:24:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BA=D0=B0=D1=80=D1=82=D1=8B=20=D0=BF=D0=B2?= =?UTF-8?q?=D0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/PayBlock.vue | 53 ++++++++++++++++++++++++++++++++++++- composables/useCart.ts | 5 ++++ composables/useCheckout.ts | 9 ++++--- layouts/checkout.vue | 34 +++++++++++++++++++++--- layouts/default.vue | 31 ++++++++++++++++------ pages/cart.vue | 7 +++-- pages/checkout/contacts.vue | 10 +++++-- pages/checkout/summary.vue | 12 ++++++++- 8 files changed, 141 insertions(+), 20 deletions(-) diff --git a/components/PayBlock.vue b/components/PayBlock.vue index 1cd335e..d67aba9 100644 --- a/components/PayBlock.vue +++ b/components/PayBlock.vue @@ -1,6 +1,37 @@ diff --git a/pages/cart.vue b/pages/cart.vue index 0fe4f37..b8c2272 100644 --- a/pages/cart.vue +++ b/pages/cart.vue @@ -9,7 +9,7 @@ - + @@ -18,7 +18,7 @@ import { useCart } from '~/composables' import PayBlock from '../components/PayBlock.vue' const route = useRoute() -const { cart } = useCart() +const { cart, cartRemoveAllItems } = useCart() const { checkoutContacts, checkoutPickupPoint } = useCheckout() onMounted(async () => { @@ -46,6 +46,8 @@ onMounted(async () => { status: 'processing', }, }) + + cartRemoveAllItems() }) @@ -63,6 +65,7 @@ onMounted(async () => { @include mobile { margin-top: 20px; flex-direction: column; + padding-inline: 16px; } &__items { diff --git a/pages/checkout/contacts.vue b/pages/checkout/contacts.vue index d224fe9..7382e31 100644 --- a/pages/checkout/contacts.vue +++ b/pages/checkout/contacts.vue @@ -1,5 +1,5 @@ @@ -85,10 +87,18 @@ definePageMeta({ flex-direction: row; justify-content: space-between; + @include mobile { + flex-direction: column; + } + &__info { display: flex; flex-direction: column; gap: 16px; + + @include mobile { + margin-bottom: 26px; + } } &__items {