odc.xiaohui
2023-03-29 638deae4b5b115751e6607f5cdc3c8dee293e957
miniprogram/pages/manager/group/message/index.ts
@@ -4,6 +4,8 @@
Page({
    data: {
        overLayList:{},
        showOverlay:false,
        messageList: [],
        isShow: false,
        height: null,
@@ -19,6 +21,21 @@
    //         url: '../cause/detail/index?id=' + e.currentTarget.id,
    //     })
    // },
    onClickHide(e){
        console.log(e)
        this.setData({
            showOverlay:false
        })
    },
    onClickShow(e){
        console.log(e);
        this.setData({
            overLayList:e
        })
        this.setData({
            showOverlay:true
        })
    },
groupMenber(){
    wx.navigateTo({
        url:'../message/member/index?id='+this.data.groupId
@@ -44,7 +61,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 +108,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
@@ -122,6 +150,9 @@
    },
    onLoad(e) {
        this.setData({
            uid:wx.getStorageSync('id')
        })
        var date = new Date()
        var month = date.getMonth() + 1
        var day = date.getDate()