From 82f93b8fa8344e55bf5c946ba73463012f186df0 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期三, 26 六月 2024 15:07:50 +0800 Subject: [PATCH] mulu --- packageDomain/pages/resourceDetails/myVideo/index.js | 27 +++++++++++++++++++-------- 1 files changed, 19 insertions(+), 8 deletions(-) diff --git a/packageDomain/pages/resourceDetails/myVideo/index.js b/packageDomain/pages/resourceDetails/myVideo/index.js index 5033850..588d5d8 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, @@ -82,7 +84,6 @@ parentName: options.parentName, }) } - console.log(options, 'options'); this.resourceDetailsData() this.getNoteList() }, @@ -202,7 +203,11 @@ wx.navigateBack(); }, resourceDetailsData() { + this.setData({ + // videoLoaidng: true + }) let query = { + storeInfo: this.data.storeInfo, path: '*', queryType: '*', productId: this.data.bookId, @@ -227,8 +232,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 +242,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 +274,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 +364,6 @@ textvalue: e.detail.value }) }, - - // 鑾峰彇绗旇鍒楄〃 async getNoteList() { // this.setData({ @@ -543,5 +549,10 @@ this.setData({ videoError: true }); + }, + loadedmetadata(e) { + this.setData({ + videoLoaidng: false + }) } }) \ No newline at end of file -- Gitblit v1.9.1