From 232e4dcf0fc80bdcfff1bdf45431e67c25831fb6 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期五, 28 六月 2024 13:03:24 +0800 Subject: [PATCH] erweima --- packageBookService/pages/bookServices/examination/examination.js | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/packageBookService/pages/bookServices/examination/examination.js b/packageBookService/pages/bookServices/examination/examination.js index 19c8ee5..a8121dc 100644 --- a/packageBookService/pages/bookServices/examination/examination.js +++ b/packageBookService/pages/bookServices/examination/examination.js @@ -14,6 +14,7 @@ countdownInterval: null, // 璁℃椂鍣� isCountdownRunning: true, // 鏄惁鍊掕鏃� countdownTime: 0, // 鍊掕鏃舵椂闂� + storeInfo: '', bookId: "", productLinkPath: "", rootCmsItemId: "", @@ -68,6 +69,7 @@ rootCmsItemId: options.rootCmsItemId, idPathList: options.idPathList ? JSON.parse(options.idPathList) : [], answerType: options.answerType, + storeInfo: options.storeInfo, }); wx.setNavigationBarTitle({ title: options.answerTitle, @@ -818,6 +820,7 @@ let query = { path: "*", queryType: "*", + storeInfo: this.data.storeInfo, productId: this.data.bookId, cmsPath: pathitem.productLinkPath, itemFields: { @@ -853,6 +856,19 @@ }); } res.datas.cmsDatas[0].datas.forEach((item, index) => { + if (this.data.storeInfo) { + if (item.Embedded_QuestionBank_QuestionType == 'singleChoice') { + pathitem.name = "鍗曢�夐" + } else if (item.Embedded_QuestionBank_QuestionType == 'shortAnswer') { + pathitem.name = "绠�绛旈" + } else if (item.Embedded_QuestionBank_QuestionType == "completion") { + pathitem.name = "濉┖棰�"; + } else if (item.Embedded_QuestionBank_QuestionType == "multipleChoice") { + pathitem.name = "澶氶�夐"; + } else if (item.Embedded_QuestionBank_QuestionType == "judge") { + pathitem.name = "鍒ゆ柇棰�"; + } + } let oldObj = ""; if (oldList) oldObj = oldList.find((oldItem) => oldItem.id == item.id); @@ -1339,6 +1355,7 @@ 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: "*", @@ -1586,6 +1603,7 @@ let multipleChoiceArr = []; // 澶氶�� let completionArr = []; // 濉┖ let query = { + storeInfo: this.data.storeInfo, path: "*", cmsPath: this.data.rootCmsItemId, cmsType: "*", @@ -1871,6 +1889,7 @@ itemIds.push(item.id + ""); }); let query = { + storeInfo: this.data.storeInfo, path: "*", cmsPath: this.data.rootCmsItemId, cmsType: "*", -- Gitblit v1.9.1