|
@@ -591,14 +591,19 @@ Page({
|
591
|
591
|
}
|
592
|
592
|
},
|
593
|
593
|
onUnload: function (e) {
|
594
|
|
- let url = 'imsocket/imchatmessage/clearunreadmsg';
|
595
|
|
- let datas = {
|
596
|
|
- to_id: this.data.to_id, form_id: getApp().UserId()
|
597
|
|
- };
|
598
|
|
- //清除未读信息
|
599
|
|
- getApp().postRequest(url, datas, function (res) {
|
600
|
|
- console.log(res, 11111);
|
601
|
|
- })
|
|
594
|
+ let _that = this;
|
|
595
|
+ _that.SocketSend({
|
|
596
|
+ type: 'clearChatTotal'
|
|
597
|
+ });
|
|
598
|
+
|
|
599
|
+ // let url = 'imsocket/imchatmessage/clearunreadmsg';
|
|
600
|
+ // let datas = {
|
|
601
|
+ // to_id: this.data.to_id, form_id: getApp().UserId()
|
|
602
|
+ // };
|
|
603
|
+ // //清除未读信息
|
|
604
|
+ // getApp().postRequest(url, datas, function (res) {
|
|
605
|
+ // console.log(res, 11111);
|
|
606
|
+ // })
|
602
|
607
|
console.log('销毁页面');
|
603
|
608
|
},
|
604
|
609
|
// ceshi: function (e) {
|