diff --git a/pages/template/scroll-fold-nav/scroll-fold-nav.uvue b/pages/template/scroll-fold-nav/scroll-fold-nav.uvue index c9fb6f83e96f68b6a517e9066bb8d370c1e26365..4ad647bd6f1fd89e6c1936bda988abf481621393 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() // 这么写用不了