hideShFn() {
var query = wx.createSelectorQuery();
query.select('.enterP_01100').boundingClientRect(rect => {
if (rect.height > 60) {
this.setData({
hideShow: true
})
} else {
this.setData({
hideShow: false
})
}
}).exec()
},
rect.id // 節點的ID rect.dataset // 節點的dataset rect.left // 節點的左邊界坐標 rect.right // 節點的右邊界坐標 rect.top // 節點的上邊界坐標 rect.bottom // 節點的下邊界坐標 rect.width // 節點的寬度 rect.height // 節點的高度