| | |
| | | } |
| | | } |
| | | app.MG.store.getProductList(obj).then((res) => { |
| | | console.log(res, '7895') |
| | | res.datas.forEach(item => { |
| | | item.price = item.price.toFixed(2) |
| | | }) |
| | |
| | | courseList: res.datas |
| | | }) |
| | | |
| | | console.log(this.data.courseList); |
| | | |
| | | }) |
| | | }, |
| | | searchBook() { |
| | | console.log(this.data.searchValue); |
| | | this.getCourseList(this.data.activeItem) |
| | | }, |
| | | courseDetail(e) { |
| | | console.log(e); |
| | | const item = e.currentTarget.dataset.item |
| | | |
| | | setNewView('productId', item.id) |
| | | this.getCourseTypeListList() |
| | | |
| | | wx.navigateTo({ |
| | | url: '/pages/digitalCourses/digitalCoursesDetails/index?id=' + item.id, |
| | | }) |