From b4661b438355fe760beafe9604f24a907a81a42d Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 01 八月 2024 08:54:10 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia

---
 wechat_jiaxuan/components/disCase/index.js |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/wechat_jiaxuan/components/disCase/index.js b/wechat_jiaxuan/components/disCase/index.js
index 01aa0be..f04978a 100644
--- a/wechat_jiaxuan/components/disCase/index.js
+++ b/wechat_jiaxuan/components/disCase/index.js
@@ -31,6 +31,13 @@
         const dataList = this.data.dataList
         dataList.forEach(item => {
           if(item.id === info.id){
+            if(item.isCollection != info.isCollection){
+              if(!item.isCollection){ 
+                item.collectCount = (item.collectCount || 0)+1
+              }else if(item.collectCount >0){
+                item.collectCount = (item.collectCount || 0)-1
+              }             
+            }
             item.isCollection = info.isCollection
             item.viewCount ++
           }

--
Gitblit v1.9.3