From 929710f6d214eed20e93abf4a039ab8d8f587088 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期二, 17 六月 2025 09:48:38 +0800 Subject: [PATCH] d --- packageDomain/pages/resourceDetails/myVideo/index.js | 37 +++++++++++++++++++++++++++++++++---- 1 files changed, 33 insertions(+), 4 deletions(-) diff --git a/packageDomain/pages/resourceDetails/myVideo/index.js b/packageDomain/pages/resourceDetails/myVideo/index.js index 15c01ed..4b9da84 100644 --- a/packageDomain/pages/resourceDetails/myVideo/index.js +++ b/packageDomain/pages/resourceDetails/myVideo/index.js @@ -55,12 +55,18 @@ buyIdList: [], buyList: [], learnClassData: null, - isLearnDataBuy: false, + isLearnDataBuy: true, bookDetail: null, learnStartTime: 0, learnTimeList: [], learnTimeData: 0, toView: 'activeName', + promptVisable: false, + confirmBtn: { + content: '纭畾', + variant: 'base', + }, + showMd5: '' }, // 鏍煎紡鍖栫瑪璁版椂闂� convertTimestamp(timestamp) { @@ -441,8 +447,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 }) @@ -456,9 +463,8 @@ title: '璇峰厛杩斿洖璧勬簮鎵�鍦ㄥ浘涔﹁鎯呰喘涔拌棰戣祫婧�', }) 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}`, }); - } this.setData({ loading: false, @@ -520,6 +526,9 @@ appRefCode: app.config.appRefCode } app.MG.file.getAliVod(query).then((res) => { + this.setData({ + showMd5: md5 + }) if (res) { if (res && res.data == '') { this.setData({ @@ -877,5 +886,25 @@ } } return flag + }, + videoEnd() { + const data = this.data.threeLeveData.find(item => item.id == this.data.activeId) + if (data.freeFile && (this.data.showDataVod.includes(data.freeFile) || this.data.showMd5 == data.freeFile) && data.protectedFile) + this.setData({ + promptVisable: true + }) + }, + // 鎻愮ず寮圭獥鍏抽棴 + closePromapDialog() { + this.setData({ + promptVisable: false + }) + if (this.data.source == 'qrcode') { + wx.navigateTo({ + url: `/packageBookService/pages/bookServices/detail/index?id=${this.data.bookDetail.id}&name=${this.data.bookDetail.name}&tabValue=${this.data.formPath}`, + }); + } else { + wx.navigateBack() + } } }) \ No newline at end of file -- Gitblit v1.9.1