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/pages/detailDis/case.js |    1 +
 wechat_staff/api/index.js            |    5 +++++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/wechat_staff/api/index.js b/wechat_staff/api/index.js
index 73a6bac..37d73b8 100644
--- a/wechat_staff/api/index.js
+++ b/wechat_staff/api/index.js
@@ -331,4 +331,9 @@
   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
diff --git a/wechat_staff/pages/detailDis/case.js b/wechat_staff/pages/detailDis/case.js
index 8cd8889..99a8561 100644
--- a/wechat_staff/pages/detailDis/case.js
+++ b/wechat_staff/pages/detailDis/case.js
@@ -134,6 +134,7 @@
    */
   onShow() {
     refreshEnjoy(this) 
+   
   },
 
   /**

--
Gitblit v1.9.3