useDidShow(() => {
//根据元素高度计算mask位置和高度
setTimeout(()=>{
Taro.createSelectorQuery()
.select('.sp-nav-filter')
.boundingClientRect((res) => {
console.log('boundingClientRect:', res)
if (res) {
setState(v=>{
v.offsetHight = res.top + res.height
})
}
})
.exec()
},1000)
});
03-01
5973
06-15
1528
06-17
427