Authored by 郝肖肖

店铺滚动条刷新

@@ -218,7 +218,7 @@ function hotData(callback) { @@ -218,7 +218,7 @@ function hotData(callback) {
218 req.callBack = function(data) { 218 req.callBack = function(data) {
219 $('#popularity').append(data); 219 $('#popularity').append(data);
220 navInfo.hot.page++; 220 navInfo.hot.page++;
221 - // myScroll.refresh(); 221 + myScroll.refresh();
222 lazyLoad($('#popularity .lazy')); 222 lazyLoad($('#popularity .lazy'));
223 scH = $('#scroller').outerHeight(); 223 scH = $('#scroller').outerHeight();
224 searching = false; 224 searching = false;
@@ -264,7 +264,7 @@ function tabChange(dom, index) { @@ -264,7 +264,7 @@ function tabChange(dom, index) {
264 $nav1.removeClass('fixed-top absolute'); 264 $nav1.removeClass('fixed-top absolute');
265 $nav2.removeClass('fixed-top absolute'); 265 $nav2.removeClass('fixed-top absolute');
266 } 266 }
267 - // myScroll && myScroll.refresh(); 267 + myScroll && myScroll.refresh();
268 scH = $('#scroller').outerHeight(); 268 scH = $('#scroller').outerHeight();
269 if (!$nav1.hasClass('hide')) { 269 if (!$nav1.hasClass('hide')) {
270 myScroll && myScroll.scrollTo(0, 0 - imgH); 270 myScroll && myScroll.scrollTo(0, 0 - imgH);
@@ -442,9 +442,9 @@ document.addEventListener('touchmove', function(e) { @@ -442,9 +442,9 @@ document.addEventListener('touchmove', function(e) {
442 //window ready 后重新refresh iscroll 442 //window ready 后重新refresh iscroll
443 $(window).ready(function() { 443 $(window).ready(function() {
444 myScroll && myScroll.refresh(); 444 myScroll && myScroll.refresh();
445 - imgH = $('#nav-top').outerHeight(true);  
446 - nav1H = $('#nav').outerHeight(true);  
447 - main1H = $('#nav-main').height(true); 445 + imgH = $('#nav-top').outerHeight();
  446 + nav1H = $('#nav').outerHeight();
  447 + main1H = $('#nav-main').height();
448 main1oH = $('#nav-main').outerHeight(true); 448 main1oH = $('#nav-main').outerHeight(true);
449 nav2H = $('#list-nav').outerHeight(true); 449 nav2H = $('#list-nav').outerHeight(true);
450 main2oH = $('#goods-container').outerHeight(true); 450 main2oH = $('#goods-container').outerHeight(true);
@@ -911,7 +911,7 @@ function postCollect(info) { @@ -911,7 +911,7 @@ function postCollect(info) {
911 } 911 }
912 912
913 setTimeout(function() { 913 setTimeout(function() {
914 - // myScroll.refresh(); 914 + myScroll.refresh();
915 scH = $('#scroller').outerHeight(); 915 scH = $('#scroller').outerHeight();
916 }, 500); 916 }, 500);
917 searching = false; 917 searching = false;