From c02d9937770b185e87a27fd831c13593b0dc8d3e Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期五, 28 二月 2025 16:32:47 +0800 Subject: [PATCH] 会议bug优化 --- src/books/meetingPlanners/view/components/index.vue | 37 +++++++++++++++++++++---------------- 1 files changed, 21 insertions(+), 16 deletions(-) diff --git a/src/books/meetingPlanners/view/components/index.vue b/src/books/meetingPlanners/view/components/index.vue index bfd02d9..f390dcc 100644 --- a/src/books/meetingPlanners/view/components/index.vue +++ b/src/books/meetingPlanners/view/components/index.vue @@ -8,10 +8,13 @@ transform: `scale(${pageZoom})`, transformOrigin: 'center top', }"> - <pageHeader v-if="showCatalogList.indexOf(1) > -1" :showPageList="loadPageList" ></pageHeader> - <chapterOne v-if="showCatalogList.indexOf(2) > -1" :showPageList="loadPageList" :interfaceQuestion="questionDataMap"></chapterOne> - <chapterTwo v-if="showCatalogList.indexOf(3) > -1" :showPageList="loadPageList" :interfaceQuestion="questionDataMap"></chapterTwo> - <chapterThree v-if="showCatalogList.indexOf(4) > -1" :showPageList="loadPageList" :interfaceQuestion="questionDataMap"></chapterThree> + <pageHeader v-if="showCatalogList.indexOf(1) > -1" :showPageList="loadPageList"></pageHeader> + <chapterOne v-if="showCatalogList.indexOf(2) > -1" :showPageList="loadPageList" + :interfaceQuestion="questionDataMap"></chapterOne> + <chapterTwo v-if="showCatalogList.indexOf(3) > -1" :showPageList="loadPageList" + :interfaceQuestion="questionDataMap"></chapterTwo> + <chapterThree v-if="showCatalogList.indexOf(4) > -1" :showPageList="loadPageList" + :interfaceQuestion="questionDataMap"></chapterThree> </div> </div> </template> @@ -156,8 +159,8 @@ }, 500); //娴嬭瘯椤甸潰璺宠浆 - // setTimeout(() => { - // this.gotoPage(3, 96); + setTimeout(() => { + this.gotoPage(2, 22); // setTimeout(() => { // this.renderSign("Highlight", { // id: "2ACA9359", @@ -171,7 +174,7 @@ // ids: ["2ACA9359"] // }); // }, 2000); - // }, 500); + }, 500); // const pageDom = (this.container ? this.container : document) // .querySelector("#app") @@ -903,19 +906,21 @@ }, // 瑙嗛灏忕獥 handleVideoPicture() { - let doms = ( - this.container ? this.container : document - ).querySelectorAll(".video"); - doms = Array.from(doms) - if (!doms.length) return false - const playVudio = doms - .reverse() - .find((item) => item.paused == false); + let doms = (this.container ? this.container : document).querySelectorAll( + ".video" + ); + doms = Array.from(doms); + if (!doms.length) return false; + const playVudio = doms.reverse().find((item) => item.paused == false); if (playVudio) { const bottomGap = playVudio.getBoundingClientRect().bottom; const topGap = playVudio.getBoundingClientRect().top; if (bottomGap < 0 || topGap > window.innerHeight) { - if (playVudio.readyState) playVudio.requestPictureInPicture(); + try { + if (playVudio.readyState) playVudio.requestPictureInPicture(); + } catch (error) { + console.log(error, "灏忕獥閿欒error"); + } } } }, -- Gitblit v1.9.1