From adc212638e8e3e852a34b84f834eb10e6e1acb4f Mon Sep 17 00:00:00 2001 From: Mamalizz Date: Tue, 18 Mar 2025 16:21:43 +0330 Subject: [PATCH] updated style and fixed update quantity bug --- frontend/components/cart/index/CartItem.vue | 64 +++++++++++---------- 1 file changed, 33 insertions(+), 31 deletions(-) diff --git a/frontend/components/cart/index/CartItem.vue b/frontend/components/cart/index/CartItem.vue index e11a7f9..aa62337 100644 --- a/frontend/components/cart/index/CartItem.vue +++ b/frontend/components/cart/index/CartItem.vue @@ -92,7 +92,7 @@ watch( () => debouncedCounter.value, (nv) => { addCartItem( - { id: data.value.id, quantity: nv }, + { id: data.value.product.id, quantity: nv }, { onSuccess: () => { invalidateCart(); @@ -116,20 +116,10 @@ watch(
  • - - -
    - - +
    product
    + -
    - - {{ data.product.category }} - - -
    - - {{ data.product.title }} +
    +
    + + {{ data.product.category }}
    {{ data.product.discount }} - % تخفیف + تخفیف
    + + {{ data.product.title }} + +
    رنگ {{ variant.value }} @@ -249,7 +247,7 @@ watch(
    -
    1
    +
    + {{ counter }} +
    - + {{ data.product.price }}