From d8f7a89939612abb5ec243f0d817932a32ef35a7 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 30 七月 2024 15:11:36 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia

---
 wechat_staff/components/disRealpic/index.js |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/wechat_staff/components/disRealpic/index.js b/wechat_staff/components/disRealpic/index.js
index ae17a12..46e5615 100644
--- a/wechat_staff/components/disRealpic/index.js
+++ b/wechat_staff/components/disRealpic/index.js
@@ -73,9 +73,10 @@
     },
     videoClick(e) {
       const { videourl } = e.currentTarget.dataset
-      wx.previewMedia({
-        sources: [{ url: videourl, type: 'video' }]
-      })
+      let videoPlay = this.selectComponent('.videoPlay'); 
+      if(videoPlay){ 
+        videoPlay.startPlayVideo(videourl,this );
+      } 
     },
     priviewFull(e){
       const item = e.currentTarget.dataset.item
@@ -108,9 +109,10 @@
       const item = e.currentTarget.dataset.item
       console.log('item', item);
       if(item.openType == 'video'){
-        wx.previewMedia({
-          sources: [{ url: item.openContent, type: 'video' }]
-        })
+        let videoPlay = this.selectComponent('.videoPlay'); 
+        if(videoPlay){ 
+          videoPlay.startPlayVideo(item.openContent,this );
+        } 
       }
       if(item.openType == 'link'){
         wx.navigateTo({
@@ -145,8 +147,7 @@
         cateList[activeIndex].tempParamCode = null 
         console.log(1)
       }
-      this.setData({  cateList })
-      console.log(cateList)
+      this.setData({  cateList }) 
     },
     cancelParam() {
       const { cateList } = this.data

--
Gitblit v1.9.3