From 0c02f1bf5f00e6de2c379dc121047b84a5b7c153 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 29 七月 2024 17:50:46 +0800
Subject: [PATCH] ‘’

---
 wechat_staff/components/disRealpic/index.js |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/wechat_staff/components/disRealpic/index.js b/wechat_staff/components/disRealpic/index.js
index 52ce1e3..fe2f8ef 100644
--- a/wechat_staff/components/disRealpic/index.js
+++ b/wechat_staff/components/disRealpic/index.js
@@ -66,9 +66,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
@@ -149,7 +150,7 @@
       const { cateList } = this.data
       cateList.forEach(item => {
         item.paramIndex = -1
-        item.paramName = ''
+        item.paramName = item.paramName || ''
       })
       this.setData({ tagCodes: [],activeParam: [],cateList,activeIndex: -1 })
     },
@@ -159,7 +160,7 @@
     },
     subParam() {
       this.setData({ activeParam: [] })
-      this.setData({ pageNum: 1,dataList: [],total: 0})
+      this.setData({ pageNum: 1,activeIndex: -1,dataList: [],total: 0})
       this.getList()
     },
     changeShowParams(e){

--
Gitblit v1.9.3