修复优化促销问题

This commit is contained in:
paulGao
2021-12-25 18:36:15 +08:00
parent 6c1d7cce8d
commit 54dcd2d8be
8 changed files with 31 additions and 35 deletions

View File

@@ -183,7 +183,7 @@
>全选</Checkbox
>
</div>
<div class="width_100 handle-btn" @click="delGoods">删除选中商品</div>
<div class="width_100 handle-btn" @click="delGoods()">删除选中商品</div>
<!-- <div class="width_100 handle-btn" @click="collectGoods">移到我的收藏</div> -->
<div class="width_100 handle-btn" @click="clearCart">清空购物车</div>
</div>
@@ -278,7 +278,9 @@ export default {
const list = this.cartList;
list.forEach((shop) => {
shop.skuList.forEach((goods) => {
idArr.push(goods.goodsSku.id);
if(goods.checked) {
idArr.push(goods.goodsSku.id);
}
});
});
} else {