Explorar o código

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

liaoanqi %!s(int64=2) %!d(string=hai) anos
pai
achega
aa226832bf
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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"