Authored by yyqing

修复焦点图重复初始化问题

... ... @@ -79,9 +79,8 @@ $nav.on('touchend touchcancel', function(e) {
$loading.addClass('hide');
$noMore.addClass('hide');
loadMore($content, $.extend({
isTab: true
}, state[curType]));
state[curType].isTab = true;
loadMore($content, state[curType]);
} else {
//重置当前Tab的load-more
... ...
... ... @@ -30,7 +30,6 @@ if ($loadMoreInfo.length > 0) {
//初始化swiper
function initSwiper(typeId) {
console.log(typeId);
if (typeof typeId === undefined) {
return;
}
... ... @@ -219,10 +218,12 @@ function loadMore($container, opt, url) {
opt.page++;
searching = false;
delete opt.isTab;
},
error: function() {
tip.show('网络断开连接了~');
searching = false;
delete opt.isTab;
}
});
}
... ...