From 1cee3a660c5f8e5f4290ae894c2898c4966a834d Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 02 八月 2024 18:33:33 +0800
Subject: [PATCH] ''

---
 wechat_staff/pages/productVideo/index.js |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/wechat_staff/pages/productVideo/index.js b/wechat_staff/pages/productVideo/index.js
index 49da278..90842e3 100644
--- a/wechat_staff/pages/productVideo/index.js
+++ b/wechat_staff/pages/productVideo/index.js
@@ -1,4 +1,4 @@
-import { getZhongTaiVideoPage, getCataLogTagList ,refreshEnjoy} from '../../api/index'
+import { getZhongTaiVideoPage,  actionDo, getCataLogTagList ,refreshEnjoy} from '../../api/index'
 Page({
 
   /**
@@ -46,9 +46,17 @@
     })
   },
   itemClick(e) {
-    const { videourl } = e.currentTarget.dataset
-    wx.previewMedia({
-      sources: [{ url: videourl, type: 'video' }]
+    const { id } = e.currentTarget.dataset.item
+    const { dataList } = this.data
+    dataList.forEach(ite => {
+      if(id === ite.id){
+        ite.viewCount += 1
+      }
+    })
+    this.setData({ dataList })
+    actionDo({
+      actionType: 'view',
+      id: id
     })
   },
   cateClick(e) {

--
Gitblit v1.9.3