Explorar o código

优化购物车数量显示

liaoanqi %!s(int64=2) %!d(string=hai) anos
pai
achega
6440a16231
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      mall4m/pages/index/index.js

+ 1 - 0
mall4m/pages/index/index.js

@@ -154,6 +154,7 @@ Page({
               totalCartNum: ths.data.totalCartNum + ths.data.prodNum
             });
             wx.hideLoading();
+            http.getCartCount(); //重新计算购物车总数量
             wx.showToast({
               title: "加入购物车成功",
               icon: "none"