From 16ea9f528f95de02ff9a05cf663582ffc086a947 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期四, 01 八月 2024 15:45:20 +0800 Subject: [PATCH] 七单元完成 --- src/books/sportsAndHealth/view/components/index.vue | 37 ++++++++++++++++++++----------------- 1 files changed, 20 insertions(+), 17 deletions(-) diff --git a/src/books/sportsAndHealth/view/components/index.vue b/src/books/sportsAndHealth/view/components/index.vue index 74b5385..2bff493 100644 --- a/src/books/sportsAndHealth/view/components/index.vue +++ b/src/books/sportsAndHealth/view/components/index.vue @@ -17,6 +17,12 @@ <chapterFour v-if="showCatalogList.indexOf(5) > -1" :showPageList="loadPageList"></chapterFour> <!-- <assemblyOne v-if="showCatalogList.indexOf(6) > -1" :showPageList="loadPageList"></assemblyOne> --> <chapterfive v-if="showCatalogList.indexOf(6) > -1" :showPageList="loadPageList"></chapterfive> + + + <chapterSix v-if="showCatalogList.indexOf(7) > -1" :showPageList="loadPageList"></chapterSix> + <chapterSeven v-if="showCatalogList.indexOf(8) > -1" :showPageList="loadPageList"></chapterSeven> + <chapterEight v-if="showCatalogList.indexOf(9) > -1" :showPageList="loadPageList"></chapterEight> + <!-- <assemblyTwo v-if="showCatalogList.indexOf(7) > -1" :showPageList="loadPageList" @openPDFChange="swdtChange" /> --> <!-- <ChapterFour @@ -100,24 +106,14 @@ import chapterThree from './chapter003.vue' import chapterFour from './chapter004.vue' import chapterfive from './chapter005.vue' + +import chapterSix from './chapter006.vue' +import chapterSeven from './chapter007.vue' +import chapterEight from './chapter008.vue' // import assemblyOne from "./testDynaicTable.vue"; import assemblyTwo from './testPp.vue' -// import ChapterFour from "./testPp"; -// import ChapterFive from "./chapter005"; -// import chapterSix from "./chapter006"; -// import chapterSeven from "./chapter007"; -// import chapterEight from "./chapter008"; -// import chapterNine from "./chapter009"; -// import chapter010 from "./chapter010"; -// import chapter011 from "./chapter011"; -// import chapter012 from "./chapter012"; -// import chapter013 from "./chapter013"; -// import chapter014 from "./chapter014"; -// import chapter015 from "./chapter015"; -// import chapter016 from "./chapter016"; -// import chapter017 from "./chapter017"; -// import chapter018 from "./chapter018"; + import NoteIcon from '@/assets/images/biji.png' import _ from 'lodash' import getQuestionList from '@/assets/methods/examination' @@ -129,7 +125,7 @@ export default { data() { return { - catalogLength: 7, // 鎬荤珷鑺傛暟 + catalogLength: 9, // 鎬荤珷鑺傛暟 showCatalogList: [], // 鏄剧ず鐨勭珷鑺� loadThreshold: 300, // 瑙﹀彂鍔犺浇闃堝�� throttleThreshold: 100, // 鑺傛祦闃堝�� @@ -247,7 +243,7 @@ // 娴嬭瘯椤甸潰璺宠浆 setTimeout(() => { - this.gotoPage(5, 195) + this.gotoPage(9, 248) // setTimeout(() => { // this.renderSign("Highlight", { // id: "2ACA9359", @@ -357,6 +353,7 @@ }, // 绔犺妭銆侀〉闈㈣烦杞� gotoPage(catalog, page) { + if (catalog >= 0 && catalog <= this.catalogLength) { // 澶勭悊娓叉煋绔犺妭 if (catalog == 0) { @@ -817,6 +814,9 @@ chapterThree, chapterFour, chapterfive, + chapterSix, + chapterSeven, + chapterEight // assemblyOne, // assemblyTwo, } @@ -952,6 +952,9 @@ chapterThree, chapterFour, chapterfive, + chapterSix, + chapterSeven, + chapterEight // assemblyOne, // assemblyTwo, // ChapterFour, -- Gitblit v1.9.1