闫增涛
2024-05-27 1b89c6d9b6626e09cf3c30a2f2d7354c9f18151f
src/books/lifeCare/index.vue
@@ -8,6 +8,9 @@
        transform: `scale(${pageZoom ? pageZoom : 1})`,
      }"
    >
      <div style="width: 100%; height: 800px;">
        <drawflow />
      </div>
      <front001 v-if="showCatalogList.indexOf(0) > -1" />
      <ChapterOne v-if="showCatalogList.indexOf(1) > -1" />
      <ChapterTwo v-if="showCatalogList.indexOf(2) > -1" />
@@ -52,11 +55,12 @@
import chapter017 from "./view/chapter017";
import chapter018 from "./view/chapter018";
import NoteIcon from "@/assets/images/biji.png";
import drawflow from "@/components/drawflow";
import _ from "lodash";
export default {
  data() {
    return {
      catalogLength: 7, // 总章节数
      catalogLength: 18, // 总章节数
      showCatalogList: [], // 显示的章节
      loadThreshold: 300, // 触发加载阈值
      throttleThreshold: 100, // 节流阈值
@@ -147,6 +151,7 @@
    // }, 3000);
  },
  components: {
    drawflow,
    front001,
    ChapterOne,
    ChapterTwo,
@@ -334,7 +339,7 @@
            // 笔记
            pageDom.innerHTML = pageDom.innerHTML.replace(
              reg,
              `<span datatype="Note" dataid="${data.id}" style="border-bottom-color:${data.color}" class="notesline" onclick="signClick('Note','${data.id}','${data.chapterNum}')">${data.txt}<img src="${NoteIcon}" style="cursor: pointer" /></span>`
              `<span datatype="Note" dataid="${data.id}" style="border-bottom-color:${data.color}" class="notesline" onclick="signClick('Note','${data.id}','${data.chapterNum}')" onmouseover="noteHover('Note','${data.id}','${data.chapterNum}')">${data.txt}<img src="${NoteIcon}" style="cursor: pointer" /></span>`
            );
            break;
        }