瀏覽代碼

更新数量

xiaohaizhao 1 年之前
父節點
當前提交
0cce2894c1
共有 1 個文件被更改,包括 3 次插入2 次删除
  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);
 	},
 })