更新界面效果

pull/23/head
taoshihan1991 4 years ago
parent f31ce189b7
commit d1eb25dfb2

File diff suppressed because one or more lines are too long

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>开源免费客服系统-极简强大Go语言开发客服单页营销系统 - GOFLY</title>
<style>
body{color: #333;padding-left: 40px;}h1{font-size: 6em;}h2{font-size: 3em;font-weight: normal;}a{color: #333;}
</style>
<body>
<h1>:)</h1><h2>HELLO GOFLY LIVE CHAT !</h2><h3><a href='/login'>Administrator</a>&nbsp;<a href='/login'>English</a>&nbsp;<a href='/login'>中文</a></h3>
</body>
</html>

@ -8,6 +8,8 @@ var GOFLY_LANG={
"moremessage":"点击more加载更多记录",
"copyright":"GO-FLY1.0.0客服陶士涵提供技术支持",
"textarea":"请输入内容",
"closemes":"系统自动关闭连接!点击会重连",
"forceclosemes":"客服关闭连接!请重新打开页面",
},
"en":{
"sent":"Send",
@ -18,5 +20,7 @@ var GOFLY_LANG={
"moremessage":"click buuton show more messages",
"copyright":"We run on GOFLY",
"textarea":"Enter your message",
"closemes":"The system automatically closes the connection!",
"forceclosemes":"Admin closes the connection! please reload",
},
};

@ -81,7 +81,7 @@ new Vue({
this.alertSound();//提示音
}
if (redata.type == "close") {
this.chatTitle="系统自动关闭连接!点击会重连";
this.chatTitle=GOFLY_LANG[LANG]['closemes'];
$(".chatBox").append("<div class=\"chatTime\">"+this.chatTitle+"</div>");
this.scrollBottom();
this.socket.close();
@ -89,7 +89,7 @@ new Vue({
this.focusSendConn=true;
}
if (redata.type == "force_close") {
this.chatTitle="客服关闭连接!请重新打开页面";
this.chatTitle=GOFLY_LANG[LANG]['forceclosemes'];
$(".chatBox").append("<div class=\"chatTime\">"+this.chatTitle+"</div>");
this.scrollBottom();
this.socket.close();
@ -373,7 +373,7 @@ new Vue({
return;
}
_this.initConn();
_this.chatTitle="连接已重连";
_this.chatTitle=_this.flyLang['connectok'];
$(".chatBox").append("<div class=\"chatTime\">"+_this.chatTitle+"</div>");
_this.scrollBottom();
}

Loading…
Cancel
Save