| | |
| | | parentProductLinkPath: '', |
| | | productLinkPath: '', |
| | | threeLeveData: [], |
| | | source: "", |
| | | showData: '', |
| | | src: '', |
| | | selectedId: null, |
| | |
| | | cmsId: options.cmsId, |
| | | parentProductLinkPath: options.parentProductLinkPath, |
| | | productLinkPath: options.productLinkPath, |
| | | formPath: options.formPath |
| | | formPath: options.formPath, |
| | | source: options.source, |
| | | }) |
| | | |
| | | if (options.parentName !== "教学资源" && options.parentName !== "云学习") { |
| | |
| | | const token = wx.getStorageSync(app.config.tokenKey) |
| | | if (!token) { |
| | | loginInfo(app, (data) => { |
| | | if (data) {} else {} |
| | | if (data) { |
| | | this.resourceDetailsData() |
| | | this.getNoteList() |
| | | } else { |
| | | this.resourceDetailsData() |
| | | this.getNoteList() |
| | | } |
| | | }) |
| | | } else { |
| | | this.resourceDetailsData() |
| | | this.getNoteList() |
| | | } |
| | | this.resourceDetailsData() |
| | | this.getNoteList() |
| | | }, |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 用户点击右上角分享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | }, |
| | | onShareAppMessage() {}, |
| | | onShareTimeline() {}, |
| | | onTabsChange(event) {}, |
| | | |
| | | onTabsClick(event) {}, |
| | |
| | | let titleName = ''; |
| | | |
| | | res.datas.cmsDatas[0].datas.forEach((item, index) => { |
| | | if (item.selectType === "audio" || item.learnSelectType === "audio") { |
| | | this.data.threeLeveData.push(item); |
| | | if (this.data.source == 'qrcode') { |
| | | if (item.id == this.data.activeId) { |
| | | this.data.threeLeveData.push(item); |
| | | } |
| | | } else { |
| | | if (item.selectType === "audio" || item.learnSelectType === "audio") { |
| | | // this.data.threeLeveData.push(item); |
| | | if (this.data.storeInfo == 'jsek_digitalCourses') { |
| | | if (this.data.isBuy) { |
| | | if (item.sysType == 'CmsItem') { |
| | | this.data.threeLeveData.push(item) |
| | | } |
| | | } else { |
| | | if (item.sysType == 'CmsItem' && item.freeFile) { |
| | | this.data.threeLeveData.push(item) |
| | | } |
| | | } |
| | | } else { |
| | | if (res.datas.purchasedSaleMethodIdList.includes(item.defaultSaleMethodId) || item.freeFile) { |
| | | this.data.threeLeveData.push(item) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | }); |
| | | this.data.threeLeveData.forEach((items, indexs) => { |
| | | if (this.data.productLinkPath == items.productLinkPath) { |
| | |
| | | isplay: false |
| | | }) |
| | | const item = e.currentTarget.dataset.item |
| | | console.log(item, 222) |
| | | if (this.data.showData != '') { |
| | | this.setData({ |
| | | titleName: item.name, |
| | |
| | | }, |
| | | // 播放公共代码 |
| | | pubulicPlayFun() { |
| | | // debugger |
| | | this.setData({ |
| | | speed: 1.0, |
| | | }) |