前端修改

pull/23/head 0.3.6
taoshihan1991 4 years ago
parent 2928f8b928
commit fabb401190

@ -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 <a href="https://gofly.sopans.com">GOFLY</a> 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 <a href="https://gofly.sopans.com">GOFLY</a> 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.6-演示页', 'Free Customer Live Chat GOFLY0.3.6-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 <a href="https://gofly.sopans.com">GOFLY</a> 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 <a href="https://gofly.sopans.com">GOFLY</a> 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,

@ -31,93 +31,5 @@
}) })
</script> </script>
<!--//对接客服代码--> <!--//对接客服代码-->
<!--自动弹代码-->
<style>
/*自动弹出*/
.autoInvite{
width: 400px;
height: 162px;
position: fixed;
top:50%;
left: 50%;
margin-top: -81px;
margin-left: -200px;
background: url("/static/images/inviteColorBack1.png");
display: none;
}
.autoInvite .autoInviteNotice{
margin-top: 4px;
}
.autoInvite .autoInviteContent{
width: 220px;
height: 90px;
position: absolute;
top:55px;
right: 20px;
font-size: 13pt;
color: #fff;
word-break: break-all;
line-height: 25px;
}
.autoInvite .autoInviteBtns a{
display: inline-block;
width: 80px;
height: 32px;
line-height: 32px;
color: #fff;
text-align: center;
border: 1px solid #fff;
border-radius: 5px;
cursor: pointer;
font-size: 13px;
margin-right: 8px;
text-decoration: none;
}
.autoInvite .autoInviteBtns a.nowAsk{
color: #0085DA;
background-color: #fff;
}
</style>
<div class="autoInvite">
<div class="autoInviteContent">
<div class="autoInviteNotice">{{.Notice}}</div>
<div class="autoInviteBtns">
<a href="javascript:void(0)" id="noAsk">{{.LaterAsk}}</a>
<a href="javascript:void(0)" class="nowAsk">{{.NowAsk}}</a>
</div>
</div>
</div>
<script>
// var invite=false;
//
// setTimeout(function(){
// if (invite) return;
// $(".autoInvite").show();
// invite=true;
//
// $("#noAsk").click(function(){
// $(".autoInvite").hide();
// invite=true;
// });
// $(".nowAsk").click(function(){
// $(".autoInvite").hide();
// GOFLY.showKefu();
// invite=true;
// });
// },8000);
</script>
<!--自动弹代码-->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?82938760e00806c6c57adee91f39aa5e";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body> </body>
</html> </html>

@ -30,5 +30,16 @@
</div> </div>
</body> </body>
{{template "setting_bottom" .}} {{template "setting_bottom" .}}
<!--对接客服代码,安装完成后更改成自己的域名或IP下面js文件路径以及GOFLY_URL都要改-->
<script src="https://gofly.sopans.com/static/js/gofly-front.js?v=1"></script>
<script>
GOFLY.init({
GOFLY_URL:"https://gofly.sopans.com",
GOFLY_KEFU_ID: "kefu2",
GOFLY_BTN_TEXT: "快速咨询开发者",
GOFLY_AUTO_OPEN:true,
})
</script>
<!--//对接客服代码-->

@ -521,6 +521,13 @@ var app=new Vue({
}); });
}); });
}); });
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?82938760e00806c6c57adee91f39aa5e";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
}, },
//表情点击事件 //表情点击事件
faceIconClick(index){ faceIconClick(index){

@ -402,6 +402,13 @@ new Vue({
$(".chatBox").append("<div class=\"chatTime\">"+_this.chatTitle+"</div>"); $(".chatBox").append("<div class=\"chatTime\">"+_this.chatTitle+"</div>");
_this.scrollBottom(); _this.scrollBottom();
} }
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?82938760e00806c6c57adee91f39aa5e";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
}, },
//表情点击事件 //表情点击事件
faceIconClick:function(index){ faceIconClick:function(index){

Loading…
Cancel
Save