| | |
| | | activeItem: null, |
| | | loading: false, |
| | | contentLoading: false, |
| | | noData:false, |
| | | noData: false, |
| | | shoppingCartGetId: [], |
| | | sorter: { |
| | | value: "*", |
| | |
| | | }, |
| | | |
| | | getCourseList(item) { |
| | | this.setData({ |
| | | noData: false, |
| | | }) |
| | | let searchObj = {} |
| | | let sort = {} |
| | | // // 搜索框 |
| | |
| | | } |
| | | } |
| | | app.MG.store.getProductList(obj).then((res) => { |
| | | if(!res.datas.length) { |
| | | if (!res.datas.length) { |
| | | return this.setData({ |
| | | noData:true, |
| | | contentLoading:false |
| | | noData: true, |
| | | contentLoading: false |
| | | }) |
| | | } |
| | | res.datas.forEach(item => { |
| | |
| | | ) |
| | | ) { |
| | | wx.showToast({ |
| | | title: "该书已在购物车,请勿重复添加空", |
| | | title: "该课程已在购物车,请勿重复添加", |
| | | icon: 'none', |
| | | duration: 1000 |
| | | }) |