|
@@ -39,7 +39,7 @@ Component({
|
|
|
"method": "queryMessage",
|
|
|
content: this.data.content
|
|
|
}).then(res => {
|
|
|
- console.log("xiaox",res)
|
|
|
+ console.log("xiaox", res)
|
|
|
this.selectComponent("#ListBox").setHeight("#tabs", this);
|
|
|
this.selectComponent('#ListBox').RefreshToComplete();
|
|
|
if (res.msg != '成功') return wx.showToast({
|
|
@@ -63,6 +63,35 @@ Component({
|
|
|
})
|
|
|
this.getlist(true);
|
|
|
},
|
|
|
+ onAllRead() {
|
|
|
+ wx.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '是否确定阅读所有消息',
|
|
|
+ complete: (res) => {
|
|
|
+ if (res.confirm) {
|
|
|
+ console.log("s")
|
|
|
+ _Http.basic({
|
|
|
+ "classname": "system.message.Message",
|
|
|
+ "method": "readAllMessage",
|
|
|
+ content: {}
|
|
|
+ }).then(res => {
|
|
|
+ console.log("一键阅读", res)
|
|
|
+ wx.showToast({
|
|
|
+ title: res.msg != '成功' ? res.msg : "操作成功",
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ getApp().globalData.socketCallback()
|
|
|
+ this.setData({
|
|
|
+ list: this.data.list.map(v => {
|
|
|
+ v.isread = 1;
|
|
|
+ return v
|
|
|
+ })
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
callback({
|
|
|
detail
|
|
|
}) {
|