From f6775e5080917ed7d4d5a8b901e55e65abda3670 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期一, 28 十月 2024 18:12:55 +0800 Subject: [PATCH] 民航概论分页 --- src/books/civilAviationServices/view/components/index.vue | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/books/civilAviationServices/view/components/index.vue b/src/books/civilAviationServices/view/components/index.vue index 48ac4c4..5b71a42 100644 --- a/src/books/civilAviationServices/view/components/index.vue +++ b/src/books/civilAviationServices/view/components/index.vue @@ -9,14 +9,14 @@ transformOrigin: 'center top', }"> <pageHeader v-if="showCatalogList.indexOf(1) > -1" :showPageList="loadPageList"></pageHeader> - <!-- <chapterOne v-if="showCatalogList.indexOf(2) > -1" :showPageList="loadPageList"></chapterOne> --> + <chapterOne v-if="showCatalogList.indexOf(2) > -1" :showPageList="loadPageList"></chapterOne> </div> </div> </template> <script> import pageHeader from "./header.vue"; -// import chapterOne from "./chapter001.vue"; + import chapterOne from "./chapter001.vue"; import NoteIcon from "@/assets/images/biji.png"; import _ from "lodash"; import Swiper from "swiper/bundle"; @@ -27,7 +27,7 @@ name: "pageContent", data() { return { - catalogLength: 1, // 鎬荤珷鑺傛暟 + catalogLength: 2, // 鎬荤珷鑺傛暟 showCatalogList: [], // 鏄剧ず鐨勭珷鑺� loadThreshold: 300, // 瑙﹀彂鍔犺浇闃堝�� throttleThreshold: 100, // 鑺傛祦闃堝�� @@ -705,7 +705,7 @@ // 鎵�鏈夌珷鑺傜粍浠讹紙姣忔湰涔﹀埗浣滄椂鍗曠嫭閰嶇疆锛� const pageData = { pageHeader, - // chapterOne, + chapterOne, }; // 閬嶅巻鎵�鏈夌珷鑺傛枃浠� for (const key in pageData) { @@ -908,13 +908,12 @@ const bottomGap = playVudio.getBoundingClientRect().bottom; const topGap = playVudio.getBoundingClientRect().top; if (bottomGap < 0 || topGap > window.innerHeight) { - playVudio.requestPictureInPicture(); + if(playVudio.readyState) playVudio.requestPictureInPicture(); } } }, //鍏朵粬绫诲悕涓嬪瓧浣撳ぇ灏忓彉鍖� transformDom(fs) { - console.log('瀛椾綋澶у皬',fs); if(!fs) return let doms = ( this.container ? this.container : document @@ -928,7 +927,7 @@ }, components: { pageHeader, - // chapterOne, + chapterOne, }, }; </script> -- Gitblit v1.9.1