litian
2024-12-24 6df96b3e7a7da1985ee875e84711e9f15c5fbff0
packageBookService/pages/psychologyAnswer/psychologyAnswer.js
@@ -13,7 +13,7 @@
    dataList: "",
    barHeight: "",
    navBarHeight: "",
    loading: false,
    loading: true,
    answerTitle: "", // 导航栏标题
    submitStatus: false, // 提交状态
    currentIndex: 0, // 当前显示的题号
@@ -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,7 @@
  // 初始化函数
  async init(isReset) {
    this.setData({
      showDialog: true,
      isShowDialog: false,
      loading: true,
    });
    const questuionName = this.data.questuionName
@@ -652,6 +656,7 @@
  },
  async restart() {
    this.setData({
      isShowDialog: false,
      currentIndex: 0,
      submitStatus: false,
    });