| | |
| | | }, |
| | | // 节点展开 |
| | | handleChange(e) { |
| | | console.log(e.detail.value); |
| | | this.setData({ |
| | | openIds: e.detail.value, |
| | | }); |
| | |
| | | if ( |
| | | this.properties.tab == "jsek_cloudLearning" && |
| | | this.resourceIsBuy(item) |
| | | // item.saleMethod.length > 0 |
| | | ) { |
| | | return wx.showToast({ |
| | | icon: "error", |
| | |
| | | "请先购买该资源" : "请先点击领取查看按钮", |
| | | }); |
| | | } |
| | | if ( |
| | | item.saleMethod.length == 0 && |
| | | item.sysType == "CmsItem" && |
| | | this.properties.tab == "jsek_cloudLearning" |
| | | ) { |
| | | return wx.showToast({ |
| | | icon: "error", |
| | | title: "暂未开始销售,请联系管理员", |
| | | }); |
| | | } |
| | | // if ( |
| | | // item.saleMethod.length == 0 && |
| | | // item.sysType == "CmsItem" && |
| | | // this.properties.tab == "jsek_cloudLearning" |
| | | // ) { |
| | | // return wx.showToast({ |
| | | // icon: "error", |
| | | // title: "暂未开始销售,请联系管理员", |
| | | // }); |
| | | // } |
| | | if (this.properties.tab == "jsek_teachingResources" && (item.file || item.freeFile)) { |
| | | let file = item.fileMap[item.file] ? item.fileMap[item.file] : item.fileMap[item.freeFile] |
| | | if (file && file.protectType !== "Public") { |
| | |
| | | wx.navigateTo({ |
| | | url: `${url}?productLinkPath=${item.productLinkPath}&parentProductLinkPath=${parentProductLinkPath}&parentName=${parentName}&activeId=${item.id}&bookId=${this.properties.bookInfo.id}&bookName=${this.properties.bookInfo.name}&cmsId=${this.properties.bookInfo.rootCmsItemId}&formPath=${this.properties.tab}&applyState=${this.properties.applyState}&deadline=${this.properties.deadline}`, |
| | | }); |
| | | |
| | | // debugger |
| | | if (item.selectType == "pdf" || item.selectType == "document") { |
| | | const fileLink = item.file ? item.file : item.freeFile |
| | | console.log(fileLink); |
| | |
| | | fileLink + |
| | | "&fileName=" + |
| | | item.name + |
| | | "&fileType=pdf" + |
| | | "&bookBuy=true" |
| | | "&fileType=pdf" + "&bookBuy=true" |
| | | }); |
| | | } |
| | | // if (item.selectType == "document") { |