diff --git a/pages/cart.vue b/pages/cart.vue index f81faf3..0bd0a8c 100644 --- a/pages/cart.vue +++ b/pages/cart.vue @@ -258,7 +258,7 @@ export default { let count = 0 this.list.forEach(item => { item['carts'].forEach(good => { - if (good.state) count++ + if (good.state) count += good.cartNum || 1 }) }) return count