From 63a7d4f2bb7fdeaa1e6ed616a14c213d91d25a99 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期五, 27 十二月 2024 15:21:21 +0800 Subject: [PATCH] 轮播图优化 --- src/books/civilAviation/view/components/index.vue | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/books/civilAviation/view/components/index.vue b/src/books/civilAviation/view/components/index.vue index 579d747..07bfc4c 100644 --- a/src/books/civilAviation/view/components/index.vue +++ b/src/books/civilAviation/view/components/index.vue @@ -104,7 +104,6 @@ // 榛樿鍔犺浇绔犺妭 this.showCatalogList = [1]; // 婊氬姩鐩戝惉鑺傛祦 - debugger this.throttledScrollHandler = _.throttle( this.scrollFun, this.throttleThreshold, @@ -159,8 +158,8 @@ }, 500); // 娴嬭瘯椤甸潰璺宠浆 - // setTimeout(() => { - // this.gotoPage(6,190); + setTimeout(() => { + this.gotoPage(3,52); // setTimeout(() => { // this.renderSign("Highlight", { // id: "2ACA9359", @@ -174,7 +173,7 @@ // ids: ["2ACA9359"] // }); // }, 2000); - // }, 500); + }, 500); // const pageDom = (this.container ? this.container : document) // .querySelector("#app") @@ -220,7 +219,6 @@ ) { console.log(1); - debugger // 鍒拌揪闃堝�� if ( this.showCatalogList[this.showCatalogList.length - 1] < @@ -920,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(); } } }, -- Gitblit v1.9.1