From 28710ed50a5659337bbbfd7105ccc7c9dc58faa1 Mon Sep 17 00:00:00 2001 From: pushuo <229102104@qq.com> Date: Tue, 28 Jun 2022 21:07:01 +0800 Subject: [PATCH] wip --- themes/default/cart.blade.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/themes/default/cart.blade.php b/themes/default/cart.blade.php index ba30206b..1c124775 100644 --- a/themes/default/cart.blade.php +++ b/themes/default/cart.blade.php @@ -149,12 +149,12 @@ selectedBtnSelected() { const self = this; - const product_ids = this.products.filter(e => e.selected).map(x => x.product_id) + const cart_ids = this.products.filter(e => e.selected).map(x => x.cart_id) $.ajax({ url: `/carts/select`, type: 'POST', - data: {sku_ids: product_ids}, + data: {sku_ids: cart_ids}, success: function(res) { self.setUpdateData(res); } @@ -162,7 +162,6 @@ }, setUpdateData(res) { - console.log(res) this.products = res.carts this.amount_format = res.amount_format this.total_quantity = res.quantity