From a954bafb1bb4a70b2baf768230f2c50fd5c7163c Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期四, 13 六月 2024 14:20:53 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout --- src/books/sportsAndHealth/view/components/index.vue | 51 ++++++++++++++++++++++++--------------------------- 1 files changed, 24 insertions(+), 27 deletions(-) diff --git a/src/books/sportsAndHealth/view/components/index.vue b/src/books/sportsAndHealth/view/components/index.vue index c8e9ca8..2348ec2 100644 --- a/src/books/sportsAndHealth/view/components/index.vue +++ b/src/books/sportsAndHealth/view/components/index.vue @@ -18,23 +18,20 @@ <ChapterOne v-if="showCatalogList.indexOf(2) > -1" :showPageList="loadPageList" - :questionData="questionDataMap" /> <ChapterTwo v-if="showCatalogList.indexOf(3) > -1" :showPageList="loadPageList" - :questionData="questionDataMap" /> <ChapterThree v-if="showCatalogList.indexOf(4) > -1" :showPageList="loadPageList" - :questionData="questionDataMap" /> - <ChapterFour + <!-- <ChapterFour v-if="showCatalogList.indexOf(5) > -1" :showPageList="loadPageList" :questionData="questionDataMap" - /> + /> --> <!-- <ChapterFive v-if="showCatalogList.indexOf(6) > -1" :showPageList="loadPageList" @@ -106,9 +103,9 @@ <script> import front001 from "./front001"; import ChapterOne from "./chapter001"; -import ChapterTwo from "./chapter002"; -import ChapterThree from "./testDynaicTable"; -import ChapterFour from "./testPp"; +import ChapterTwo from "./testDynaicTable"; +import ChapterThree from "./testPp"; +// import ChapterFour from "./testPp"; // import ChapterFive from "./chapter005"; // import chapterSix from "./chapter006"; // import chapterSeven from "./chapter007"; @@ -267,11 +264,8 @@ }, methods: { changeDomViewer() { - setTimeout(() => { - this.initViewer(); - }, 500); + this.initViewer(); }, - // 婊氬姩鐩戝惉 scrollFun(event) { // 鍒ゆ柇鍚戜笂婊氬姩杩樻槸鍚戜笅婊氬姩 @@ -608,19 +602,19 @@ if (testData && testData[catalog]) { if (testData[catalog][page]) { if (Array.isArray(testData[catalog][page])) { - this.questionDataMap[page] = await getQuestionList( - page, - testData[catalog][page], - this.config.activeBook - ); + this.questionDataMap[page] = await getQuestionList( + page, + testData[catalog][page], + this.config.activeBook + ); } else { const obj = {}; for (let key in testData[catalog][page]) { - obj[key] = await getQuestionList( - [], - testData[catalog][page][key], - this.config.activeBook - ); + obj[key] = await getQuestionList( + [], + testData[catalog][page][key], + this.config.activeBook + ); } this.questionDataMap[page] = obj; } @@ -641,7 +635,10 @@ // 楂樹寒琛� setTimeout(() => { // 鑾峰彇椤甸潰鎵�鏈塼ext鑺傜偣 - const pageTextList = document.createTreeWalker(target, NodeFilter.SHOW_TEXT); + const pageTextList = document.createTreeWalker( + target, + NodeFilter.SHOW_TEXT + ); // 鍖归厤鍏抽敭瀛� const allPageTextNodes = []; let currentNode = pageTextList.nextNode(); @@ -791,7 +788,7 @@ ChapterOne, ChapterTwo, ChapterThree, - ChapterFour, + // ChapterFour, // ChapterFive, // chapterSix, // chapterSeven, @@ -817,7 +814,7 @@ propsData: { showPageList: [], questionData: {}, - isSearch: true + isSearch: true, }, }); pageExample.$mount( @@ -849,7 +846,7 @@ propsData: { showPageList: [pageNum], questionData: {}, - isSearch: true + isSearch: true, }, }); pageExample.$mount( @@ -914,7 +911,7 @@ ChapterOne, ChapterTwo, ChapterThree, - ChapterFour, + // ChapterFour, // ChapterFive, // chapterSix, // chapterSeven, -- Gitblit v1.9.1