提交 a8dc1879 编写于 作者: guangjun.yang's avatar guangjun.yang

样式修改等

上级 8a68543e
...@@ -344,9 +344,9 @@ export default { ...@@ -344,9 +344,9 @@ export default {
scrollFun() { scrollFun() {
let scrollTop = let scrollTop =
document.body.scrollTop || document.documentElement.scrollTop; document.body.scrollTop || document.documentElement.scrollTop;
let h;
const catalogue = document.getElementById("catalogue-content"); const catalogue = document.getElementById("catalogue-content");
// const h = catalogue.offsetTop - 600; // const h = catalogue.offsetTop - 600;
const h = catalogue.offsetTop - 600;
if (scrollTop > 20) { if (scrollTop > 20) {
this.isBlack = true; this.isBlack = true;
this.bgColor = "#fff"; this.bgColor = "#fff";
...@@ -355,12 +355,14 @@ export default { ...@@ -355,12 +355,14 @@ export default {
this.bgColor = "none"; this.bgColor = "none";
} }
this.fixedFlag = scrollTop > 300 ? true : false; // this.fixedFlag = scrollTop > 300 ? true : false;
// 中华医学会项目 // 中华医学会项目
if(this.project.cmeType == 2) { if(this.project.cmeType == 2) {
h = catalogue.offsetTop - 480;
this.fixedFlag = scrollTop > 200 ? true : false; this.fixedFlag = scrollTop > 200 ? true : false;
} else { } else {
this.fixedFlag = scrollTop > 300 ? true : false; h = catalogue.offsetTop - 600;
this.fixedFlag = scrollTop > 360 ? true : false;
} }
this.tabFlag = scrollTop > h ? false : true; this.tabFlag = scrollTop > h ? false : true;
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册