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

解决定位问题

上级 ec909e8a
......@@ -495,8 +495,15 @@ export default {
// 锚点到简介
jumpIntro() {
this.tabFlag = true;
this.fixedFlag = true;
// this.tabFlag = true;
// this.fixedFlag = true;
if(!this.tabFlag) {
this.tabFlag = true;
}
if(!this.fixedFlag) {
this.fixedFlag = true;
}
console.log(`jumpIntro cataOffsetTop intorOffsetTop`, cataOffsetTop, intorOffsetTop);
let h;
if (this.isWeb) {
......@@ -514,8 +521,12 @@ export default {
// 锚点到目录
jumpCatalogue() {
this.tabFlag = false;
this.fixedFlag = true;
if(this.tabFlag) {
this.tabFlag = false;
}
if(!this.fixedFlag) {
this.fixedFlag = true;
}
console.log(`jumpCatalogue cataOffsetTop intorOffsetTop`, cataOffsetTop, intorOffsetTop);
let h;
if (this.isWeb) {
......@@ -729,10 +740,6 @@ export default {
.intro-catalogue-container {
.title {
position: relative;
top: 0;
left: 0;
z-index: 900;
height: px2rem(50px);
line-height: px2rem(30px);
padding: 0 px2rem(15px);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册