zhongshujie
2024-12-19 8aeddcf766df9f7e3061d4d098b57afdf53db896
packageBookService/pages/psychologyAnswer/psychologyAnswer.js
@@ -289,6 +289,7 @@
      showId: lastItem.id
    });
  },
  // 我的错题,收藏查看解析按钮
  viewParsing() {
    if (
@@ -387,6 +388,12 @@
        radioChange(citem)
      }
    }
    const listLength = this.data.questionDataList.length - 1
    if (this.data.currentIndex < listLength) {
      this.setData({
        currentIndex: this.data.currentIndex + 1
      })
    }
  },
  // 输入框触发
  onChangeInput(e) {
@@ -484,9 +491,6 @@
    });
    this.setData({
      loading: false,
      showDialog: false,
    });
    this.setData({
      isShowDialog: true,
      submitStatus: true,
    });
@@ -494,7 +498,8 @@
  // 初始化函数
  async init(isReset) {
    this.setData({
      loading: false,
      isShowDialog: false,
      loading: true,
    });
    const questuionName = this.data.questuionName
    const questuionList = pastData.postData.list
@@ -651,6 +656,7 @@
  },
  async restart() {
    this.setData({
      isShowDialog: false,
      currentIndex: 0,
      submitStatus: false,
    });
@@ -714,25 +720,24 @@
          this.setData({
            questionDataList: newArr,
            scoreDataList: scoreArr,
            loading: false,
          })
        } catch (error) {
          this.setData({
            questionDataList: newArr,
            scoreDataList: scoreArr
            scoreDataList: scoreArr,
            loading: false,
          })
          console.log(error);
        }
        const e = {
          detail: {
            index: 0
          }
        };
        this.changeSwiper(e)
      });
  },
  // 记录模考答题数据
  saveMockData() {