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')