improve code

This commit is contained in:
paulGao
2022-03-31 09:26:24 +08:00
parent 48668fd2d4
commit 1e8279c849
12 changed files with 154 additions and 543 deletions

View File

@@ -228,7 +228,7 @@ export default {
return {
couponAvailable: false, // 展示优惠券
stepIndex: 0, // 当前处于哪一步,购物车==0填写订单信息==1成功提交订单==2
goodsTotal: 1, // 商品数量
goodsTotal: 0, // 商品数量
checkedNum: 0, // 选中数量
allChecked: false, // 全选
loading: false, // 加载状态
@@ -278,7 +278,7 @@ export default {
const list = this.cartList;
list.forEach((shop) => {
shop.skuList.forEach((goods) => {
if(goods.checked) {
if (goods.checked) {
idArr.push(goods.goodsSku.id);
}
});