소스 검색

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

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"