From e92c8cc095387616f479373037634cac71cd35f0 Mon Sep 17 00:00:00 2001 From: huangzhe <3451701311@qq.com> Date: Wed, 24 Sep 2025 14:32:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8D=95=E9=A1=B5=20p?= =?UTF-8?q?df=20=E6=97=A0=E6=B3=95=E7=82=B9=E5=87=BB=E6=9C=AC=E4=BA=BA?= =?UTF-8?q?=E5=B7=B2=E9=98=85=E8=AF=BB=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/readDocuments.vue | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/views/ebiz/sale/readDocuments.vue b/src/views/ebiz/sale/readDocuments.vue index 9bded5d1e..3bfbf373e 100644 --- a/src/views/ebiz/sale/readDocuments.vue +++ b/src/views/ebiz/sale/readDocuments.vue @@ -14,6 +14,7 @@
+
请下滑至底部完成阅读 @@ -71,7 +72,8 @@ branchType: '', // 银保渠道滚动检测相关 isScrollToBottom: false, - scrollTimer: null + scrollTimer: null, + pdfStatus: void 0 } }, components: { @@ -368,7 +370,8 @@ pdfurl: thispdfurl, lazy:false, scale:1 - }).on("complete", function (status, msg, time) { //监听完成事件 + }).on("complete", (status, msg, time)=> { //监听完成事件 + this.pdfStatus = status console.log("状态:" + status + ",信息:" + msg + ",耗时:" + time + "毫秒,总页数:" + this.totalNum) }) }, @@ -484,7 +487,16 @@ that.isDisabledComplite = true } } - } + }, + pdfStatus() { + const observer = new IntersectionObserver(entries => { + entries.forEach(entry => { + if (entry.isIntersecting) this.isScrollToBottom = true + observer.unobserve(entry.target) + }) + }) + observer.observe(this.$refs.activeButtonEle) + } } }