From 7d607f19253fcdbbf36d692894cee036af6c5de1 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 29 七月 2024 13:43:39 +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