Commit 934246ed by luyt

fix:滑动兼容处理

1 parent f5db5411
...@@ -273,12 +273,12 @@ Component({ ...@@ -273,12 +273,12 @@ Component({
console.log(123546) console.log(123546)
wx.pageScrollTo({ wx.pageScrollTo({
// scrollTop: imgTopArr[idx] - stickyTop + 88 + 34 // scrollTop: imgTopArr[idx] - stickyTop + 88 + 34
scrollTop: imgTopArr[idx] - stickyTop/2-10 scrollTop: imgTopArr[idx] - stickyTop+44 +36
}); });
// wx.pageScrollTo({ scrollTop: imgTopArr[idx] - stickyTop }); // wx.pageScrollTo({ scrollTop: imgTopArr[idx] - stickyTop });
} else { } else {
wx.pageScrollTo({ wx.pageScrollTo({
scrollTop: imgTopArr[idx] - stickyTop scrollTop: imgTopArr[idx] - stickyTop-10
}); });
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!