From bfdd1a936731cf9b5f0d2c78d363cbb0ec93d941 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期三, 04 九月 2024 09:43:52 +0800
Subject: [PATCH] 树结构排序优化

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

diff --git a/packageDomain/pages/resourceDetails/myVideo/index.js b/packageDomain/pages/resourceDetails/myVideo/index.js
index a0ce5b1..4fc32a4 100644
--- a/packageDomain/pages/resourceDetails/myVideo/index.js
+++ b/packageDomain/pages/resourceDetails/myVideo/index.js
@@ -44,7 +44,8 @@
     videoError: false,
     videoLoading: false,
     progress: 0,
-    playerList: []
+    playerList: [],
+    videoLoaidng: true
   },
   // 鏍煎紡鍖栫瑪璁版椂闂�
   convertTimestamp(timestamp) {
@@ -87,7 +88,7 @@
       })
     }
     this.resourceDetailsData()
-    this.getNoteList()
+
   },
 
   /**
@@ -173,12 +174,13 @@
 
   },
   onTabsChange(event) {
-
+    console.log(event, 234)
+    let tabValue = event.detail.value
+    if (tabValue == '1') {
+      this.getNoteList()
+    }
   },
 
-  onTabsClick(event) {
-
-  },
   handleChange(e) {
     this.setData({
       activeValues: e.detail.value,
@@ -207,7 +209,8 @@
   },
   resourceDetailsData() {
     this.setData({
-      videoLoaidng: true
+      videoLoaidng: true,
+      loading: true
     })
     let query = {
       storeInfo: this.data.storeInfo,
@@ -238,6 +241,9 @@
       res.datas.cmsDatas[0].datas.forEach((item) => {
         if (item.selectType === "video" || item.learnSelectType === "video") {
           this.data.threeLeveData.push(item)
+          this.setData({
+            threeLeveData: this.data.threeLeveData
+          })
         }
       })
       this.data.threeLeveData.forEach((items, index) => { // 淇敼姝ゅ娣诲姞index鍙傛暟
@@ -293,6 +299,7 @@
   },
 
   timeUpdate(e) {
+    console.log(2);
     let {
       currentTime,
       duration
@@ -409,9 +416,9 @@
   },
   // 鑾峰彇绗旇鍒楄〃
   async getNoteList() {
-    // this.setData({
-    //   loading: true
-    // })
+    this.setData({
+      loading: true
+    })
     let topicId
     await app.MG.ugc
       .getProductUserSubmitTopic({
@@ -592,6 +599,7 @@
     });
   },
   loadedmetadata(e) {
+    console.log(1);
     this.setData({
       videoLoaidng: false
     })

--
Gitblit v1.9.1