Commit 36758352 authored by lixy's avatar lixy

关于欣新

parent 8592591c
......@@ -157,6 +157,8 @@
methods: {
handleScroll: function () {
let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
let path = $nuxt.$route.path;
if(path == '/aboutXx'){
var menuTop = document.querySelector('#historyNav').offsetTop;
//滑动到指定位置菜单吸顶
if (scrollTop > menuTop-120) {
......@@ -179,6 +181,7 @@
} else if(scrollTop >= top4-301){
this.tabIndex = 3;
}
}
},
/**
* 切换历史
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment