闫增涛
2024-10-17 39da75fa54f4a0bfc6c135bcacdd5a4df4890210
src/books/mathBook/view/components/index.vue
@@ -8,8 +8,8 @@
      transform: `scale(${pageZoom ? pageZoom : 1})`,
      transformOrigin: 'center top',
    }">
      <pageHeader v-if="showCatalogList.indexOf(0) > -1" :showPageList="loadPageList"></pageHeader>
      <chapterOne v-if="showCatalogList.indexOf(1) > -1" :showPageList="loadPageList" :questionData="questionDataMap">
      <pageHeader v-if="showCatalogList.indexOf(1) > -1" :showPageList="loadPageList"></pageHeader>
      <chapterOne v-if="showCatalogList.indexOf(2) > -1" :showPageList="loadPageList" :questionData="questionDataMap">
      </chapterOne>
      <chapterTwo v-if="showCatalogList.indexOf(3) > -1" :showPageList="loadPageList" :questionData="questionDataMap">
      </chapterTwo>
@@ -105,7 +105,7 @@
  },
  mounted() {
    // 默认加载章节
    this.showCatalogList = [0];
    this.showCatalogList = [1];
    // 滚动监听节流
    this.throttledScrollHandler = _.throttle(
      this.scrollFun,
@@ -162,7 +162,7 @@
    // 测试页面跳转
    setTimeout(() => {
      this.gotoPage(3, 111);
      this.gotoPage(3, 76);
    //   //   setTimeout(() => {
    //   //     this.renderSign("Highlight", {
    //   //       id: "2ACA9359",
@@ -565,6 +565,8 @@
                    this.questionDataMap[page] = obj
                  }
                }
                console.log(1,this.questionDataMap);
              }
            }
            // 渲染这一页的标记