From 811b5e15f435dbfb76a3bfaa7a2fd6be8f4b4367 Mon Sep 17 00:00:00 2001 From: xingyy <373639591@qq.com> Date: Wed, 27 Sep 2023 10:22:30 +0800 Subject: [PATCH] submit --- pages/contract/index.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pages/contract/index.vue b/pages/contract/index.vue index c22864c..6a6714d 100644 --- a/pages/contract/index.vue +++ b/pages/contract/index.vue @@ -53,11 +53,7 @@ export default { async getDistanceFromTopToPageBottom(classValue) { const {windowHeight, windowWidth} = await uni.getSystemInfo(); const [{top}] = await new Promise(resolve => uni.createSelectorQuery().select(classValue).boundingClientRect().exec(resolve)); - if(uni.getSystemInfoSync().platform === 'ios'){ - this.elementBottom = ((windowHeight - top) / windowWidth) * 750 - 175; - }else { - this.elementBottom = ((windowHeight - top) / windowWidth) * 750 - 110; - } + this.elementBottom = ((windowHeight - top) / windowWidth) * 750 - 175; }, loadMore(){