From 5e0e102a71e5f9949462f3610083a7c3f393dc9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=B6=E5=A3=AB=E6=B6=B5?= <630892807@qq.com> Date: Sun, 20 Dec 2020 13:40:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=A4=9A=E6=AC=A1=E5=8F=91?= =?UTF-8?q?=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/html/chat_main.html | 4 ++-- static/html/chat_page.html | 4 ++-- static/js/chat-main.js | 3 +++ static/js/chat-page.js | 3 +++ 4 files changed, 10 insertions(+), 4 deletions(-) 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; }); },