闫增涛
2024-03-20 ecbc81c918a288dc752b1634b3f545f795d992aa
pages/cart/index.js
@@ -39,6 +39,7 @@
      searchList: []
    };
    app.MG.store.getShoppingCartProductList(query).then(res => {
      console.log(res, 'res');
      res.datas.forEach(item => {
        item.imgUrl = getPublicImage(item.productMonWithLinkDto.product.icon, '', '160');
        console.log(item);
@@ -76,12 +77,9 @@
      if (eitem.id == item.id) {
        eitem.checked = e.detail.checked
      }
    })
    const data = items.filter(item => item.checked)
    const checkAll = data.length == this.data.shoppingCartData.length
    this.setData({
      shoppingCartData: items,
      checkAll
@@ -119,7 +117,6 @@
        });
      })
    } else {
      Toast({
        context: this,
        selector: '#t-toast',
@@ -128,8 +125,5 @@
        direction: 'column',
      });
    }
  }
});