| | |
| | | }, |
| | | }); |
| | | } |
| | | if (!this.data.isBuyBank) return wx.showToast({ |
| | | icon: 'error', |
| | | title: '请先购买题库', |
| | | }) |
| | | // if (!this.data.isBuyBank) return wx.showToast({ |
| | | // icon: 'error', |
| | | // title: '请先购买题库', |
| | | // }) |
| | | wx.showLoading({ |
| | | title: "加载中", |
| | | }); |
| | |
| | | wx.hideLoading(); |
| | | if (value.refCode == "psychology") { |
| | | const listName = value.name |
| | | const listId = value.id |
| | | wx.navigateTo({ |
| | | url: `/packageBookService/pages/psychologyAnswer/psychologyAnswer?listName=${ |
| | | listName |
| | | }` |
| | | }&listId=${listId}` |
| | | }) |
| | | } else { |
| | | wx.navigateTo({ |
| | |
| | | } |
| | | }, |
| | | goMycollect(e) { |
| | | const answertype = e.currentTarget.dataset.answertype; |
| | | const token = wx.getStorageSync("jsek-token"); |
| | | if (token) { |
| | | gotoPage() |
| | | } else { |
| | | loginInfo(app, (data) => { |
| | | if (data) gotoPage() |
| | | }) |
| | | } |
| | | const gotoPage = () => { |
| | | wx.navigateTo({ |
| | | url: `/packageBookService/pages/bookServices/examination/examination?bookId=${ |
| | |
| | | }&answerType=${answertype}`, |
| | | }); |
| | | } |
| | | const answertype = e.currentTarget.dataset.answertype; |
| | | const token = wx.getStorageSync("jsek-token"); |
| | | if (token) { |
| | | gotoPage() |
| | | } else { |
| | | loginInfo(app, (data) => { |
| | | if (data) {} |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | // 练习 组件切换 |
| | | onRadioChange(e) { |