瀏覽代碼

首页加入购物车重新计算数量

liaoanqi 2 年之前
父節點
當前提交
aa226832bf
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      mall4uni/pages/index/index.vue

+ 1 - 0
mall4uni/pages/index/index.vue

@@ -276,6 +276,7 @@ export default {
             callBack: res => {
               //console.log(res);
               uni.hideLoading();
+              http.getCartCount(); //重新计算购物车总数量
               uni.showToast({
                 title: "加入购物车成功",
                 icon: "none"