From 54d141532c864200b19404848ae5a8110535c6ed Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期四, 26 十二月 2024 18:12:32 +0800 Subject: [PATCH] 1 --- src/books/civilAviation/view/components/index.vue | 26 ++++++++++++++++++-------- 1 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/books/civilAviation/view/components/index.vue b/src/books/civilAviation/view/components/index.vue index 753cb31..07bfc4c 100644 --- a/src/books/civilAviation/view/components/index.vue +++ b/src/books/civilAviation/view/components/index.vue @@ -11,6 +11,9 @@ <pageHeader v-if="showCatalogList.indexOf(1) > -1" :showPageList="loadPageList"></pageHeader> <chapterOne v-if="showCatalogList.indexOf(2) > -1" :showPageList="loadPageList"></chapterOne> <chapterTwo v-if="showCatalogList.indexOf(3) > -1" :showPageList="loadPageList"></chapterTwo> + <chapterThree v-if="showCatalogList.indexOf(4) > -1" :showPageList="loadPageList"></chapterThree> + <chapterfour v-if="showCatalogList.indexOf(5) > -1" :showPageList="loadPageList"></chapterfour> + <chapterfive v-if="showCatalogList.indexOf(6) > -1" :showPageList="loadPageList"></chapterfive> </div> </div> </template> @@ -18,7 +21,10 @@ <script> import pageHeader from "./header.vue"; import chapterOne from "./chapter001.vue"; -import chapterTwo from "./chapter002.vue" +import chapterTwo from "./chapter002.vue"; +import chapterThree from "./chapter003.vue"; +import chapterfour from "./chapter004.vue"; +import chapterfive from "./chapter005.vue" import NoteIcon from "@/assets/images/biji.png"; import _ from "lodash"; import Swiper from "swiper/bundle"; @@ -29,7 +35,7 @@ name: "pageContent", data() { return { - catalogLength: 3, // 鎬荤珷鑺傛暟 + catalogLength: 6, // 鎬荤珷鑺傛暟 showCatalogList: [], // 鏄剧ず鐨勭珷鑺� loadThreshold: 300, // 瑙﹀彂鍔犺浇闃堝�� throttleThreshold: 100, // 鑺傛祦闃堝�� @@ -98,7 +104,6 @@ // 榛樿鍔犺浇绔犺妭 this.showCatalogList = [1]; // 婊氬姩鐩戝惉鑺傛祦 - debugger this.throttledScrollHandler = _.throttle( this.scrollFun, this.throttleThreshold, @@ -154,7 +159,7 @@ // 娴嬭瘯椤甸潰璺宠浆 setTimeout(() => { - this.gotoPage(3, 45); + this.gotoPage(3,52); // setTimeout(() => { // this.renderSign("Highlight", { // id: "2ACA9359", @@ -214,7 +219,6 @@ ) { console.log(1); - debugger // 鍒拌揪闃堝�� if ( this.showCatalogList[this.showCatalogList.length - 1] < @@ -708,7 +712,10 @@ const pageData = { pageHeader, chapterOne, - chapterTwo + chapterTwo, + chapterThree, + chapterfour, + chapterfive, }; // 閬嶅巻鎵�鏈夌珷鑺傛枃浠� for (const key in pageData) { @@ -911,7 +918,7 @@ const bottomGap = playVudio.getBoundingClientRect().bottom; const topGap = playVudio.getBoundingClientRect().top; if (bottomGap < 0 || topGap > window.innerHeight) { - playVudio.requestPictureInPicture(); + if(playVudio.readyState) playVudio.requestPictureInPicture(); } } }, @@ -931,7 +938,10 @@ components: { pageHeader, chapterOne, - chapterTwo + chapterTwo, + chapterThree, + chapterfour, + chapterfive, }, }; </script> -- Gitblit v1.9.1