From e8862caa38597b4277ff79cb8785aed1905526b5 Mon Sep 17 00:00:00 2001 From: unknown <qq1940665526@163.com> Date: 星期一, 03 六月 2024 15:26:16 +0800 Subject: [PATCH] 优化 --- src/books/sportsAndHealth/index.vue | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/books/sportsAndHealth/index.vue b/src/books/sportsAndHealth/index.vue index 804efb9..38a95b7 100644 --- a/src/books/sportsAndHealth/index.vue +++ b/src/books/sportsAndHealth/index.vue @@ -13,16 +13,16 @@ v-if="showCatalogList.indexOf(1) > -1" :showPageList="loadPageList" /> - <!-- <ChapterOne + <ChapterOne v-if="showCatalogList.indexOf(2) > -1" :showPageList="loadPageList" :questionData="questionData" - /> --> - <!-- <ChapterTwo + /> + <ChapterTwo v-if="showCatalogList.indexOf(3) > -1" :showPageList="loadPageList" :questionData="questionData" - /> --> + /> <!-- <ChapterThree v-if="showCatalogList.indexOf(4) > -1" :showPageList="loadPageList" @@ -101,8 +101,8 @@ <script> import front001 from "./view/front001"; -// import ChapterOne from "./view/chapter001"; -// import ChapterTwo from "./view/chapter002"; +import ChapterOne from "./view/chapter001"; +import ChapterTwo from "./view/chapter002"; // import ChapterThree from "./view/chapter003"; // import ChapterFour from "./view/chapter004"; // import ChapterFive from "./view/chapter005"; @@ -130,7 +130,7 @@ export default { data() { return { - catalogLength: 19, // 鎬荤珷鑺傛暟 + catalogLength: 15, // 鎬荤珷鑺傛暟 showCatalogList: [], // 鏄剧ず鐨勭珷鑺� loadThreshold: 300, // 瑙﹀彂鍔犺浇闃堝�� throttleThreshold: 100, // 鑺傛祦闃堝�� @@ -186,7 +186,7 @@ }, mounted() { // 榛樿鍔犺浇绔犺妭 - this.showCatalogList = [1]; + this.showCatalogList = [2]; // 婊氬姩鐩戝惉鑺傛祦 this.throttledScrollHandler = _.throttle( this.scrollFun, @@ -768,8 +768,8 @@ }, components: { front001, - // ChapterOne, - // ChapterTwo, + ChapterOne, + ChapterTwo, // ChapterThree, // ChapterFour, // ChapterFive, -- Gitblit v1.9.1