From c76bba5af4d26ca148f02a214da527f9811b8a38 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 26 七月 2024 10:26:03 +0800
Subject: [PATCH] 提交
---
wechat_staff/api/index.js | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/wechat_staff/api/index.js b/wechat_staff/api/index.js
index ba78727..37d73b8 100644
--- a/wechat_staff/api/index.js
+++ b/wechat_staff/api/index.js
@@ -324,3 +324,16 @@
data
})
}
+
+export const refreshEnjoy = (obj) =>{
+ let child = obj.selectComponent('.buoyClient');
+ // 璋冪敤瀛愮粍浠朵腑瀹氫箟鐨勬柟娉�
+ if(child){
+ child.freshData();
+ }
+ const enjoyList = wx.getStorageSync('enjoyList') || [];
+ var {info} = obj.data ;
+ 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