| | |
| | | this.setData({ |
| | | digitalTextId: options.id |
| | | }) |
| | | const token = wx.getStorageSync(app.config.tokenKey) |
| | | if (!token) { |
| | | loginInfo(app, (data) => { |
| | | if (data) { |
| | | this.digitalTextbooksDetailsGet(this.data.digitalTextId) |
| | | this.getType() |
| | | this.getCertificateList() |
| | | } else { |
| | | |
| | | } |
| | | }) |
| | | } |
| | | this.digitalTextbooksDetailsGet(this.data.digitalTextId) |
| | | this.getType() |
| | | this.getCertificateList() |
| | |
| | | isBuy: false |
| | | }) |
| | | } |
| | | res.datas.publicationDate = moment(res.datas.publicationDate).format('YYYY年MM月DD日') |
| | | res.datas.publicationDate = moment(res.datas.publicationDate).format('YYYY年MM月') |
| | | if (res.datas.icon == '') { |
| | | res.datas.icon = '/static/images/default-book-img.png' |
| | | } |
| | |
| | | |
| | | }, |
| | | onTabClick(e) { |
| | | // debugger |
| | | console.log(e); |
| | | let tab = e.currentTarget.dataset.tab; |
| | | |