From 53f95e9936dda1090dcf3870f78427896d28a94d Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 25 七月 2024 15:24:51 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia
---
wechat_staff/pages/detailDis/realpic.js | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/wechat_staff/pages/detailDis/realpic.js b/wechat_staff/pages/detailDis/realpic.js
index 6795a0e..dcd361a 100644
--- a/wechat_staff/pages/detailDis/realpic.js
+++ b/wechat_staff/pages/detailDis/realpic.js
@@ -56,7 +56,7 @@
this.setData({ info })
enjoyList.push({
...info,
- joinType: 'product',
+ joinType: '2',
timestamp: new Date().getTime()
})
}else{
@@ -79,8 +79,12 @@
}
},
getDetail(id) {
+ const enjoyList = wx.getStorageSync('enjoyList') || []
getRealcaseInfo({id}).then(res => {
- this.setData({ info: res.data })
+ const index = enjoyList.findIndex( i => i.id === res.data.id )
+ this.setData({ info: {
+ ...res.data, isEnjoy: index > -1
+ }})
wx.setNavigationBarTitle({
title: res.data.title
})
--
Gitblit v1.9.3