From 3dd2f91fbc88641202a272d8d179d40e0686ace4 Mon Sep 17 00:00:00 2001
From: QYF-GitLab1 <1940665526@qq.com>
Date: 星期二, 08 七月 2025 16:24:00 +0800
Subject: [PATCH] 销售方式跳转、扫码、Isbn弹框、出版日期

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

diff --git a/packageDomain/pages/resourceDetails/myVideo/index.js b/packageDomain/pages/resourceDetails/myVideo/index.js
index 42a6f61..f34c79f 100644
--- a/packageDomain/pages/resourceDetails/myVideo/index.js
+++ b/packageDomain/pages/resourceDetails/myVideo/index.js
@@ -55,7 +55,7 @@
     buyIdList: [],
     buyList: [],
     learnClassData: null,
-    isLearnDataBuy: false,
+    isLearnDataBuy: true,
     bookDetail: null,
     learnStartTime: 0,
     learnTimeList: [],
@@ -228,6 +228,7 @@
         })
       } catch (error) {}
       if (this.data.learnClassData) {
+        debugger
         this.getResourceDataList(this.data.learnClassData)
       } else {
         this.resourceDetailsData()
@@ -447,8 +448,9 @@
               })
               this.aliVod(file, this.data.showData)
             } else {
+              let file = items.file ? items.file : items.freeFile
               this.setData({
-                showData: items.file ? app.config.requestCtx + '/file/api/ApiDownload?md5=' + items.file : app.config.requestCtx + '/file/api/ApiDownload?md5=' + items.freeFile,
+                showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + file,
                 titleName: items.name,
                 selectedId: index
               })
@@ -457,12 +459,18 @@
           }
         });
       } else {
-        wx.showToast({
-          icon: 'none',
-          title: '璇峰厛杩斿洖璧勬簮鎵�鍦ㄥ浘涔﹁鎯呰喘涔拌棰戣祫婧�',
-        })
-        wx.navigateTo({
-          url: `/packageBookService/pages/bookServices/detail/index?id=${this.data.bookDetail.id}&name=${this.data.bookDetail.name}&tabValue=${this.data.formPath}`,
+        wx.showModal({
+          title: '娓╅Θ鎻愮ず',
+          content: '璇峰厛杩斿洖璧勬簮鎵�鍦ㄥ浘涔﹁鎯呰喘涔拌棰戣祫婧�',
+          confirmText: '纭畾',
+          showCancel: false, // 鍏抽棴鍙栨秷鎸夐挳
+          success: function (res) {
+            if (res.confirm) {
+              wx.navigateTo({
+                url: `/packageBookService/pages/bookServices/detail/index?id=${this.data.bookDetail.id}&name=${this.data.bookDetail.name}&tabValue=${this.data.formPath}`,
+              });
+            }
+          }
         });
       }
       this.setData({

--
Gitblit v1.9.1