From 103db27cd0ca6b3305e95170dc297380f97fcc70 Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期四, 25 四月 2024 17:05:47 +0800
Subject: [PATCH] bug3

---
 packageDomain/pages/resourceDetails/myVideo/index.js |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/packageDomain/pages/resourceDetails/myVideo/index.js b/packageDomain/pages/resourceDetails/myVideo/index.js
index b9898fc..63118dd 100644
--- a/packageDomain/pages/resourceDetails/myVideo/index.js
+++ b/packageDomain/pages/resourceDetails/myVideo/index.js
@@ -34,13 +34,13 @@
     style: 'height: 248rpx',
     submitType: "new", //  鏂板缓 or 缂栬緫
     noteId: '',
-
     videoChange: true,
     startTime: "", //杩涘叆椤甸潰褰撳墠鏃堕棿
     pauseTime: 0, //鏆傚仠鏃堕棿
     formPath: '',
     loading: true,
-    hidden: true
+    hidden: true,
+    videoError: false
   },
   // 鏍煎紡鍖栫瑪璁版椂闂�
   convertTimestamp(timestamp) {
@@ -60,9 +60,7 @@
   onLoad(options) {
 
     wx.setNavigationBarTitle({
-
-      title: '璧勬簮璇︽儏-闊抽'
-
+      title: '璧勬簮璇︽儏-瑙嗛'
     });
     const systInfo = wx.getSystemInfoSync();
     const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅
@@ -248,7 +246,7 @@
                 })
               } else {
                 this.setData({
-                  showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + items.file,
+                  showData: item.file ? app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file : app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.freeFile,
                   titleName: items.name
                 })
               }
@@ -298,7 +296,7 @@
         })
       } else {
         this.setData({
-          showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file
+          showData: item.file ? app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file : app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.freeFile,
         })
       }
 
@@ -564,5 +562,11 @@
   },
   videoErrorCallback(e) {
     console.log(e);
+  },
+  videoError: function (e) {
+    console.log('瑙嗛鍔犺浇澶辫触', e);
+    this.setData({
+      videoError: true
+    });
   }
 })
\ No newline at end of file

--
Gitblit v1.9.1