From e8ec903206cb82e4dbb4687291d5f7788e7ff046 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期一, 06 五月 2024 18:17:47 +0800
Subject: [PATCH] bug修改

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

diff --git a/packageDomain/pages/resourceDetails/myVideo/index.js b/packageDomain/pages/resourceDetails/myVideo/index.js
index 5033850..5311e4f 100644
--- a/packageDomain/pages/resourceDetails/myVideo/index.js
+++ b/packageDomain/pages/resourceDetails/myVideo/index.js
@@ -40,7 +40,8 @@
     formPath: '',
     loading: true,
     hidden: true,
-    videoError: false
+    videoError: false,
+    videoLoaidng: false
   },
   // 鏍煎紡鍖栫瑪璁版椂闂�
   convertTimestamp(timestamp) {
@@ -64,7 +65,6 @@
     const systInfo = wx.getSystemInfoSync();
     const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅
     const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 瀵艰埅鏍忛珮搴�
-    console.log(options, 'options');
     this.setData({
       navBarHeight: navBarHeight,
       barHeight: systInfo.statusBarHeight,
@@ -82,7 +82,6 @@
         parentName: options.parentName,
       })
     }
-    console.log(options, 'options');
     this.resourceDetailsData()
     this.getNoteList()
   },
@@ -202,6 +201,9 @@
     wx.navigateBack();
   },
   resourceDetailsData() {
+    this.setData({
+      videoLoaidng: true
+    })
     let query = {
       path: '*',
       queryType: '*',
@@ -228,7 +230,6 @@
     }
     app.MG.store.getProductDetail(query).then(res => {
       res.datas.cmsDatas[0].datas.forEach((item) => {
-        console.log(item);
         if (item.selectType === "video" || item.learnSelectType === "video") {
           this.data.threeLeveData.push(item)
           this.setData({
@@ -267,6 +268,7 @@
   onVideo(e) {
     const item = e.currentTarget.dataset.item
     this.setData({
+      videoLoaidng: true,
       selectedId: e.currentTarget.dataset.index,
       showData: '',
       titleName: item.name
@@ -356,8 +358,6 @@
       textvalue: e.detail.value
     })
   },
-
-
   // 鑾峰彇绗旇鍒楄〃
   async getNoteList() {
     // this.setData({
@@ -543,5 +543,10 @@
     this.setData({
       videoError: true
     });
+  },
+  loadedmetadata(e) {
+    this.setData({
+      videoLoaidng: false
+    })
   }
 })
\ No newline at end of file

--
Gitblit v1.9.1