From 986d4798a9dad75b6ae617e52ea2918dfacd3708 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期五, 22 三月 2024 11:19:34 +0800 Subject: [PATCH] 图书详情、答题器bug修改 --- packageBookService/pages/bookServices/detail/components/testResource/testResource.js | 19 +++++++++---------- 1 files changed, 9 insertions(+), 10 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/components/testResource/testResource.js b/packageBookService/pages/bookServices/detail/components/testResource/testResource.js index 119ce3b..ec78dac 100644 --- a/packageBookService/pages/bookServices/detail/components/testResource/testResource.js +++ b/packageBookService/pages/bookServices/detail/components/testResource/testResource.js @@ -42,6 +42,9 @@ } }) } + wx.showLoading({ + title: '鍔犺浇涓�', + }) // 鑾峰彇绔犺妭涓嬫槸鍚︽湁棰樼洰 let idPathList = [] let query = { @@ -55,6 +58,7 @@ } } if (value.childrenFolderCount == 0) { + wx.hideLoading() return wx.showToast({ icon: "error", title: '鏆傛棤鏁版嵁', @@ -70,16 +74,7 @@ }) }) } - // 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'}`, }) @@ -106,6 +101,9 @@ }) }, async getMockId() { + wx.showLoading({ + title: '鍔犺浇涓�' + }) let id let query = { start: 0, @@ -124,6 +122,7 @@ // 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}`, -- Gitblit v1.9.1