QYF-GitLab1
4 天以前 b55024ee2f42aa93e0ecaa3113bdeb286f6e59ac
packageBookService/pages/bookServices/examination/examination.js
@@ -649,7 +649,7 @@
    const saleData = res.datas.saleMethod.find(item => item.Name.includes('题库'))
    if (saleData && !res.datas.purchasedSaleMethodIdList.includes(saleData.Id)) return wx.showModal({
      title: '提示',
      content: '请先购买题库再答题',
      content: '请先激活或购买题库再答题',
      confirmColor: "#ff6c00",
      cancelColor: "#949494",
      editable: false, //是否显示输入框
@@ -936,7 +936,6 @@
        }
        res.datas.cmsDatas[0].datas.forEach((item, index) => {
          if (this.data.storeInfo || this.data.jslx) {
            console.log(item.Embedded_QuestionBank_QuestionType)
            if (item.Embedded_QuestionBank_QuestionType == 'singleChoice') {
              pathitem.name = "单选题"
            } else if (item.Embedded_QuestionBank_QuestionType == 'shortAnswer') {
@@ -952,7 +951,7 @@
          let oldObj = "";
          if (oldList)
            oldObj = oldList.find((oldItem) => oldItem.id == item.id);
          console.log(item.Embedded_QuestionBank_Stem, 111)
          // console.log(item.Embedded_QuestionBank_Stem, 111)
          let questionObj = {
            // num: index, // 题号
            id: item.id,
@@ -1489,7 +1488,7 @@
            questionObj.questionType == "completion" ||
            questionObj.questionType == "multipleChoice"
          ) {
            console.log(questionObj.answer, "111")
            // console.log(questionObj.answer, "111")
            try {
              questionObj.answer = JSON.parse(questionObj.answer).toString();
            } catch (error) {
@@ -1822,7 +1821,7 @@
          if (src) {
            questionObj.src = src
            questionObj.stem.stemTxt = this.removeVideoAndAudioTags(questionObj.stem.stemTxt)
            console.log('题干', questionObj.stem.stemTxt);
            // console.log('题干', questionObj.stem.stemTxt);
          }
        }
        if (item.Embedded_QuestionBank_QuestionType == "judge") {
@@ -1869,7 +1868,7 @@
        cardList: cardList,
        loading: false,
      });
      console.log(this.data.questionDataList, "questionDataList");
      // console.log(this.data.questionDataList, "questionDataList");
    });
  },
  // 获取组卷结果
@@ -2221,7 +2220,7 @@
              JSON.parse(res[0].value).time : 1000,
            "mockData.answer": JSON.parse(res[0].value).answerData,
          });
          console.log(JSON.parse(res[0].value));
          // console.log(JSON.parse(res[0].value));
          data = JSON.parse(res[0].value).answerData;
        }
      });
@@ -2276,7 +2275,7 @@
        this.setData({
          saveTime: 20,
        });
        console.log("模考答题数据已记录");
        // console.log("模考答题数据已记录");
      });
  },
@@ -2496,8 +2495,9 @@
      // 做完了且加入了班级,提交到message
      if (this.data.classList.length && this.data.joinGroup) {
        this.data.classList.forEach(item => {
          if (item.linkProductDto.product.id == this.data.bookId && item.topicId)
          if (item.linkProductDto.product.id == this.data.bookId && item.topicId) {
            this.newTopicMessage(item.topicId)
          }
        })
        this.setinteractionInfo()
      } else {