diff --git a/pages/user/myinfo.vue b/pages/user/myinfo.vue
index 4d4598d..9ccb61b 100644
--- a/pages/user/myinfo.vue
+++ b/pages/user/myinfo.vue
@@ -11,6 +11,10 @@
+
+ 活动消息
+
+
我的粉丝
@@ -71,8 +75,14 @@ export default {
this.imService.connectIM()
},
methods: {
- loginOut(){
- this.imService.disconnect();
+ navtos(){
+ console.log(1212)
+ this.$u.route({
+ url:"/pages/messages/list"
+ })
+ },
+ loginout(){
+ this.imService.disconnect()
uni.clearStorage();
this.$refs.uToast.show({
title: "退出登陆成功!",
diff --git a/static/imservice.js b/static/imservice.js
index 59969db..a268e01 100644
--- a/static/imservice.js
+++ b/static/imservice.js
@@ -784,6 +784,10 @@ IMService.prototype.initialWhenOnlineUserChange = function (whenOnlineUserChange
IMService.prototype.listenerNewMessage = function () {
this.im.on(GoEasyIM.EVENT.GROUP_MESSAGE_RECEIVED, (message) => {
+ console.log(message)
+ if(message.senderId == 0){
+ return ;
+ }
var content = JSON.parse(message.payload.text);
this.addNewMessage(message);
this.whenNewMessage(content);