From bb195777c31b571c0351207edc543e14fd60758e Mon Sep 17 00:00:00 2001 From: alsaze Date: Wed, 1 Oct 2025 16:35:25 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D1=8E=20=D1=82?= =?UTF-8?q?=D0=B5=D0=BB=D0=B5=D0=B3=D1=83=20=D1=82=D0=BE=D0=B2=D0=B0=D1=80?= =?UTF-8?q?=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/Api.ts | 2 +- components/ProductDescription.vue | 4 --- components/cart/CartItem.vue | 11 +++----- layouts/default.vue | 43 +++++++++++++++++++++++++------ pages/cart.vue | 36 +++++++++++++++++++++----- 5 files changed, 69 insertions(+), 27 deletions(-) diff --git a/api/Api.ts b/api/Api.ts index b5c7b06..2051d0d 100644 --- a/api/Api.ts +++ b/api/Api.ts @@ -5283,7 +5283,7 @@ export class Api< method: "POST", body: data, secure: true, - type: ContentType.UrlEncoded, + type: ContentType.Json, ...params, }), diff --git a/components/ProductDescription.vue b/components/ProductDescription.vue index 05476cd..3ef1df4 100644 --- a/components/ProductDescription.vue +++ b/components/ProductDescription.vue @@ -42,10 +42,6 @@ @click="addToCartBtn()" /> - currentSize -
-    {{ currentSize }}
-    
diff --git a/components/cart/CartItem.vue b/components/cart/CartItem.vue index 8b33b92..a29b415 100644 --- a/components/cart/CartItem.vue +++ b/components/cart/CartItem.vue @@ -8,10 +8,6 @@ > -
-
-    {{ variations }}
-    
{{ productsData?.name }} @@ -21,9 +17,8 @@
- {{ t(`colors.${color}`) }} - {{ t(`materials.${material}`) }} - {{ `размер ${size}` }} +
{{ t(`colors.${color}`) }} {{ t(`materials.${material}`) }}
+
{{ `размер ${size}` }}
@@ -67,7 +62,7 @@ const deleteItem = (item) => { &__attributes { display: flex; - flex-direction: row; + flex-direction: column; justify-content: space-between; } } diff --git a/layouts/default.vue b/layouts/default.vue index ea36cd8..1159861 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -11,11 +11,18 @@ PAXTON - + > + +
+ {{ cart.line_items.length }} +
+
@@ -33,6 +40,7 @@