From 7231b5929a66bb1ec3b832be85f5e3f6ce40ad9f Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期五, 15 三月 2024 16:01:52 +0800
Subject: [PATCH] feat: 十大

---
 pages/resourceDetails/myVideo/index.js |   27 +++++++++++++++------------
 1 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/pages/resourceDetails/myVideo/index.js b/pages/resourceDetails/myVideo/index.js
index 0606bf4..d99b880 100644
--- a/pages/resourceDetails/myVideo/index.js
+++ b/pages/resourceDetails/myVideo/index.js
@@ -65,7 +65,8 @@
       cmsId: options.cmsId,
       parentName: options.parentName,
       parentProductLinkPath: options.parentProductLinkPath,
-      productLinkPath: options.productLinkPath
+      productLinkPath: options.productLinkPath,
+      flag: false
     })
 
     this.resourceDetailsData()
@@ -126,7 +127,8 @@
 
   onTabsClick(event) {
 
-  }, handleChange(e) {
+  },
+  handleChange(e) {
     this.setData({
       activeValues: e.detail.value,
     });
@@ -148,15 +150,15 @@
   closeDialog() {
 
     this.setData({
-      dialogKey: false
+      dialogKey: false,
+      textvalue: '',
+      flag: false
     });
   },
   goBack() {
     wx.navigateBack();
   },
   resourceDetailsData() {
-
-
     let query = {
       path: '*',
       queryType: '*',
@@ -189,13 +191,15 @@
           this.setData({
             threeLeveData: this.data.threeLeveData
           })
+
+          if (this.data.productLinkPath == item.productLinkPath) {
+            this.setData({
+              showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file,
+              titleName: item.name
+            })
+          }
         }
-        if (this.data.productLinkPath == item.productLinkPath) {
-          this.setData({
-            showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file,
-            titleName: item.name
-          })
-        }
+
 
       })
       this.data.threeLeveData.forEach((item) => {
@@ -258,7 +262,6 @@
     console.log(e.currentTarget.dataset.value);
     this.setData({
       flag: e.currentTarget.dataset.value
-
     })
   },
   // 鏍囬杈撳叆妗嗗��

--
Gitblit v1.9.1