diff --git a/src/core/view/bridge/subscribe/scroll.js b/src/core/view/bridge/subscribe/scroll.js index 921712fdd0445d175149946cf4ed064f218545d0..c0d3dfe911de5b001f2a28e91979d904881a4342 100644 --- a/src/core/view/bridge/subscribe/scroll.js +++ b/src/core/view/bridge/subscribe/scroll.js @@ -20,7 +20,8 @@ export function pageScrollTo ({ scrollTop = Math.min(scrollTop, scrollHeight - clientHeight) if (duration === 0) { - documentElement.scrollTop = scrollTop + // 部分浏览器(比如微信)中 scrollTop 的值需要通过 document.body 来控制 + documentElement.scrollTop = document.body.scrollTop = scrollTop return }