没有欢迎时的tip

pull/23/head
630892807@qq.com 4 years ago
parent 42b5aa4c26
commit b1b777bafd

@ -143,7 +143,7 @@ PRIMARY KEY (`id`),
UNIQUE KEY `page` (`page`) UNIQUE KEY `page` (`page`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8| ) 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 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', 'GOFLYGO-FLY', 'GOFLYGO-FLY', '一款开箱即用的在线客服系统', 'HELLO GOFLY LIVE CHAT !', '<style>body{color: #333;padding-left: 40px;}h1{font-size: 6em;}h2{font-size: 3em;font-weight: normal;}a{color: #333;}</style>','<h1>:)</h1><h2>HELLO GOFLY LIVE CHAT !</h2><h3><a href=''/login''>Administrator</a></h3>','<h1>:)</h1><h2>HELLO GOFLY LIVE CHAT !</h2><h3><a href="/login">Administrator</a>&nbsp;<a href="/index_en">English</a>&nbsp;<a href="/index_cn">中文</a></h3>','index')| (NULL, '免费开源客服系统GOFLY0.3.5-演示页', 'Free Customer Live Chat GOFLY0.3.5-demo', 'GOFLYGO-FLY', 'GOFLYGO-FLY', '一款开箱即用的在线客服系统', 'HELLO GOFLY LIVE CHAT !', '<style>body{color: #333;padding-left: 40px;}h1{font-size: 6em;}h2{font-size: 3em;font-weight: normal;}a{color: #333;}</style>','<h1>:)</h1><h2>HELLO GOFLY LIVE CHAT !</h2><h3><a href="/login">Administrator</a>&nbsp;<a href="/index_en">English</a>&nbsp;<a href="/index_cn">中文</a></h3>','<h1>:)</h1><h2>HELLO GOFLY LIVE CHAT !</h2><h3><a href="/login">Administrator</a>&nbsp;<a href="/index_en">English</a>&nbsp;<a href="/index_cn">中文</a></h3>','index')|
DROP TABLE IF EXISTS `reply_group`| DROP TABLE IF EXISTS `reply_group`|
CREATE TABLE `reply_group` ( CREATE TABLE `reply_group` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,

@ -294,7 +294,7 @@
/*margin-bottom: 80px;*/ /*margin-bottom: 80px;*/
} }
.chatVisitorPage .chatBox{ .chatVisitorPage .chatBox{
min-height: 540px; min-height: calc(100% - 105px);
padding: 0 4px; padding: 0 4px;
} }
.chatBox .el-col{margin:10px 0;} .chatBox .el-col{margin:10px 0;}

@ -12,6 +12,8 @@ GOFLY.titleNum=0;
GOFLY.noticeTimer=null; GOFLY.noticeTimer=null;
GOFLY.originTitle=document.title; GOFLY.originTitle=document.title;
GOFLY.chatPageTitle="GOFLY"; GOFLY.chatPageTitle="GOFLY";
GOFLY.kefuName="";
GOFLY.kefuAvator="";
GOFLY.init=function(config){ GOFLY.init=function(config){
var _this=this; var _this=this;
if(typeof config=="undefined"){ if(typeof config=="undefined"){
@ -68,8 +70,11 @@ GOFLY.init=function(config){
_this.flashTitle();//标题闪烁 _this.flashTitle();//标题闪烁
} }
if (this.launchButtonFlag) return; if (this.launchButtonFlag) return;
$("#launchNoticeContent").html(replaceContent(msg.data.content,_this.GOFLY_URL)); var welcomeHtml="<div class='flyUser'><img class='flyAvatar' src='"+_this.GOFLY_URL+_this.kefuAvator+"'/> <span class='flyUsername'>"+_this.kefuName+"</span>" +
$("#launchButtonNotice").show(); "<span id='launchNoticeClose' class='flyClose'>×</span>" +
"</div>";
welcomeHtml+="<div id='launchNoticeContent'>"+replaceContent(msg.data.content,_this.GOFLY_URL)+"</div>";
$("#launchButtonNotice").html(welcomeHtml).show();
var news=$("#launchIcon").text(); var news=$("#launchIcon").text();
$("#launchIcon").text(++news).show(); $("#launchIcon").text(++news).show();
} }
@ -135,6 +140,8 @@ GOFLY.getNotice=function(){
$('.launchButtonText').html(userInfo); $('.launchButtonText').html(userInfo);
},3000); },3000);
} }
_this.kefuAvator=res.result.avatar;
_this.kefuName=res.result.username;
_this.chatPageTitle+="<img src='"+_this.GOFLY_URL+res.result.avatar+"' class='flyAvatar'>"+res.result.username; _this.chatPageTitle+="<img src='"+_this.GOFLY_URL+res.result.avatar+"' class='flyAvatar'>"+res.result.username;
if(_this.GOFLY_AUTO_OPEN&&_this.isIE()<=0){ if(_this.GOFLY_AUTO_OPEN&&_this.isIE()<=0){
_this.showKefu(); _this.showKefu();

Loading…
Cancel
Save