From 2d3276fce97e33f5c7f04a74632e18ebb01c3a4d Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期一, 15 四月 2024 17:30:16 +0800 Subject: [PATCH] 音频优化1 --- packageDomain/pages/resourceDetails/myAudio/index.js | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/packageDomain/pages/resourceDetails/myAudio/index.js b/packageDomain/pages/resourceDetails/myAudio/index.js index 8bb7be9..9a00794 100644 --- a/packageDomain/pages/resourceDetails/myAudio/index.js +++ b/packageDomain/pages/resourceDetails/myAudio/index.js @@ -267,16 +267,22 @@ this.data.threeLeveData.push(item); } - if (this.data.productLinkPath == item.productLinkPath) { - selectedId = index; - } - }); + }); + console.log(this.data.threeLeveData); + this.data.threeLeveData.forEach((items, indexs) => { + if (this.data.productLinkPath == items.productLinkPath) { + selectedId = indexs; + + } + }) if (selectedId !== -1) { let datas = this.data.threeLeveData[selectedId]; + if (this.data.formPath == 'jsek_cloudLearning') { showDataUrl = app.config.requestCtx + '/file/api/ApiDownloadForAuthorize?md5=' + datas.protectedFile + '&token=' + wx.getStorageSync(app.config.tokenKey); } else { + console.log(datas); showDataUrl = app.config.requestCtx + '/file/api/ApiDownload?md5=' + datas.file; } titleName = datas.name; -- Gitblit v1.9.1