Authored by 姜枫

fix 底部在短页面中 抖动的问题

... ... @@ -103,6 +103,8 @@ exports.record = (req, res, next) => {
if (result.browseRecord && result.browseRecord.length > 0) {
responseData.browseRecord = result.browseRecord;
} else {
responseData.noRecord = true;
}
res.render('browse-record', responseData);
... ...
... ... @@ -138,6 +138,7 @@ function rePosFooter() {
if ($('body').height() >= winH - parseInt($footer.css('height'), 0)) {
$footer.removeClass('bottom');
}
$footer.show();
}
/**
... ... @@ -184,7 +185,9 @@ $.extend({
var backToTopHammer;
var floatTopHammer;
setTimeout(function() {
rePosFooter(); // 计算底部位置
}, 500);
if (user === 0) {
... ...
... ... @@ -31,6 +31,10 @@ load.init();
function moreRecord(cb) {
var count = $page.children('.browse-record-good').length;
if (count === 0) {
return;
}
if (loading) {
return;
}
... ...
... ... @@ -76,7 +76,6 @@
}
.no-record {
position: absolute;
background: #fff;
text-align: center;
top: 50%;
... ...
... ... @@ -29,6 +29,7 @@
width: 100%;
background-color: #fff;
font-size: 24px;
display: none;
.op-row {
padding: 0 30px;
... ...