From b1b777bafde3d30eb675f5e973629452aac0de5d Mon Sep 17 00:00:00 2001 From: "630892807@qq.com" <630892807@qq.com> Date: Wed, 10 Mar 2021 22:00:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=AC=A2=E8=BF=8E=E6=97=B6?= =?UTF-8?q?=E7=9A=84tip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/go-fly.sql | 2 +- static/css/common.css | 2 +- static/js/gofly-front.js | 11 +++++++++-- 3 files changed, 11 insertions(+), 4 deletions(-) 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 !

Administrator

','

:)

HELLO GOFLY LIVE CHAT !

Administrator English 中文

','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 !

Administrator English 中文

','

:)

HELLO GOFLY LIVE CHAT !

Administrator English 中文

','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();