节点宽高使用rpx,
按照750rpx屏幕宽度计算与px的换算比例
再用这个比例计算屏幕高度
再减掉已经存在的节点高度
完美兼容小程序和h5
let that = this
uni.getSystemInfo({
success: resu => {
// console.log(resu)
// const query = uni.createSelectorQuery().in(that)
let bili = resu.windowWidth/750
that.windowHeight = resu.windowHeight - 110 * bili
}
})