diff --git a/im-ui/src/api/wssocket.js b/im-ui/src/api/wssocket.js index 8cb13b0..bd1b3b1 100644 --- a/im-ui/src/api/wssocket.js +++ b/im-ui/src/api/wssocket.js @@ -20,7 +20,7 @@ let initWebSocket = () => { isCompleteConnect = false; websock = new WebSocket(wsurl); websock.onmessage = function(e) { - let msg = JSON.parse(decodeUnicode(e.data)) + let msg = JSON.parse(e.data) if (msg.cmd == 0) { if(!isCompleteConnect){ // 第一次上传心跳成功才算连接完成 @@ -131,17 +131,6 @@ function onopen(callback) { } -function decodeUnicode(str) { - str = str.replace(/\\/g, "%"); - //转换中文 - str = unescape(str); - //将其他受影响的转换回原来 - str = str.replace(/%/g, "\\"); - //对网址的链接进行处理 - str = str.replace(/\\/g, ""); - return str; - -} // 将方法暴露出去 diff --git a/im-ui/src/assets/default_head.png b/im-ui/src/assets/default_head.png index 5f6e18a..c7a9e0e 100644 Binary files a/im-ui/src/assets/default_head.png and b/im-ui/src/assets/default_head.png differ diff --git a/im-ui/src/components/HeadImage.vue b/im-ui/src/components/HeadImage.vue deleted file mode 100644 index 59804a4..0000000 --- a/im-ui/src/components/HeadImage.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - - - \ No newline at end of file diff --git a/im-ui/src/components/ChatItem.vue b/im-ui/src/components/chat/ChatItem.vue similarity index 92% rename from im-ui/src/components/ChatItem.vue rename to im-ui/src/components/chat/ChatItem.vue index 27993b2..7a70c8b 100644 --- a/im-ui/src/components/ChatItem.vue +++ b/im-ui/src/components/chat/ChatItem.vue @@ -1,165 +1,165 @@ - - - - - + + + + + diff --git a/im-ui/src/components/ChatTime.vue b/im-ui/src/components/chat/ChatTime.vue similarity index 89% rename from im-ui/src/components/ChatTime.vue rename to im-ui/src/components/chat/ChatTime.vue index 8519cce..f9c324f 100644 --- a/im-ui/src/components/ChatTime.vue +++ b/im-ui/src/components/chat/ChatTime.vue @@ -1,43 +1,41 @@ - - - - - + + + + + diff --git a/im-ui/src/components/chat/MessageItem.vue b/im-ui/src/components/chat/MessageItem.vue new file mode 100644 index 0000000..283a293 --- /dev/null +++ b/im-ui/src/components/chat/MessageItem.vue @@ -0,0 +1,209 @@ + + + + + diff --git a/im-ui/src/components/common/FileUpload.vue b/im-ui/src/components/common/FileUpload.vue new file mode 100644 index 0000000..f089c94 --- /dev/null +++ b/im-ui/src/components/common/FileUpload.vue @@ -0,0 +1,87 @@ + + + + + diff --git a/im-ui/src/components/common/HeadImage.vue b/im-ui/src/components/common/HeadImage.vue new file mode 100644 index 0000000..f8a8350 --- /dev/null +++ b/im-ui/src/components/common/HeadImage.vue @@ -0,0 +1,54 @@ + + + + + \ No newline at end of file diff --git a/im-ui/src/components/AddFriends.vue b/im-ui/src/components/friend/AddFriends.vue similarity index 94% rename from im-ui/src/components/AddFriends.vue rename to im-ui/src/components/friend/AddFriends.vue index c39a102..f74c6ed 100644 --- a/im-ui/src/components/AddFriends.vue +++ b/im-ui/src/components/friend/AddFriends.vue @@ -1,119 +1,119 @@ - - - - - + + + + + diff --git a/im-ui/src/components/FriendsItem.vue b/im-ui/src/components/friend/FriendsItem.vue similarity index 92% rename from im-ui/src/components/FriendsItem.vue rename to im-ui/src/components/friend/FriendsItem.vue index 16ae935..349f697 100644 --- a/im-ui/src/components/FriendsItem.vue +++ b/im-ui/src/components/friend/FriendsItem.vue @@ -1,114 +1,114 @@ - - - - - + + + + + diff --git a/im-ui/src/components/setting/Setting.vue b/im-ui/src/components/setting/Setting.vue index 1f7c5b6..a6e84a3 100644 --- a/im-ui/src/components/setting/Setting.vue +++ b/im-ui/src/components/setting/Setting.vue @@ -2,11 +2,16 @@ - + - + @@ -33,18 +38,22 @@ - + diff --git a/im-ui/src/view/Friends.vue b/im-ui/src/view/Friends.vue index c653d0a..5199121 100644 --- a/im-ui/src/view/Friends.vue +++ b/im-ui/src/view/Friends.vue @@ -34,8 +34,8 @@ {{ activeUserInfo.nickName }} - 好基友 - 世界这么大,我想去看看 + {{ activeUserInfo.sex==0?"男":"女" }} + {{ activeUserInfo.signature }} @@ -48,9 +48,9 @@