// 鼠标触顶方法
scrollMethod() {
window.onscroll = () => {
let t = document.documentElement.scrollTop || document.body.scrollTop;
if(t > 10) {
this.positionStyle.top = '0px';
}else{
this.positionStyle.top = '128px';
}
}
},
// 鼠标触顶方法
scrollMethod() {
window.onscroll = () => {
let t = document.documentElement.scrollTop || document.body.scrollTop;
if(t > 10) {
this.positionStyle.top = '0px';
}else{
this.positionStyle.top = '128px';
}
}
},