Fix(购物车):[#1361]购物车单个商品增加数量,全选后数字未变
This commit is contained in:
+1
-1
@@ -258,7 +258,7 @@ export default {
|
|||||||
let count = 0
|
let count = 0
|
||||||
this.list.forEach(item => {
|
this.list.forEach(item => {
|
||||||
item['carts'].forEach(good => {
|
item['carts'].forEach(good => {
|
||||||
if (good.state) count++
|
if (good.state) count += good.cartNum || 1
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
return count
|
return count
|
||||||
|
|||||||
Reference in New Issue
Block a user