//监听组件距离顶部的距离:
onLoad(){
const qurey = wx. createSelectorQuery()
// <div id='boxFixed'> </div>
query.select('#boxFixed').boundingClientRect()
query.exec((res)=>{
this.mendis = res.[0].top
})
}
//监听页面的滚动距离
onPageScroll(e){
this.resct = e.scrollTop
}