var obj = wx.createSelectorQuery();
obj.selectAll('.head,.bottom').boundingClientRect(function(rect) {
let height = app.globalData.windowHeight - rect[0].height - rect[1].height + "px"
that.setData({
height: height
})
})
obj.exec();