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 | 28 ++++++++++++++++++++-------- 1 files changed, 20 insertions(+), 8 deletions(-) diff --git a/packageDomain/pages/resourceDetails/myVideo/index.js b/packageDomain/pages/resourceDetails/myVideo/index.js index 5033850..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,9 +39,10 @@ startTime: "", //杩涘叆椤甸潰褰撳墠鏃堕棿 pauseTime: 0, //鏆傚仠鏃堕棿 formPath: '', - loading: true, + loading: false, hidden: true, - videoError: false + videoError: false, + videoLoading: false }, // 鏍煎紡鍖栫瑪璁版椂闂� convertTimestamp(timestamp) { @@ -64,11 +66,11 @@ const systInfo = wx.getSystemInfoSync(); const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅 const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 瀵艰埅鏍忛珮搴� - console.log(options, 'options'); this.setData({ navBarHeight: navBarHeight, barHeight: systInfo.statusBarHeight, activeId: options.activeId, + storeInfo: options.storeInfo, bookId: options.bookId, bookName: options.bookName, cmsId: options.cmsId, @@ -77,12 +79,12 @@ formPath: options.formPath, flag: false }) + console.log(this.data.storeInfo,13) if (options.parentName !== "鏁欏璧勬簮" && options.parentName !== "浜戝涔�") { this.setData({ parentName: options.parentName, }) } - console.log(options, 'options'); this.resourceDetailsData() this.getNoteList() }, @@ -202,7 +204,11 @@ wx.navigateBack(); }, resourceDetailsData() { + this.setData({ + // videoLoaidng: true + }) let query = { + storeInfo: this.data.storeInfo, path: '*', queryType: '*', productId: this.data.bookId, @@ -227,8 +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); + console.log(item, 222) if (item.selectType === "video" || item.learnSelectType === "video") { this.data.threeLeveData.push(item) this.setData({ @@ -236,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 @@ -267,8 +275,9 @@ onVideo(e) { const item = e.currentTarget.dataset.item this.setData({ + videoLoaidng: true, selectedId: e.currentTarget.dataset.index, - showData: '', + // showData: '', titleName: item.name }) if (item.selectType == "video" || item.learnSelectType === "video") { @@ -356,8 +365,6 @@ textvalue: e.detail.value }) }, - - // 鑾峰彇绗旇鍒楄〃 async getNoteList() { // this.setData({ @@ -543,5 +550,10 @@ this.setData({ videoError: true }); + }, + loadedmetadata(e) { + this.setData({ + videoLoaidng: false + }) } }) \ No newline at end of file -- Gitblit v1.9.1