From 2da083225417ef7007842b84e7276242faeb0e35 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 05 八月 2024 16:18:58 +0800
Subject: [PATCH] lll
---
wechat_staff/pages/productVideo/index.js | 22 +++++++++++++---------
1 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/wechat_staff/pages/productVideo/index.js b/wechat_staff/pages/productVideo/index.js
index 96ad0ce..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,14 +46,18 @@
})
},
itemClick(e) {
- const { videourl } = e.currentTarget.dataset
- let videoPlay = this.selectComponent('.videoPlay');
- if(videoPlay){
- videoPlay.startPlayVideo(videourl,this );
- }
- // 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) {
const { code } = e.target.dataset
--
Gitblit v1.9.3