query.select(".comment-list-wrp").boundingClientRect()
query.exec( (res)=> {
//res myText
const windowH = wx.getSystemInfoSync().windowHeight
const ratio = wx.getSystemInfoSync().pixelRatio
console.log(windowH, ratio)
console.log(res);
//
console.log(res[0].height);
this.setData({
commentTop: res[0].top
})
})
but what happens if the element scrolls scrollTop to the set commentTop but the distance is not correct