Authored by xuqi

index page footer.Review by:@梁志锋

@@ -95,11 +95,15 @@ function getShoppingKey() { @@ -95,11 +95,15 @@ function getShoppingKey() {
95 95
96 //根据页面内容重新设置通用底部的显示 96 //根据页面内容重新设置通用底部的显示
97 function rePosFooter() { 97 function rePosFooter() {
  98 + var winH;
  99 +
98 if ($footer.length === 0) { 100 if ($footer.length === 0) {
99 return; 101 return;
100 } 102 }
101 103
102 - if ($('body').height() <= window.screen.availHeight - parseInt($footer.css('height'), 0)) { 104 + winH = Math.min($(window).height(), window.screen.availHeight);
  105 +
  106 + if ($('body').height() <= winH - parseInt($footer.css('height'), 0)) {
103 $footer.addClass('bottom'); 107 $footer.addClass('bottom');
104 } else { 108 } else {
105 $footer.removeClass('bottom'); 109 $footer.removeClass('bottom');