From c7d7aff39b6566d05d3c0a080839c46bb2b6a8aa Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 26 七月 2024 11:43:44 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia
---
wechat_staff/api/index.js | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/wechat_staff/api/index.js b/wechat_staff/api/index.js
index ba78727..4157c97 100644
--- a/wechat_staff/api/index.js
+++ b/wechat_staff/api/index.js
@@ -324,3 +324,19 @@
data
})
}
+
+export const refreshEnjoy = (obj) =>{
+ let child = obj.selectComponent('.buoyClient');
+ // 璋冪敤瀛愮粍浠朵腑瀹氫箟鐨勬柟娉�
+ if(child){
+ child.freshData();
+ }
+ var {info} = obj.data ;
+ if(info){
+ const enjoyList = wx.getStorageSync('enjoyList') || [];
+ const index = enjoyList.findIndex( i => i.id === info.id );
+ info.isEnjoy = index > -1;
+ obj.setData({ info:info}) ;
+ }
+
+}
\ No newline at end of file
--
Gitblit v1.9.3