滚动问题

pull/23/head
630892807@qq.com 5 years ago
parent 3503a6d806
commit 900a349774

@ -247,10 +247,12 @@ new Vue({
}, },
//滚动到底部 //滚动到底部
scrollBottom:function(){ scrollBottom:function(){
this.$nextTick(function(){ var _this=this;
//debugger; this.$nextTick(function(){
$('body').scrollTop($("body")[0].scrollHeight); if(_this.msgList.length>=3){
}); $('body').scrollTop($("body")[0].scrollHeight);
}
});
}, },
//获取日期 //获取日期
getNowDate : function() {// 获取日期 getNowDate : function() {// 获取日期
@ -360,6 +362,7 @@ new Vue({
$('.faceBox').hide(); $('.faceBox').hide();
}); });
window.onfocus = function () { window.onfocus = function () {
_this.scrollBottom();
clearFlashTitle(); clearFlashTitle();
window.parent.postMessage({type:"focus"},"*"); window.parent.postMessage({type:"focus"},"*");
if(_this.socketClosed){ if(_this.socketClosed){

Loading…
Cancel
Save