From 5f7ae7213ba0b6baf4e1b53202f08ac1c454e8fc Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 29 七月 2024 16:23:55 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
wechat_jiaxuan/pages/productVideo/index.js | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/wechat_jiaxuan/pages/productVideo/index.js b/wechat_jiaxuan/pages/productVideo/index.js
index 3915e21..cd4f618 100644
--- a/wechat_jiaxuan/pages/productVideo/index.js
+++ b/wechat_jiaxuan/pages/productVideo/index.js
@@ -50,8 +50,13 @@
})
},
itemClick(e) {
+
const { videourl } = e.currentTarget.dataset
- this.startPlayVideo(videourl)
+ let videoPlay = this.selectComponent('.videoPlay');
+ if(videoPlay){
+ videoPlay.startPlayVideo(videourl,this );
+ }
+ // this.startPlayVideo(videourl)
// wx.previewMedia({
// sources: [{ url: videourl, type: 'video' }]
@@ -69,8 +74,8 @@
},
onLoad(options) {
this.getTagList()
- this.getList()
- this.videoContext = wx.createVideoContext('myVideo')
+ this.getList()
+ this.videoContext = wx.createVideoContext('myVideo')
},
/**
--
Gitblit v1.9.3