From c6abdfaf883e35e9c930dbdbe533d36e2966eb23 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期一, 08 七月 2024 12:00:37 +0800 Subject: [PATCH] 检索页修改 --- packageBookService/pages/bookServices/examination/examination.js | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/packageBookService/pages/bookServices/examination/examination.js b/packageBookService/pages/bookServices/examination/examination.js index a8121dc..9a82a8d 100644 --- a/packageBookService/pages/bookServices/examination/examination.js +++ b/packageBookService/pages/bookServices/examination/examination.js @@ -820,7 +820,7 @@ let query = { path: "*", queryType: "*", - storeInfo: this.data.storeInfo, + productId: this.data.bookId, cmsPath: pathitem.productLinkPath, itemFields: { @@ -840,6 +840,9 @@ size: 999, }, }; + if (this.data.storeInfo) { + query.storeInfo = this.data.storeInfo + } await app.MG.store.getProductDetail(query).then((res) => { this.setData({ total: res.datas.cmsDatas[0].datas.length, @@ -1355,7 +1358,6 @@ for (let qindex = 0; qindex < this.data.collectList.length; qindex++) { const qitem = this.data.collectList[qindex]; let query = { - storeInfo: this.data.storeInfo, path: "*", cmsPath: this.data.rootCmsItemId, cmsType: "*", @@ -1374,6 +1376,9 @@ Embedded_QuestionBank_Difficulty: [], }, }; + if (this.data.storeInfo) { + query.storeInfo = this.data.storeInfo + } await app.MG.store.getProductDetail(query).then((res) => { let questionArr = []; res.datas.cmsDatas[0].datas.forEach((item, index) => { @@ -1603,7 +1608,6 @@ let multipleChoiceArr = []; // 澶氶�� let completionArr = []; // 濉┖ let query = { - storeInfo: this.data.storeInfo, path: "*", cmsPath: this.data.rootCmsItemId, cmsType: "*", @@ -1622,6 +1626,9 @@ Embedded_QuestionBank_Difficulty: [], }, }; + if (this.data.storeInfo) { + query.storeInfo = this.data.storeInfo + } await app.MG.store.getProductDetail(query).then((res) => { let questionArr = []; res.datas.cmsDatas[0].datas.forEach((item, index) => { @@ -1889,7 +1896,6 @@ itemIds.push(item.id + ""); }); let query = { - storeInfo: this.data.storeInfo, path: "*", cmsPath: this.data.rootCmsItemId, cmsType: "*", @@ -1908,6 +1914,9 @@ Embedded_QuestionBank_Difficulty: [], }, }; + if (this.data.storeInfo) { + query.storeInfo = this.data.storeInfo + } await app.MG.store.getProductDetail(query).then((res) => { res.datas.cmsDatas[0].datas.forEach((item, index) => { // 寰幆questionList,缁欐瘡棰樿祴鍊煎垎鏁� -- Gitblit v1.9.1