| | |
| | | } |
| | | }) |
| | | } |
| | | wx.showLoading({ |
| | | title: '加载中', |
| | | }) |
| | | // 获取章节下是否有题目 |
| | | let idPathList = [] |
| | | let query = { |
| | |
| | | } |
| | | } |
| | | if (value.childrenFolderCount == 0) { |
| | | wx.hideLoading() |
| | | return wx.showToast({ |
| | | icon: "error", |
| | | title: '暂无数据', |
| | |
| | | }) |
| | | }) |
| | | } |
| | | // query: { |
| | | // title: bookData.value.test, |
| | | // bookId: route.query.bookId, |
| | | // productLinkPath: data.productLinkPath, |
| | | // answerTitle: data.name, |
| | | // answerType: 'option', |
| | | // rootCmsItemId: bookData.value.rootCmsItemId, |
| | | // idPathList: JSON.stringify(idPathList) |
| | | // } |
| | | |
| | | wx.hideLoading() |
| | | wx.navigateTo({ |
| | | url: `/packageBookService/pages/bookServices/examination/examination?bookId=${this.properties.bookInfo.id}&productLinkPath=${value.productLinkPath}&rootCmsItemId=${this.properties.bookInfo.rootCmsItemId}&idPathList=${JSON.stringify(idPathList)}&answerTitle=${value.name}&answerType=${'option'}`, |
| | | }) |
| | |
| | | }) |
| | | }, |
| | | async getMockId() { |
| | | wx.showLoading({ |
| | | title: '加载中' |
| | | }) |
| | | let id |
| | | let query = { |
| | | start: 0, |
| | |
| | | // return logIn() |
| | | // } |
| | | const mockid = await this.getMockId() |
| | | wx.hideLoading() |
| | | const item = e.currentTarget.dataset.item |
| | | wx.navigateTo({ |
| | | url: `/packageBookService/pages/bookServices/examination/examination?bookId=${this.properties.bookInfo.id}&rootCmsItemId=${this.properties.bookInfo.rootCmsItemId}&answerTitle=${item.name}&answerType=${'mock'}&uuid=${item.id}&mockid=${mockid}`, |
| | | }) |
| | | }, |
| | | // 购买组卷 |
| | | buyMock() { |
| | | var myEventDetail = {} |
| | | var myEventOption = { |
| | | bubbles: true, |
| | | composed: true |
| | | } |
| | | this.triggerEvent('buyMock', myEventDetail, myEventOption) |
| | | } |
| | | } |
| | | }) |