| | |
| | | |
| | | Page({ |
| | | data: { |
| | | overLayList:{}, |
| | | showOverlay:false, |
| | | messageList: [], |
| | | isShow: false, |
| | | height: null, |
| | |
| | | // 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 |
| | |
| | | url:'../message/records/index?id='+this.data.groupId |
| | | }) |
| | | }, |
| | | more() { |
| | | more() { |
| | | console.log("进来了", this.data.scrollTop) |
| | | if (this.data.isShow == false) { |
| | | this.setData({ |
| | |
| | | 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 |
| | |
| | | }, |
| | | |
| | | onLoad(e) { |
| | | this.setData({ |
| | | uid:wx.getStorageSync('id') |
| | | }) |
| | | var date = new Date() |
| | | var month = date.getMonth() + 1 |
| | | var day = date.getDate() |