pages/cart/index.js
@@ -20,7 +20,11 @@ }); this.shoppingCartGet(); }, onShow() { this.shoppingCartGet(); this.setData({ totalPrice: 0.00, selectedCount: 0, checkAll: false, }) }, onDelete(e) { const item = e.currentTarget.dataset.item; app.MG.store.delShoppingCart({ @@ -125,5 +129,10 @@ direction: 'column', }); } }, onLogin() { wx.navigateTo({ url: '/pages/testLogin/index' }); } });