diff --git a/README.md b/README.md index d6b09747..cb8e05e0 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ ## 用户案例

+ diff --git a/pages/shop-cart/index.js b/pages/shop-cart/index.js index 79f9bd28..1799d732 100644 --- a/pages/shop-cart/index.js +++ b/pages/shop-cart/index.js @@ -253,6 +253,7 @@ Page({ wx.showLoading(); var that = this; if (this.data.goodsList.noSelect) { + wx.hideLoading(); return; } // 重新计算价格,判断库存 @@ -265,6 +266,7 @@ Page({ }); } if (shopList.length == 0) { + wx.hideLoading(); return; } var isFail = false;