Authored by 郝肖肖

refresh 会影响到reNavlPos方法

... ... @@ -218,7 +218,7 @@ function hotData(callback) {
req.callBack = function(data) {
$('#popularity').append(data);
navInfo.hot.page++;
myScroll.refresh();
// myScroll.refresh();
lazyLoad($('#popularity .lazy'));
scH = $('#scroller').outerHeight();
searching = false;
... ... @@ -264,7 +264,7 @@ function tabChange(dom, index) {
$nav1.removeClass('fixed-top absolute');
$nav2.removeClass('fixed-top absolute');
}
myScroll && myScroll.refresh();
// myScroll && myScroll.refresh();
scH = $('#scroller').outerHeight();
if (!$nav1.hasClass('hide')) {
myScroll && myScroll.scrollTo(0, 0 - imgH);
... ... @@ -441,7 +441,7 @@ document.addEventListener('touchmove', function(e) {
//window ready 后重新refresh iscroll
$(window).ready(function() {
myScroll && myScroll.refresh();
// myScroll && myScroll.refresh();
imgH = $('#nav-top').outerHeight();
nav1H = $('#nav').outerHeight();
main1H = $('#nav-main').height();
... ... @@ -658,7 +658,7 @@ function search(opt) {
window.rePosFooter();
myScroll.refresh();
myScroll && myScroll.refresh();
reNav1Pos();
bindGoodThumbClick();
... ... @@ -797,6 +797,9 @@ $subNav.on('touchend touchcancel', function(e) {
$dgc.removeClass('hide');
break;
}
theY = imgH + main1oH + nav1H;
reNav1Pos();
}
$subNav.children().removeClass('active');
... ... @@ -813,6 +816,8 @@ $subNav.on('touchend touchcancel', function(e) {
});
}
}
e.stopPropagation();
});
... ... @@ -836,14 +841,14 @@ $listNav.on('touchstart', 'li', function(e) {
$(this).addClass('bytouch');
}).on('touchend touchcancel', function() {
$listNav.find('li').removeClass('bytouch');
myScroll && myScroll.refresh();
// myScroll && myScroll.refresh();
});
$nav2.on('touchstart', 'li', function(e) {
$(this).addClass('bytouch');
}).on('touchend touchcancel', function() {
$nav2.find('li').removeClass('bytouch');
myScroll && myScroll.refresh();
// myScroll && myScroll.refresh();
});
//底部导航点击
... ... @@ -909,9 +914,9 @@ function postCollect(info) {
}
setTimeout(function() {
myScroll.refresh();
// myScroll.refresh();
scH = $('#scroller').outerHeight();
}, 1000);
}, 500);
searching = false;
},
error: function() {
... ...