This commit is contained in:
Aiden 2023-09-27 11:01:04 +08:00
commit 62e80388ec

View File

@ -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(){