miniprogram/pages/manager/group/message/index.ts
@@ -91,10 +91,21 @@ value:"" }) console.log(this.data.messageList) wx.setStorageSync('time',time) try { wx.setStorageSync('time', 'time') } catch (e) { } // wx.setStorageSync('time','time') this.setData({ isInput : 1 }) wx.createSelectorQuery().select('#chat') .boundingClientRect(function(rect){ console.log('rectheight',rect); /* 将页面移动到最底部(用xxx的height定位) */ wx.pageScrollTo({ scrollTop: rect.height