litian
2024-06-26 ccda9ec2fe70d8f51ef184eafc04b78d22dfbabd
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: "*",