Showing
5 changed files
with
10 additions
and
1 deletions
@@ -103,6 +103,8 @@ exports.record = (req, res, next) => { | @@ -103,6 +103,8 @@ exports.record = (req, res, next) => { | ||
103 | 103 | ||
104 | if (result.browseRecord && result.browseRecord.length > 0) { | 104 | if (result.browseRecord && result.browseRecord.length > 0) { |
105 | responseData.browseRecord = result.browseRecord; | 105 | responseData.browseRecord = result.browseRecord; |
106 | + } else { | ||
107 | + responseData.noRecord = true; | ||
106 | } | 108 | } |
107 | 109 | ||
108 | res.render('browse-record', responseData); | 110 | res.render('browse-record', responseData); |
@@ -138,6 +138,7 @@ function rePosFooter() { | @@ -138,6 +138,7 @@ function rePosFooter() { | ||
138 | if ($('body').height() >= winH - parseInt($footer.css('height'), 0)) { | 138 | if ($('body').height() >= winH - parseInt($footer.css('height'), 0)) { |
139 | $footer.removeClass('bottom'); | 139 | $footer.removeClass('bottom'); |
140 | } | 140 | } |
141 | + $footer.show(); | ||
141 | } | 142 | } |
142 | 143 | ||
143 | /** | 144 | /** |
@@ -184,7 +185,9 @@ $.extend({ | @@ -184,7 +185,9 @@ $.extend({ | ||
184 | var backToTopHammer; | 185 | var backToTopHammer; |
185 | var floatTopHammer; | 186 | var floatTopHammer; |
186 | 187 | ||
188 | + setTimeout(function() { | ||
187 | rePosFooter(); // 计算底部位置 | 189 | rePosFooter(); // 计算底部位置 |
190 | + }, 500); | ||
188 | 191 | ||
189 | if (user === 0) { | 192 | if (user === 0) { |
190 | 193 |
@@ -31,6 +31,10 @@ load.init(); | @@ -31,6 +31,10 @@ load.init(); | ||
31 | function moreRecord(cb) { | 31 | function moreRecord(cb) { |
32 | var count = $page.children('.browse-record-good').length; | 32 | var count = $page.children('.browse-record-good').length; |
33 | 33 | ||
34 | + if (count === 0) { | ||
35 | + return; | ||
36 | + } | ||
37 | + | ||
34 | if (loading) { | 38 | if (loading) { |
35 | return; | 39 | return; |
36 | } | 40 | } |
-
Please register or login to post a comment