From 232e4dcf0fc80bdcfff1bdf45431e67c25831fb6 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期五, 28 六月 2024 13:03:24 +0800 Subject: [PATCH] erweima --- packageDomain/pages/resourceDetails/myVideo/index.js | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/packageDomain/pages/resourceDetails/myVideo/index.js b/packageDomain/pages/resourceDetails/myVideo/index.js index 5311e4f..f20f1b1 100644 --- a/packageDomain/pages/resourceDetails/myVideo/index.js +++ b/packageDomain/pages/resourceDetails/myVideo/index.js @@ -16,6 +16,7 @@ dialogKey: false, style: 'border: 2rpx solid rgba(220,220,220,1);border-radius: 12rpx;', activeId: '', + storeInfo: '', bookId: '', bookName: '', cmsId: '', @@ -38,10 +39,10 @@ startTime: "", //杩涘叆椤甸潰褰撳墠鏃堕棿 pauseTime: 0, //鏆傚仠鏃堕棿 formPath: '', - loading: true, + loading: false, hidden: true, videoError: false, - videoLoaidng: false + videoLoading: false }, // 鏍煎紡鍖栫瑪璁版椂闂� convertTimestamp(timestamp) { @@ -69,6 +70,7 @@ navBarHeight: navBarHeight, barHeight: systInfo.statusBarHeight, activeId: options.activeId, + storeInfo: options.storeInfo, bookId: options.bookId, bookName: options.bookName, cmsId: options.cmsId, @@ -77,6 +79,7 @@ formPath: options.formPath, flag: false }) + console.log(this.data.storeInfo,13) if (options.parentName !== "鏁欏璧勬簮" && options.parentName !== "浜戝涔�") { this.setData({ parentName: options.parentName, @@ -202,9 +205,10 @@ }, resourceDetailsData() { this.setData({ - videoLoaidng: true + // videoLoaidng: true }) let query = { + storeInfo: this.data.storeInfo, path: '*', queryType: '*', productId: this.data.bookId, @@ -229,7 +233,9 @@ } } app.MG.store.getProductDetail(query).then(res => { + console.log(this.data.productLinkPath, 345) res.datas.cmsDatas[0].datas.forEach((item) => { + console.log(item, 222) if (item.selectType === "video" || item.learnSelectType === "video") { this.data.threeLeveData.push(item) this.setData({ @@ -237,6 +243,7 @@ }) this.data.threeLeveData.forEach((items, index) => { // 淇敼姝ゅ娣诲姞index鍙傛暟 if (this.data.productLinkPath == items.productLinkPath) { + console.log(items, 5678) if (this.data.formPath === "jsek_cloudLearning") { let file items.protectedFile ? file = items.protectedFile : file = items.freeFile @@ -270,7 +277,7 @@ this.setData({ videoLoaidng: true, selectedId: e.currentTarget.dataset.index, - showData: '', + // showData: '', titleName: item.name }) if (item.selectType == "video" || item.learnSelectType === "video") { -- Gitblit v1.9.1