odc.xiaohui
2023-03-21 d9687af294a85b72bab88657bcae70c99ca0b6ae
miniprogram/pages/manager/group/message/index.ts
@@ -44,7 +44,7 @@
        url:'../message/records/index?id='+this.data.groupId
    })
},
    more() {
more() {
        console.log("进来了", this.data.scrollTop)
        if (this.data.isShow == false) {
            this.setData({
@@ -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