submit
This commit is contained in:
parent
155c75d08f
commit
811b5e15f4
@ -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(){
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user