修复自动弹的时候头像不显示

pull/23/head
taoshihan1991 4 years ago
parent cb2a28a4bc
commit 3bd63f2ea5

@ -110,11 +110,7 @@ GOFLY.clickBtn=function (){
$(".launchButton").on("click",function() {
_this.showKefu();
});
if(this.GOFLY_AUTO_OPEN){
_this.showKefu();
$(".launchButtonBox").show();
this.launchButtonFlag=false;
}
$("body").on("click","#launchNoticeClose",function() {
$("#launchButtonNotice").hide();
});
@ -124,6 +120,11 @@ GOFLY.getNotice=function(){
var _this=this;
$.get(this.GOFLY_URL+"/notice?kefu_id="+this.GOFLY_KEFU_ID,function(res) {
_this.chatPageTitle="<img style='margin-top: 5px;' src='"+_this.GOFLY_URL+res.result.avatar+"' class='flyAvatar'>"+res.result.username;
if(_this.GOFLY_AUTO_OPEN){
_this.showKefu();
$(".launchButtonBox").show();
_this.launchButtonFlag=false;
}
if (res.result.welcome != null) {
var msg = res.result.welcome;
var len=msg.length;

Loading…
Cancel
Save