From cf4dd8fb818352d0881829209cb38e6740a03b27 Mon Sep 17 00:00:00 2001 From: pushuo <229102104@qq.com> Date: Tue, 28 Jun 2022 21:10:42 +0800 Subject: [PATCH] wip --- themes/default/cart.blade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/themes/default/cart.blade.php b/themes/default/cart.blade.php index 1c124775..382e7d21 100644 --- a/themes/default/cart.blade.php +++ b/themes/default/cart.blade.php @@ -108,7 +108,9 @@ return !this.products.length ? false : this.products.every(s => s.selected) }, set(val) { - return this.products.map(e => e.selected = val) + // return + this.products.map(e => e.selected = val) + this.selectedBtnSelected() } }, }, @@ -154,7 +156,7 @@ $.ajax({ url: `/carts/select`, type: 'POST', - data: {sku_ids: cart_ids}, + data: {cart_ids: cart_ids}, success: function(res) { self.setUpdateData(res); }