| | |
| | | }) |
| | | if (this.data.learnClassData) { |
| | | this.getResourceDataList(this.data.learnClassData) |
| | | } else { |
| | | this.resourceDetailsData() |
| | | } |
| | | }); |
| | | }, |
| | |
| | | app.MG.job.newJobWithApiNewEvent(data).then((res) => {}) |
| | | }, |
| | | onTabsChange(event) { |
| | | console.log(event, 234) |
| | | let tabValue = event.detail.value |
| | | if (tabValue == '1') { |
| | | this.getNoteList() |
| | |
| | | this.setData({ |
| | | isBuy: res.datas.purchasedSaleMethodIdList.includes(res.datas.defaultSaleMethodId) |
| | | }) |
| | | console.log(0, res.datas.cmsDatas[0].datas); |
| | | res.datas.cmsDatas[0].datas.forEach((item) => { |
| | | if (this.data.source == 'qrcode') { |
| | | if (item.id == this.data.activeId) { |
| | |
| | | } else { |
| | | // 买了 |
| | | if (this.data.buyList.length) { |
| | | if (this.data.buyList.some(citem => item.productLinkPath.includes(citem.productLinkPath))) this.data.threeLeveData.push(item) |
| | | if (this.data.buyList.some(citem => item.productLinkPath.includes(citem.productLinkPath))) { |
| | | this.data.threeLeveData.push(item) |
| | | } |
| | | } else { |
| | | if (!item.saleMethod.length) { |
| | | // 没买且无销售方式 |
| | |
| | | } else { |
| | | // 没买且销售方式过期 |
| | | const itemSaleMethod = item.saleMethod.find(citem => citem.SaleType == 'Normal') |
| | | if (new Date().getTime() > new Date(itemSaleMethod.EndDate).getTime()) this.data.threeLeveData.push(item) |
| | | if (new Date().getTime() > new Date(itemSaleMethod.EndDate).getTime()) { |
| | | this.data.threeLeveData.push(item) |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | }) |
| | | if (item.selectType == "video" || item.learnSelectType === "video") { |
| | | if (this.data.formPath === "jsek_cloudLearning") { |
| | | |
| | | let file = |
| | | item.protectedFile || item.file ? file = item.protectedFile || item.file : file = item.freeFile |
| | | this.setData({ |
| | |
| | | md5: md5, |
| | | appRefCode: app.config.appRefCode |
| | | } |
| | | |
| | | app.MG.file.getAliVod(query).then((res) => { |
| | | if (res) { |
| | | if (res && res.data == '') { |
| | |
| | | videoLoading: false, |
| | | }) |
| | | } else { |
| | | return ElMessage.error('无法获取视频资源') |
| | | return wx.showToast({ |
| | | icon: 'error', |
| | | title: '无法获取视频资源', |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | timeUpdate(e) { |
| | | console.log(2); |
| | | let { |
| | | currentTime, |
| | | duration |