diff --git a/static/js/gofly-front.js b/static/js/gofly-front.js index ce35134..4bc5330 100644 --- a/static/js/gofly-front.js +++ b/static/js/gofly-front.js @@ -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=""+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;