动态获取首页滚动区域 草莓千层蛋糕 2020-09-06 79 阅读1分钟 onLoad() { uni.getSystemInfo({ success:(res)=>{ // console.log(res) // windowHeight: 573 这个高度是px this.scrollH = res.windowHeight - uni.upx2px(82) } }) }, :style="'height:'+ scrollH +'px;'"