Commit 301ecb78 by luyt

feat: 滚动兼容

1 parent 5a07eb87
...@@ -149,7 +149,7 @@ Page({ ...@@ -149,7 +149,7 @@ Page({
}); });
let { imgTopArr } = this.data; let { imgTopArr } = this.data;
wx.pageScrollTo({ wx.pageScrollTo({
scrollTop: imgTopArr[index], scrollTop: imgTopArr[index] + 5,
}); });
}, },
onPageScroll: (function () { onPageScroll: (function () {
......
...@@ -132,7 +132,7 @@ Page({ ...@@ -132,7 +132,7 @@ Page({
}); });
let { imgTopArr } = this.data; let { imgTopArr } = this.data;
wx.pageScrollTo({ wx.pageScrollTo({
scrollTop: imgTopArr[index], scrollTop: imgTopArr[index] + 5,
}); });
}, },
onPageScroll: (function () { onPageScroll: (function () {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!