Browse Source

更新数量

xiaohaizhao 1 year ago
parent
commit
0cce2894c1
1 changed files with 3 additions and 2 deletions
  1. 3 2
      packageA/market/detail.js

+ 3 - 2
packageA/market/detail.js

@@ -289,8 +289,9 @@ Page({
 	},
 	onShow() {
 		this.setData({
-			favoriteCount: getApp().globalData.favoriteCount
+			favoriteCount: getApp().globalData.favoriteCount,
+			badge: getApp().globalData.collectCount,
 		})
-		this.getDetail(true,this.data.loading);
+		this.getDetail(true, this.data.loading);
 	},
 })