| | |
| | | bookId: options.id, |
| | | bookPath: parentPath.join('\\') |
| | | }) |
| | | const token = wx.getStorageSync(app.config.tokenKey) |
| | | this.digitalCoursesDetailsGet(options.id) |
| | | this.getPlayerList() |
| | | if (token) this.getPlayerList() |
| | | this.getType() |
| | | }, |
| | | logInFun(callback) { |
| | |
| | | */ |
| | | onShow() { |
| | | if (this.data.tabValue == 2 && this.data.selectActive == 'learn') { |
| | | this.getPlayerList() |
| | | const token = wx.getStorageSync(app.config.tokenKey) |
| | | if (token) this.getPlayerList() |
| | | this.getResource() |
| | | this.getRelationBook() |
| | | } |
| | |
| | | pading: { |
| | | start: 99, |
| | | size: 0 |
| | | } |
| | | }, |
| | | |
| | | } |
| | | app.MG.store.getProductDetail(query).then((res) => { |
| | | let test = [] |
| | |
| | | }, |
| | | |
| | | readTextBook() { |
| | | const token = wx.getStorageSync(app.config.tokenKey) |
| | | if (!token) { |
| | | this.logInFun(() => {}) |
| | | } else { |
| | | wx.navigateTo({ |
| | | url: '/pages/digitalCourses/digitalCoursesDetails/components/digitalRead/index?refCode=' + this.data.relationTextBook.refCode + '&tryPageCount=' + this.data.relationTextBook.probationPage + '&isTextBookBuy=' + this.data.isTextBookBuy |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | //在线测试我的收藏、我的错题 |
| | | goMycollect(e) { |
| | | const answertype = e.currentTarget.dataset.answertype; |
| | | const token = wx.getStorageSync("jsek-token"); |
| | | const token = wx.getStorageSync(app.config.tokenKey) |
| | | if (!token) { |
| | | return wx.getUserProfile({ |
| | | desc: "用户登录", |
| | | success: (res) => { |
| | | console.log(res); |
| | | }, |
| | | }); |
| | | } |
| | | this.logInFun(() => {}) |
| | | } else { |
| | | const answertype = e.currentTarget.dataset.answertype; |
| | | wx.navigateTo({ |
| | | url: `/packageBookService/pages/bookServices/examination/examination?bookId=${ |
| | | this.data.digitalsData.id |
| | |
| | | answertype == "collectQuestion" ? "我的收藏" : "我的错题" |
| | | }&answerType=${answertype}&storeInfo=${app.config.digitalCourses}`, |
| | | }); |
| | | } |
| | | |
| | | }, |
| | | |
| | | onCorrelationBook(e) { |