From 5a1cc511d0a16970d5d56fad3cfeaab8f0d903d2 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 26 七月 2024 15:19:40 +0800
Subject: [PATCH] 提交

---
 wechat_staff/api/index.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/wechat_staff/api/index.js b/wechat_staff/api/index.js
index 73a6bac..4157c97 100644
--- a/wechat_staff/api/index.js
+++ b/wechat_staff/api/index.js
@@ -331,4 +331,12 @@
   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