| | |
| | | titleBook: "图书(" + res.totalSize + "本)", |
| | | }) |
| | | }) |
| | | // let data1 = { |
| | | // Size: 9999, |
| | | // Start: 0, |
| | | // sort: { |
| | | // type: "Desc", |
| | | // field: "CreateDate", |
| | | // }, |
| | | // searchList: [{ |
| | | // keywords: 'jsek_digitalCourses', |
| | | // field: "ProductType", |
| | | // }], |
| | | // } |
| | | // app.MG.store.getPurchasedProductList(data1).then((res) => { |
| | | // that.setData({ |
| | | // titleCourse: "课程(" + res.totalSize + "门)", |
| | | // }) |
| | | // }) |
| | | let data1 = { |
| | | Size: 9999, |
| | | Start: 0, |
| | | sort: { |
| | | type: "Desc", |
| | | field: "CreateDate", |
| | | }, |
| | | searchList: [{ |
| | | keywords: 'jsek_digitalCourses', |
| | | field: "ProductType", |
| | | }], |
| | | } |
| | | app.MG.store.getPurchasedProductList(data1).then((res) => { |
| | | that.setData({ |
| | | titleCourse: "课程(" + res.totalSize + "门)", |
| | | }) |
| | | }) |
| | | let data2 = { |
| | | Size: 9999, |
| | | Start: 0, |
| | |
| | | }); |
| | | } |
| | | if (this.data.active == 1) { |
| | | // wx.navigateTo({ |
| | | // url: `/packageBookService/pages/bookServices/detail/index?id=${book.product.id}&name=${book.product.name}`, |
| | | // }); |
| | | wx.navigateTo({ |
| | | url: `/pages/digitalCourses/digitalCoursesDetails/index?id=${book.product.id}`, |
| | | }); |
| | | } |
| | | if (this.data.active == 2) { |
| | | wx.navigateTo({ |