From 6df96b3e7a7da1985ee875e84711e9f15c5fbff0 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期二, 24 十二月 2024 18:25:02 +0800 Subject: [PATCH] Merge refs/remotes/origin/master into refs/heads/master --- packageCourse/pages/studentClass/index.js | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packageCourse/pages/studentClass/index.js b/packageCourse/pages/studentClass/index.js index 7ad0e99..e18f442 100644 --- a/packageCourse/pages/studentClass/index.js +++ b/packageCourse/pages/studentClass/index.js @@ -169,12 +169,12 @@ }, // 鑾峰彇鏁欐潗璇︽儏 - async getBookDetail(shopId) { + async getBookDetail(shopId, path) { let query = { - path: 'jsek_digitalTextbooks', + path, queryType: '*', productId: String(shopId), - storeInfo: 'jsek_digitalTextbooks', + storeInfo: path, coverSize: { height: 300, width: 210 @@ -194,7 +194,9 @@ classId, item } = e.currentTarget.dataset - const bookData = await this.getBookDetail(item.linkProductDto?.product?.id) + const bookRefCode = item.linkProductDto?.product?.refCode + const path = bookRefCode ? 'jsek_digitalTextbooks' : 'defaultGoodsStore3' + const bookData = await this.getBookDetail(item.linkProductDto?.product?.id, path) if (item.userState == 'WaitValid' || item.userState == 'Reject') { wx.showToast({ title: item.userState == 'WaitValid' ? '瀹℃牳涓�' : '鏈�氳繃', @@ -204,7 +206,7 @@ return false } wx.navigateTo({ - url: '/packageCourse/pages/teachClass/index?classId=' + classId + '&bookId=' + bookData.id + '&author=' + bookData.author + '&isbn=' + bookData.isbn + '&rootCmsItemId=' + bookData.rootCmsItemId, + url: '/packageCourse/pages/teachClass/index?classId=' + classId + '&bookId=' + bookData.id + '&author=' + bookData.author + '&isbn=' + bookData.isbn + '&rootCmsItemId=' + bookData.rootCmsItemId + '&bookRefCode=' + bookRefCode, }) }, -- Gitblit v1.9.1