From 1c20c04090a13142e7e93c24936ba6473e9912b9 Mon Sep 17 00:00:00 2001 From: yanyilin Date: Mon, 14 Aug 2023 20:05:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=BB=9A=E5=8A=A8=E6=8A=98?= =?UTF-8?q?=E5=8F=A0=E5=AF=BC=E8=88=AA=E6=A0=8F=E5=9C=A8scroll-view?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E6=97=B6=E5=87=BA=E7=8E=B0=E9=97=AA=E7=83=81?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/template/scroll-fold-nav/scroll-fold-nav.uvue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/template/scroll-fold-nav/scroll-fold-nav.uvue b/pages/template/scroll-fold-nav/scroll-fold-nav.uvue index c9fb6f83..4ad647bd 100644 --- a/pages/template/scroll-fold-nav/scroll-fold-nav.uvue +++ b/pages/template/scroll-fold-nav/scroll-fold-nav.uvue @@ -24,7 +24,7 @@ }, methods: { onScroll(e : ScrollEvent) { - (this.$refs['header'] as ComponentPublicInstance).$data['scrollTop'] = e.detail.scrollTop + (this.$refs['header'] as ComponentPublicInstance).$data['scrollTop'] = (e.detail.scrollTop<0?0:e.detail.scrollTop) }, back() { // uni.navigateBack() // 这么写用不了 -- GitLab