Authored by 王洪广

fix nav problem

... ... @@ -15,11 +15,11 @@ lazyLoad($('img.lazy'));
if ($el.length > 0) {
$el.each(function(){
Countdown.Countdown({
$el.each(function() {
Countdown.countdown({
el: $(this)
})
})
});
});
}
if ($('.swiper-container .swiper-slide').length > 1) {
... ... @@ -71,16 +71,16 @@ if ($('#index_nav').length > 0) {
}).goto($('#index_nav').find('.active').index());
}
if ($('#list-nav').length > 0) {
if ($('.outlet-category-nav').length > 0) {
iscroll({
el: '#list-nav'
el: '.outlet-category-nav'
}).goto(0);
}
if ($('.back-ground-white').length > 10) {
$('.more-activity').show();
$('.back-ground-white').each(function(index, e) {
if(index > 9) {
if (index > 9) {
$(e).hide();
}
});
... ... @@ -89,7 +89,7 @@ if ($('.back-ground-white').length > 10) {
$('.more-activity').click(function() {
$('.more-activity').hide();
$('.back-ground-white').each(function(index, e) {
if(index > 9) {
if (index > 9) {
$(e).show();
}
});
... ...
... ... @@ -376,4 +376,4 @@ $.extend(Countdown.prototype, {
return this;
}
});
exports.Countdown = Countdown;
exports.countdown = Countdown;
... ...