var that = this
//创建节点选择器,动态设置scroll-view高度
// killorder-view高度
let qKillOrder = wx.createSelectorQuery();
qKillOrder.select('.header').boundingClientRect()
let result = qKillOrder.exec(function(resk) {
that.setData({
useHeith: that.data.useHeith + resk[0].height
})
let qKillOrder = wx.createSelectorQuery();
qKillOrder.select('.main-wraper').boundingClientRect()
let result = qKillOrder.exec(function(resk) {
that.setData({
useHeith: that.data.useHeith + resk[0].height
})
wx.getSystemInfo({
success: function(res) {
that.setData({
canUseWidth: res.windowWidth,
canUseHeith: res.windowHeight,
scollHeight: res.windowHeight - that.data.useHeith
})
},
})
})
}) //这一串都是为了设置scrollview高度