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

定位有问题

上级 d553c75a
...@@ -8,7 +8,7 @@ export const envConfig = { ...@@ -8,7 +8,7 @@ export const envConfig = {
// baseUrl: 'http://10.177.15.180:10202/', // baseUrl: 'http://10.177.15.180:10202/',
// baseUrl: 'http://192.168.140.14:10201/', // baseUrl: 'http://192.168.140.14:10201/',
baseUrl: 'https://dev-sc.yunqueyi.com/', baseUrl: 'https://test1-sc.yunqueyi.com/',
apiUrl: 'https://dev-api.yunqueyi.com/', apiUrl: 'https://dev-api.yunqueyi.com/',
webPageUrl: 'https://dev-phome.yunqueyi.com/', webPageUrl: 'https://dev-phome.yunqueyi.com/',
hactiveUrl: 'https://dev-hactive.yunqueyi.com', hactiveUrl: 'https://dev-hactive.yunqueyi.com',
......
...@@ -178,7 +178,7 @@ export default { ...@@ -178,7 +178,7 @@ export default {
if(index == 1) { if(index == 1) {
window.scrollTo(0, 0); window.scrollTo(0, 0);
} else { } else {
window.scrollTo(0, zjListOffsetTop - 120); window.scrollTo(0, (zjListOffsetTop - 240));
} }
this.tabIndex = index; this.tabIndex = index;
}, },
...@@ -342,7 +342,7 @@ export default { ...@@ -342,7 +342,7 @@ export default {
`subject_${parentIndex}_${subIndex}` `subject_${parentIndex}_${subIndex}`
).offsetTop; ).offsetTop;
console.log('resetProjectPosition', scrollTop); console.log('resetProjectPosition', scrollTop);
window.scrollTo(0, scrollTop - 120); window.scrollTo(0, (scrollTop - 120));
}, 100); }, 100);
}); });
}, },
...@@ -351,7 +351,6 @@ export default { ...@@ -351,7 +351,6 @@ export default {
scrollFun() { scrollFun() {
let scrollTop = window.scrollY; let scrollTop = window.scrollY;
// console.log(scrollTop, screenHeight, zjListOffsetTop);
if(scrollTop + screenHeight - 20 > zjListOffsetTop) { if(scrollTop + screenHeight - 20 > zjListOffsetTop) {
this.tabIndex = 2; this.tabIndex = 2;
} else { } else {
...@@ -369,6 +368,7 @@ export default { ...@@ -369,6 +368,7 @@ export default {
this.tabIndex = 1; this.tabIndex = 1;
} }
}) })
// console.log('in scrollTop + screenHeight, zjListOffsetTop', scrollTop + screenHeight, zjListOffsetTop);
}, },
// 滚动到顶部 // 滚动到顶部
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册