// 页面往下滚动事件 与methods同级 uni-app
data() {
topInfoStatus: false,
}
onPageScroll(res) {
const scrollTop = res.scrollTop;
if (scrollTop >= 100) {
this.topInfoStatus = true;
} else {
this.topInfoStatus = false;
}
},
// 页面往下滚动事件 与methods同级 uni-app
data() {
topInfoStatus: false,
}
onPageScroll(res) {
const scrollTop = res.scrollTop;
if (scrollTop >= 100) {
this.topInfoStatus = true;
} else {
this.topInfoStatus = false;
}
},