闫增涛
2024-11-06 56cdf07f8496685ba906ea75e7eb2faebb35371b
src/books/mathBook/view/components/index.vue
@@ -189,7 +189,7 @@
    // 测试页面跳转
    // setTimeout(() => {
    //   this.gotoPage(6,206);
    //  this.gotoPage(2,22);
    //   //   setTimeout(() => {
    //   //     this.renderSign("Highlight", {
    //   //       id: "2ACA9359",
@@ -241,7 +241,6 @@
    // 滚动监听
    scrollFun(event) {
      this.handleVideoPicture();
      // 判断向上滚动还是向下滚动
      if (event.target.scrollTop > this.previousScrollTop) {
        // 向下
@@ -524,7 +523,6 @@
      });
    },
    getParentWithClass(element, className) {
      console.log(element, className, "element, className");
      while (element.parentElement) {
        element = element.parentElement;
        if (element.classList.contains(className)) {
@@ -593,7 +591,6 @@
                    this.questionDataMap[page] = obj;
                  }
                }
                console.log(1, this.questionDataMap);
              }
            }
            // 渲染这一页的标记
@@ -903,7 +900,7 @@
      ];
      if (this.questionId) {
        if (this.questionId[num] && this.questionId[num][page]) {
          if (num != this.questionDataIndex) {
          if (num != this.questionDataIndex || !this.questionList.length) {
            // 判断当前章节的题目json是否已经请求过
            const res = await axios.get(
              this.config.activeBook.resourceUrl + "/question-" + num + ".json"
@@ -911,7 +908,6 @@
            if (!res.data) return [];
            this.questionList = res.data.data;
            this.questionDataIndex = res.data.chapterNum;
            console.log("章节号", num, res);
          }
          let ids = [];
          questionIndex