滚动问题

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

@ -247,9 +247,11 @@ new Vue({
}, },
//滚动到底部 //滚动到底部
scrollBottom:function(){ scrollBottom:function(){
var _this=this;
this.$nextTick(function(){ this.$nextTick(function(){
//debugger; if(_this.msgList.length>=3){
$('body').scrollTop($("body")[0].scrollHeight); $('body').scrollTop($("body")[0].scrollHeight);
}
}); });
}, },
//获取日期 //获取日期
@ -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