Commit 14680dae by zhangxw

工作台吸顶体验优化

1 parent 8d6f8646
......@@ -216,20 +216,20 @@ Page({
[`list[${pageNum - 1}]`]: list
})
}
if (repload) {
const query = wx.createSelectorQuery().in(this)
query.select('.top-box').boundingClientRect()
query.exec(res => {
let topBoxHeight = res[0].height
if (scrollTop >= topBoxHeight) {
setTimeout(() => {
this.setData({
setScrollTop: topBoxHeight
})
}, 200)
}
})
}
// if (repload) {
// const query = wx.createSelectorQuery().in(this)
// query.select('.top-box').boundingClientRect()
// query.exec(res => {
// let topBoxHeight = res[0].height
// if (scrollTop >= topBoxHeight) {
// setTimeout(() => {
// this.setData({
// setScrollTop: topBoxHeight
// })
// }, 200)
// }
// })
// }
this.setData({
total,
flag: true,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!