| | |
| | | Toast({ |
| | | context: this, |
| | | selector: '#t-toast', |
| | | message: '已添加', |
| | | theme: 'success', |
| | | message: '该书已在购物车,请勿重复添加', |
| | | theme: 'warning', |
| | | direction: 'column', |
| | | }); |
| | | } |
| | |
| | | buyBtn() { |
| | | if (this.data.tabValue == 'brief' && !this.data.bookBuy) { |
| | | this.buyBook() |
| | | } else if (this.data.tabValue == 'jsek_cloudLearning') { |
| | | const tree = this.selectComponent('#tree') |
| | | tree.onCloudShoppingCart() |
| | | } else if (this.data.tabValue == 'questionBank') { |
| | | this.buyMock() |
| | | } else { |
| | | console.log(this.data.tabValue); |
| | | } |
| | | // else if (this.data.tabValue == 'jsek_cloudLearning') { |
| | | // const tree = this.selectComponent('#tree') |
| | | // tree.onCloudShoppingCart() |
| | | // } else if (this.data.tabValue == 'questionBank') { |
| | | // this.buyMock() |
| | | // } else { |
| | | // console.log(this.data.tabValue); |
| | | // } |
| | | }, |
| | | |
| | | goRead() { |