diff --git a/config/go-fly.sql b/config/go-fly.sql
index 77ec8e9..b8ec59e 100644
--- a/config/go-fly.sql
+++ b/config/go-fly.sql
@@ -143,7 +143,7 @@ PRIMARY KEY (`id`),
UNIQUE KEY `page` (`page`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8|
INSERT INTO `about` (`id`, `title_cn`, `title_en`, `keywords_cn`, `keywords_en`, `desc_cn`, `desc_en`, `css_js`, `html_cn`, `html_en`, `page`) VALUES
-(NULL, '免费开源客服系统GOFLY0.3.5-演示页', 'Free Customer Live Chat GOFLY0.3.5-demo', 'GOFLY,GO-FLY', 'GOFLY,GO-FLY', '一款开箱即用的在线客服系统', 'HELLO GOFLY LIVE CHAT !', '','
:)
HELLO GOFLY LIVE CHAT !
',':)
HELLO GOFLY LIVE CHAT !
','index')|
+(NULL, '免费开源客服系统GOFLY0.3.5-演示页', 'Free Customer Live Chat GOFLY0.3.5-demo', 'GOFLY,GO-FLY', 'GOFLY,GO-FLY', '一款开箱即用的在线客服系统', 'HELLO GOFLY LIVE CHAT !', '',':)
HELLO GOFLY LIVE CHAT !
',':)
HELLO GOFLY LIVE CHAT !
','index')|
DROP TABLE IF EXISTS `reply_group`|
CREATE TABLE `reply_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
diff --git a/static/css/common.css b/static/css/common.css
index ba3a628..7d7a402 100644
--- a/static/css/common.css
+++ b/static/css/common.css
@@ -294,7 +294,7 @@
/*margin-bottom: 80px;*/
}
.chatVisitorPage .chatBox{
- min-height: 540px;
+ min-height: calc(100% - 105px);
padding: 0 4px;
}
.chatBox .el-col{margin:10px 0;}
diff --git a/static/js/gofly-front.js b/static/js/gofly-front.js
index 7d1295a..98da0c5 100644
--- a/static/js/gofly-front.js
+++ b/static/js/gofly-front.js
@@ -12,6 +12,8 @@ GOFLY.titleNum=0;
GOFLY.noticeTimer=null;
GOFLY.originTitle=document.title;
GOFLY.chatPageTitle="GOFLY";
+GOFLY.kefuName="";
+GOFLY.kefuAvator="";
GOFLY.init=function(config){
var _this=this;
if(typeof config=="undefined"){
@@ -68,8 +70,11 @@ GOFLY.init=function(config){
_this.flashTitle();//标题闪烁
}
if (this.launchButtonFlag) return;
- $("#launchNoticeContent").html(replaceContent(msg.data.content,_this.GOFLY_URL));
- $("#launchButtonNotice").show();
+ var welcomeHtml="
"+_this.kefuName+"" +
+ "
×" +
+ "
";
+ welcomeHtml+=""+replaceContent(msg.data.content,_this.GOFLY_URL)+"
";
+ $("#launchButtonNotice").html(welcomeHtml).show();
var news=$("#launchIcon").text();
$("#launchIcon").text(++news).show();
}
@@ -135,6 +140,8 @@ GOFLY.getNotice=function(){
$('.launchButtonText').html(userInfo);
},3000);
}
+ _this.kefuAvator=res.result.avatar;
+ _this.kefuName=res.result.username;
_this.chatPageTitle+="
"+res.result.username;
if(_this.GOFLY_AUTO_OPEN&&_this.isIE()<=0){
_this.showKefu();