|
@@ -11,7 +11,8 @@ var page = 1, |
|
@@ -11,7 +11,8 @@ var page = 1, |
11
|
navSwiper,
|
11
|
navSwiper,
|
12
|
notab = 0,
|
12
|
notab = 0,
|
13
|
sort = '',
|
13
|
sort = '',
|
14
|
- id = '';
|
14
|
+ id = '',
|
|
|
15
|
+ noResult = '<p class="no-result">未找到相关搜索结果</p>';
|
15
|
|
16
|
|
16
|
function hotrank(page, sort, tabId, notab) {
|
17
|
function hotrank(page, sort, tabId, notab) {
|
17
|
loading.showLoadingMask();
|
18
|
loading.showLoadingMask();
|
|
@@ -28,7 +29,11 @@ function hotrank(page, sort, tabId, notab) { |
|
@@ -28,7 +29,11 @@ function hotrank(page, sort, tabId, notab) { |
28
|
if (page === 1) {
|
29
|
if (page === 1) {
|
29
|
$('.rank-main').remove();
|
30
|
$('.rank-main').remove();
|
30
|
}
|
31
|
}
|
31
|
- $('#hotRank').append(data);
|
32
|
+ if(data === ' '){
|
|
|
33
|
+ $('#hotRank').html(noResult)
|
|
|
34
|
+ }else{
|
|
|
35
|
+ $('#hotRank').append(data);
|
|
|
36
|
+ }
|
32
|
lazyLoad($('img.lazy'));
|
37
|
lazyLoad($('img.lazy'));
|
33
|
$('.rank-main ul li:gt(2)').find('.item-content i').removeClass('top');
|
38
|
$('.rank-main ul li:gt(2)').find('.item-content i').removeClass('top');
|
34
|
winH = $(window).height();
|
39
|
winH = $(window).height();
|