diff --git a/im-ui/src/api/emotion.js b/im-ui/src/api/emotion.js
index 1588729..c391496 100644
--- a/im-ui/src/api/emotion.js
+++ b/im-ui/src/api/emotion.js
@@ -19,12 +19,22 @@ let textToImg = (emoText) => {
return emoText;
}
let url = require(`@/assets/emoji/${idx}.gif`);
- return `
`
+ return `
`
}
+let textToUrl = (emoText) => {
+ let word = emoText.replace(/\#|\;/gi, '');
+ let idx = emoTextList.indexOf(word);
+ if(idx==-1){
+ return "";
+ }
+ let url = require(`@/assets/emoji/${idx}.gif`);
+ return url;
+}
export default {
emoTextList,
transform,
- textToImg
+ textToImg,
+ textToUrl
}
diff --git a/im-ui/src/api/wssocket.js b/im-ui/src/api/wssocket.js
index ef2a237..e89988d 100644
--- a/im-ui/src/api/wssocket.js
+++ b/im-ui/src/api/wssocket.js
@@ -20,7 +20,6 @@ let connect = (wsurl,accessToken) => {
} else if (sendInfo.cmd == 1) {
// 重新开启心跳定时
heartCheck.reset();
- console.log("")
} else {
// 其他消息转发出去
console.log("收到消息:",sendInfo);
diff --git a/im-ui/src/components/chat/ChatAtBox.vue b/im-ui/src/components/chat/ChatAtBox.vue
new file mode 100644
index 0000000..858cbbf
--- /dev/null
+++ b/im-ui/src/components/chat/ChatAtBox.vue
@@ -0,0 +1,162 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/im-ui/src/components/chat/ChatBox.vue b/im-ui/src/components/chat/ChatBox.vue
index 5fd5e1e..57e6b69 100644
--- a/im-ui/src/components/chat/ChatBox.vue
+++ b/im-ui/src/components/chat/ChatBox.vue
@@ -1,79 +1,88 @@
-
-
- {{title}}
-
-
-
-
-
-
-
-
-