From 5a42219c9f91fd8fa77ddd8c8945d03168250b68 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 29 七月 2024 19:26:09 +0800
Subject: [PATCH] 代码提交

---
 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