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

解决定位问题

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