| | |
| | | // // 有父级(包含销售方式),且未购买 |
| | | if (!item.isbuy && !item.freeFile) return wx.showToast({ |
| | | icon: 'error', |
| | | title: '请先购买该资源', |
| | | title: '请先激活或购买资源', |
| | | }) |
| | | if (item.protectedFile || item.freeFile) { |
| | | let file = item.fileMap[item.protectedFile] ? item.fileMap[item.protectedFile] : item.fileMap[item.freeFile] |
| | | if (file && file.protectType !== "Public") { |
| | | if (!item.isbuy) { |
| | | return wx.showToast({ |
| | | icon: 'error', |
| | | title: '请先购买该资源', |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | // if (!item.isbuy && item.freeFile) { |
| | | // let file = item.fileMap[item.freeFile] |
| | | // if (file && file.protectType !== "Public") { |
| | | // if (!item.isbuy) { |
| | | // return wx.showToast({ |
| | | // icon: 'error', |
| | | // title: '请先购买该资源', |
| | | // }); |
| | | // } |
| | | // } |
| | | // } |
| | | } |
| | | let url; |
| | | if (item.selectType == "video" || item.learnSelectType == "video") { |