Aiden 1 year ago
commit 62e80388ec

@ -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;
}
},
loadMore(){

Loading…
Cancel
Save