diff --git a/static/html/chat_main.html b/static/html/chat_main.html index acd77a7..ea1d38f 100644 --- a/static/html/chat_main.html +++ b/static/html/chat_main.html @@ -136,7 +136,7 @@
- 发送 + 发送
@@ -287,5 +287,5 @@ - + \ No newline at end of file diff --git a/static/html/chat_page.html b/static/html/chat_page.html index 9712463..99e5d02 100644 --- a/static/html/chat_page.html +++ b/static/html/chat_page.html @@ -58,7 +58,7 @@
- {{.SendBtn}} + {{.SendBtn}}
GO-FLY0.2.2客服陶士涵提供技术支持 @@ -79,5 +79,5 @@ var KEFU_ID='{{.KEFU_ID}}'; var REFER='{{.Refer}}'; - + diff --git a/static/js/chat-main.js b/static/js/chat-main.js index e047c8b..85de210 100644 --- a/static/js/chat-main.js +++ b/static/js/chat-main.js @@ -44,6 +44,7 @@ var app=new Vue({ replys:[], replyContent:"", ipBlacks:[], + sendDisabled:false, }, methods: { //跳转 @@ -191,6 +192,7 @@ var app=new Vue({ if(this.messageContent==""||this.messageContent=="\r\n"||this.currentGuest==""){ return; } + this.sendDisabled=true; let _this=this; let mes = {}; mes.type = "kefu"; @@ -216,6 +218,7 @@ var app=new Vue({ // content.is_kefu = true; // content.time = ''; // this.msgList.push(content); + _this.sendDisabled=false; this.scrollBottom(); }, //处理当前在线用户列表 diff --git a/static/js/chat-page.js b/static/js/chat-page.js index 499acfe..72a35b2 100644 --- a/static/js/chat-page.js +++ b/static/js/chat-page.js @@ -15,6 +15,7 @@ new Vue({ showKfonline:false, socketClosed:false, timer:null, + sendDisabled:false, }, methods: { //初始化websocket @@ -102,6 +103,7 @@ new Vue({ }); return; } + this.sendDisabled=true; let _this=this; let mes = {}; mes.type = "visitor"; @@ -130,6 +132,7 @@ new Vue({ _this.messageContent = ""; clearInterval(_this.timer); _this.sendSound(); + _this.sendDisabled=false; }); },