From 86a1b7cd6d59bf51968714fe0017213efd34ba0d Mon Sep 17 00:00:00 2001 From: THK3121 Date: Tue, 26 Sep 2023 20:31:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/nongKe/cloud_entrepot/indexa.vue | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pages/nongKe/cloud_entrepot/indexa.vue b/pages/nongKe/cloud_entrepot/indexa.vue index 62acea1..f9da1ff 100644 --- a/pages/nongKe/cloud_entrepot/indexa.vue +++ b/pages/nongKe/cloud_entrepot/indexa.vue @@ -70,7 +70,6 @@ --> - @@ -127,7 +126,7 @@ - + @@ -225,7 +224,7 @@ - + @@ -523,13 +522,7 @@ let that = this setTimeout(() => { - uni.createSelectorQuery() - .in(this) - .select('.flags') - .boundingClientRect(rect => { - this.headtop = rect.top - }) - .exec(); + uni.createSelectorQuery() .in(this) .select('.flags1') @@ -581,6 +574,14 @@ onPageScroll(e) { let that = this this.showtit = !Boolean(e.scrollTop) + uni.createSelectorQuery() + .in(this) + .select('.flags') + .boundingClientRect(rect => { + this.headtop = rect.top + console.log(rect.top) + }) + .exec(); uni.createSelectorQuery() .in(this) .select('.content')