Browse Source

购物车图标同步显示

LXT-NJ\Admin 1 year ago
parent
commit
d8a00a1bf1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pages/shop/index.vue

+ 2 - 2
pages/shop/index.vue

@@ -182,8 +182,7 @@ export default {
 					})
 					})
 				}
 				}
 			})
 			})
-		},
-		
+		},		
 		// 热门、折扣
 		// 热门、折扣
 		changeTab(activeIndex){
 		changeTab(activeIndex){
 			let that = this;
 			let that = this;
@@ -307,6 +306,7 @@ export default {
 				}).then(res => {
 				}).then(res => {
 					if (res.data.code == 200) {
 					if (res.data.code == 200) {
 						that.$refs.toast.show({model:'success',label:res.data.msg})
 						that.$refs.toast.show({model:'success',label:res.data.msg})
+						that.getGwc()
 					}else{
 					}else{
 						that.$refs.toast.show({model:'error',label:res.data.msg})
 						that.$refs.toast.show({model:'error',label:res.data.msg})
 					}
 					}