//页面自动滚动到底部
pageScrollToBottom:function(){
wx.createSelectorQuery().select('#scrollpage').boundingClientRect(function(rect){
// console.log(rect.height);
wx.pageScrollTo({
scrollTop: rect.height,
});
}).exec()
},
官方API:https://developers.weixin.qq.com/miniprogram/dev/api/ui/scroll/wx.pageScrollTo.html
然后在页面显示、有新的数据时调用该方法即可。