| | |
| | | activeValues: [1, 2], |
| | | webpageSrc: '', |
| | | cloudShoppingCart: [], |
| | | selectAll: [] |
| | | selectAll: [], |
| | | shoppingCart: true |
| | | }, |
| | | ready() { |
| | | this.setData({ |
| | |
| | | } |
| | | }) |
| | | } else { |
| | | if (this.properties.isShowCheck) return true |
| | | const item = e.currentTarget.dataset.item |
| | | const parent = e.currentTarget.dataset.parent |
| | | let url |
| | | if (this.properties.isShowCheck && this.resourceIsBuy(item)) { |
| | | return wx.showToast({ |
| | | icon: 'error', |
| | | title: "请先购买资源" |
| | | }) |
| | | } |
| | | if (item.selectType == 'video' || item.learnSelectType == 'video') { |
| | | url = '/packageDomain/pages/resourceDetails/myVideo/index' |
| | | } else if (item.selectType == 'audio' || item.learnSelectType == 'audio') { |
| | |
| | | icon: 'error', |
| | | title: '已添加', |
| | | }) |
| | | |
| | | this.setData({ |
| | | shoppingCart: false |
| | | }) |
| | | } else { |
| | | let query = { |
| | | requests: [{ |
| | |
| | | icon: 'success', |
| | | title: '添加成功', |
| | | }) |
| | | |
| | | } |
| | | |
| | | }, |