From 7dc29ed74ebaa8a0e66f68264d9a13f95dc3af21 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 02 八月 2024 11:09:06 +0800
Subject: [PATCH] aa

---
 wechat_jiaxuan/pages/homeId/index.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/wechat_jiaxuan/pages/homeId/index.js b/wechat_jiaxuan/pages/homeId/index.js
index 5827e4d..c1732e0 100644
--- a/wechat_jiaxuan/pages/homeId/index.js
+++ b/wechat_jiaxuan/pages/homeId/index.js
@@ -39,6 +39,7 @@
   onPullDownRefresh: function () {
     console.log('涓嬫媺鍒锋柊');
     this.setData({ dataList: [], pageNum: 1, total: 0 })
+    wx.stopPullDownRefresh()
     this.getList()
   },
   getList(){
@@ -59,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