Showing
1 changed file
with
3 additions
and
3 deletions
@@ -46,7 +46,6 @@ const msgTypeMap = { | @@ -46,7 +46,6 @@ const msgTypeMap = { | ||
46 | 46 | ||
47 | 47 | ||
48 | var userAvatar = socketConf.defaultUserHead; | 48 | var userAvatar = socketConf.defaultUserHead; |
49 | -var workAvatar = socketConf.defaultUserHead; | ||
50 | 49 | ||
51 | var chat = { | 50 | var chat = { |
52 | $chat: null, | 51 | $chat: null, |
@@ -85,7 +84,7 @@ var chat = { | @@ -85,7 +84,7 @@ var chat = { | ||
85 | url: '/service/userinfo', | 84 | url: '/service/userinfo', |
86 | }).then(function(result) { | 85 | }).then(function(result) { |
87 | // 获取用户信息 | 86 | // 获取用户信息 |
88 | - userAvatar = result.head || cmEntity.defaultUserHead; | 87 | + userAvatar = result.head || socketConf.defaultUserHead; |
89 | self.fetchHistoryMsg(function() { | 88 | self.fetchHistoryMsg(function() { |
90 | self.bootSocket(); | 89 | self.bootSocket(); |
91 | }); | 90 | }); |
@@ -143,7 +142,7 @@ var chat = { | @@ -143,7 +142,7 @@ var chat = { | ||
143 | content: $.trim(event.target.value) | 142 | content: $.trim(event.target.value) |
144 | } | 143 | } |
145 | }; | 144 | }; |
146 | - | 145 | + console.log(content) |
147 | self.sendMSG(content); | 146 | self.sendMSG(content); |
148 | } | 147 | } |
149 | }); | 148 | }); |
@@ -339,6 +338,7 @@ var chat = { | @@ -339,6 +338,7 @@ var chat = { | ||
339 | viewData = [viewData]; | 338 | viewData = [viewData]; |
340 | } | 339 | } |
341 | 340 | ||
341 | + console.log(viewData); | ||
342 | let $html = $(this.messageT(viewData)); | 342 | let $html = $(this.messageT(viewData)); |
343 | 343 | ||
344 | $html.appendTo(this.$chatWin); | 344 | $html.appendTo(this.$chatWin); |
-
Please register or login to post a comment