pull/23/head
陶士涵 4 years ago
parent 3b69f95d96
commit a4810b48ea

@ -14,12 +14,26 @@
background-color: #fff; background-color: #fff;
overflow: hidden; overflow: hidden;
cursor: pointer; cursor: pointer;
box-shadow: 0 1px 6px rgba(0,0,0,.06), 0 2px 32px rgba(0,0,0,.16); box-shadow: 0 3px 15px 0 rgba(0,0,0,.25)!important;
position: absolute; position: absolute;
bottom: 60px; bottom: 60px;
color: #222; color: #222;
line-height: 1.5; line-height: 1.5;
font-size: 14px; font-size: 14px;
display: none;
}
.launchIcon{
background: red;
width: 20px;
height: 20px;
line-height: 20px;
text-align: center;
border-radius: 50%;
position: absolute;
top: -4px;
left: 0px;
color: #fff;
display: none;
} }
.launchButton{ .launchButton{
height: 48px!important; height: 48px!important;

@ -72,13 +72,22 @@ GOFLY.dynamicLoadJs=function(url, callback){
GOFLY.clickBtn=function (){ GOFLY.clickBtn=function (){
var _this=this; var _this=this;
var html="<div class='launchButtonBox'>" + var html="<div class='launchButtonBox'>" +
'<div id="launchButton" class="launchButton animateUpDown"><div class="launchButtonText">'+_this.GOFLY_BTN_TEXT+'</div></div>' + '<div id="launchButton" class="launchButton animateUpDown">' +
'<div class="launchButtonNotice">您好:<br/>极简强大的开源免费Go语言在线客服单页营销系统</div>' + '<div id="launchIcon" class="launchIcon">1</div> ' +
'<div class="launchButtonText">'+_this.GOFLY_BTN_TEXT+'</div></div>' +
'<div id="launchButtonNotice" class="launchButtonNotice">您好:<br/>极简强大的开源免费Go语言在线客服单页营销系统来了解一下</div>' +
'</div>'; '</div>';
$('body').append(html); $('body').append(html);
$("#launchButton").on("click",function() { $("#launchButton").on("click",function() {
_this.showKefu(); _this.showKefu();
}); });
$("#launchButtonNotice").on("click",function() {
_this.showKefu();
});
setTimeout(function(){
$("#launchButtonNotice").show();
$("#launchIcon").show();
},4000);
} }
GOFLY.isIE=function(){ GOFLY.isIE=function(){
var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串

Loading…
Cancel
Save