| | |
| | | const token = wx.getStorageSync(app.config.tokenKey) |
| | | if (!token) { |
| | | loginInfo(app, (data) => { |
| | | if (data) {} else {} |
| | | if (data) { |
| | | this.digitalTextbooksDetailsGet(this.data.digitalTextId) |
| | | this.getType() |
| | | this.getCertificateList() |
| | | } else { |
| | | |
| | | } |
| | | }) |
| | | } |
| | | this.digitalTextbooksDetailsGet(this.data.digitalTextId) |
| | |
| | | /** |
| | | * 用户点击右上角分享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | }, |
| | | onShareAppMessage() {}, |
| | | onShareTimeline() {}, |
| | | |
| | | |
| | | digitalTextbooksDetailsGet(digitalId) { |
| | |
| | | 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; |
| | | |
| | |
| | | }, |
| | | |
| | | confirmM() { |
| | | let currentDate = new Date() |
| | | let year = currentDate.getFullYear() |
| | | let month = currentDate.getMonth() + 1 |
| | | let day = currentDate.getDate() |
| | | if (this.data.userInfo.fullName) { |
| | | if (this.data.pictureMd5 == '') { |
| | | wx.showToast({ |
| | |
| | | author: this.data.digitalsData.author, |
| | | ISBN: this.data.digitalsData.isbn, |
| | | publicationDate: this.data.digitalsData.publicationDate, |
| | | publicationDate: this.data.digitalsData.publicationDate, |
| | | userName: this.data.userInfo.fullName, |
| | | userPicture: this.data.pictureMd5, |
| | | certificate: this.data.rzzsImg |
| | | studyTime: this.data.digitalsData.beginDate + '-' + year + '-' + month + '-' + day, |
| | | website: this.data.website |
| | | } |
| | | data = { |
| | | topicIdOrRefCode: 'applyTextbookCertificate', |