From 684ef70c5834b3bdee5997dbdc8bf193eacb7851 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 01 八月 2024 11:34:01 +0800
Subject: [PATCH] lll
---
wechat_jiaxuan/pages/homeId/index.js | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/wechat_jiaxuan/pages/homeId/index.js b/wechat_jiaxuan/pages/homeId/index.js
index 196a830..c1732e0 100644
--- a/wechat_jiaxuan/pages/homeId/index.js
+++ b/wechat_jiaxuan/pages/homeId/index.js
@@ -60,6 +60,13 @@
},
itemClick(e) {
const item = e.currentTarget.dataset.item
+ const { dataList } = this.data
+ dataList.forEach(ite => {
+ if(item.id === ite.id){
+ ite.viewCount += 1
+ }
+ })
+ this.setData({ dataList })
if(item.contentType){
actionDo({actionType: 'view',id: item.id})
}
--
Gitblit v1.9.3