From 4c472f6bbf82e5ef95b60ac8e417760d89a7ba36 Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期五, 29 三月 2024 19:39:17 +0800
Subject: [PATCH] 购物车2

---
 packageDomain/pages/resourceDetails/myVideo/index.js |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/packageDomain/pages/resourceDetails/myVideo/index.js b/packageDomain/pages/resourceDetails/myVideo/index.js
index c6eb032..04b67c6 100644
--- a/packageDomain/pages/resourceDetails/myVideo/index.js
+++ b/packageDomain/pages/resourceDetails/myVideo/index.js
@@ -34,6 +34,8 @@
     style: 'height: 248rpx',
     submitType: "new", //  鏂板缓 or 缂栬緫
     noteId: '',
+
+    videoChange: true
   },
   // 鏍煎紡鍖栫瑪璁版椂闂�
   convertTimestamp(timestamp) {
@@ -194,6 +196,11 @@
 
           this.data.threeLeveData.forEach((items, index) => { // 淇敼姝ゅ娣诲姞index鍙傛暟
             if (this.data.productLinkPath == items.productLinkPath) {
+              if (!items.file) {
+                console.log(1111);
+              }
+
+
               this.setData({
                 showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + items.file,
                 titleName: items.name
@@ -221,6 +228,7 @@
         showData: ''
       })
     }
+
     this.setData({
       selectedId: e.currentTarget.dataset.index,
     })
@@ -230,9 +238,15 @@
     })
 
     if (item.selectType == "video") {
+
+      // if (!item.file) {
+      //   console.log(1111);
+      // }
       this.setData({
         showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + item.file
       })
+      console.log(this.data.showData, 'item.file');
+
     }
   },
 
@@ -381,13 +395,15 @@
     messageIds.push(id)
     wx.showModal({
       title: '鎻愮ず',
-      content: '纭鍒犻櫎璇ョ瑪璁板悧锛�',//editable濡傛灉涓簍rue锛岃繖灏辨槸杈撳叆妗嗙殑鍐呭
-      editable: false,//鏄惁鏄剧ず杈撳叆妗�
-      placeholderText: '璇疯緭鍏ュ唴瀹瑰惂',//杈撳叆妗嗙殑榛樿鍐呭
+      content: '纭鍒犻櫎璇ョ瑪璁板悧锛�', //editable濡傛灉涓簍rue锛岃繖灏辨槸杈撳叆妗嗙殑鍐呭
+      editable: false, //鏄惁鏄剧ず杈撳叆妗�
+      placeholderText: '璇疯緭鍏ュ唴瀹瑰惂', //杈撳叆妗嗙殑榛樿鍐呭
       success: (res) => {
         if (res.confirm) {
           app.MG.ugc
-            .delTopicMessage({ messageIds })
+            .delTopicMessage({
+              messageIds
+            })
             .then((res) => {
               wx.showToast({
                 title: '鍒犻櫎鎴愬姛',

--
Gitblit v1.9.1