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_staff/pages/consult/consult.js |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/wechat_staff/pages/consult/consult.js b/wechat_staff/pages/consult/consult.js
index d4ed9bb..26539bb 100644
--- a/wechat_staff/pages/consult/consult.js
+++ b/wechat_staff/pages/consult/consult.js
@@ -58,6 +58,13 @@
   itemClick(e) {
     const item = e.currentTarget.dataset.item
     actionDo({actionType: 'view',id: item.id})
+    const { dataList } = this.data
+    dataList.forEach(ite => {
+      if(item.id === ite.id){
+        ite.viewCount += 1
+      }
+    })
+    this.setData({ dataList })
     if(item.contentType == 'link'){
       wx.navigateTo({
         url: '/pages/webView/index',

--
Gitblit v1.9.3