From 5997579aa13e3b11677ee4d6eac3584f4e11429f Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期二, 08 七月 2025 16:53:57 +0800 Subject: [PATCH] 优化 --- packageDomain/pages/resourceDetails/myVideo/index.js | 26 +++++++++++++++++--------- 1 files changed, 17 insertions(+), 9 deletions(-) diff --git a/packageDomain/pages/resourceDetails/myVideo/index.js b/packageDomain/pages/resourceDetails/myVideo/index.js index d31a296..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=jsek_cloudLearning`, + 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({ @@ -900,7 +908,7 @@ }) if (this.data.source == 'qrcode') { wx.navigateTo({ - url: `/packageBookService/pages/bookServices/detail/index?id=${this.data.bookDetail.id}&name=${this.data.bookDetail.name}&tabValue=jsek_cloudLearning`, + url: `/packageBookService/pages/bookServices/detail/index?id=${this.data.bookDetail.id}&name=${this.data.bookDetail.name}&tabValue=${this.data.formPath}`, }); } else { wx.navigateBack() -- Gitblit v1.9.1