Authored by uedxwg

修改hotrank数据加载方式 by 赵彪 备:方法可能会重构

@@ -12,6 +12,7 @@ var page = 1, @@ -12,6 +12,7 @@ var page = 1,
12 notab = 0, 12 notab = 0,
13 sort = '', 13 sort = '',
14 id = '', 14 id = '',
  15 + hotrankNav,
15 noResult = '<p class="no-result">未找到相关搜索结果</p>'; 16 noResult = '<p class="no-result">未找到相关搜索结果</p>';
16 17
17 // var renderRank = { 18 // var renderRank = {
@@ -89,7 +90,7 @@ function hotrank(page, sort, tabId, notab) { @@ -89,7 +90,7 @@ function hotrank(page, sort, tabId, notab) {
89 $('#hotRank').html(noResult); 90 $('#hotRank').html(noResult);
90 } else { 91 } else {
91 if (page === 1) { 92 if (page === 1) {
92 - var hotrankNav = $('.goods-nav').prop("outerHTML"); 93 + hotrankNav = $('.goods-nav').prop('outerHTML');
93 94
94 $('#hotRank').html(hotrankNav + noResult); 95 $('#hotRank').html(hotrankNav + noResult);
95 } 96 }