From 72edc07a7fe714316d318708710c150f7d247bbc Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 28 三月 2024 11:50:19 +0800 Subject: [PATCH] 图书分类、列表、详情页bug修改 --- packageBookService/pages/bookServices/detail/components/testResource/testResource.js | 28 ++++++++++++++++++---------- 1 files changed, 18 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..e16efd3 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,10 +122,20 @@ // 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) } } }) -- Gitblit v1.9.1