Authored by 王洪广

fix nav problem

@@ -15,11 +15,11 @@ lazyLoad($('img.lazy')); @@ -15,11 +15,11 @@ lazyLoad($('img.lazy'));
15 15
16 16
17 if ($el.length > 0) { 17 if ($el.length > 0) {
18 - $el.each(function(){  
19 - Countdown.Countdown({ 18 + $el.each(function() {
  19 + Countdown.countdown({
20 el: $(this) 20 el: $(this)
21 - })  
22 - }) 21 + });
  22 + });
23 } 23 }
24 24
25 if ($('.swiper-container .swiper-slide').length > 1) { 25 if ($('.swiper-container .swiper-slide').length > 1) {
@@ -71,16 +71,16 @@ if ($('#index_nav').length > 0) { @@ -71,16 +71,16 @@ if ($('#index_nav').length > 0) {
71 }).goto($('#index_nav').find('.active').index()); 71 }).goto($('#index_nav').find('.active').index());
72 } 72 }
73 73
74 -if ($('#list-nav').length > 0) { 74 +if ($('.outlet-category-nav').length > 0) {
75 iscroll({ 75 iscroll({
76 - el: '#list-nav' 76 + el: '.outlet-category-nav'
77 }).goto(0); 77 }).goto(0);
78 } 78 }
79 79
80 if ($('.back-ground-white').length > 10) { 80 if ($('.back-ground-white').length > 10) {
81 $('.more-activity').show(); 81 $('.more-activity').show();
82 $('.back-ground-white').each(function(index, e) { 82 $('.back-ground-white').each(function(index, e) {
83 - if(index > 9) { 83 + if (index > 9) {
84 $(e).hide(); 84 $(e).hide();
85 } 85 }
86 }); 86 });
@@ -89,7 +89,7 @@ if ($('.back-ground-white').length > 10) { @@ -89,7 +89,7 @@ if ($('.back-ground-white').length > 10) {
89 $('.more-activity').click(function() { 89 $('.more-activity').click(function() {
90 $('.more-activity').hide(); 90 $('.more-activity').hide();
91 $('.back-ground-white').each(function(index, e) { 91 $('.back-ground-white').each(function(index, e) {
92 - if(index > 9) { 92 + if (index > 9) {
93 $(e).show(); 93 $(e).show();
94 } 94 }
95 }); 95 });
@@ -376,4 +376,4 @@ $.extend(Countdown.prototype, { @@ -376,4 +376,4 @@ $.extend(Countdown.prototype, {
376 return this; 376 return this;
377 } 377 }
378 }); 378 });
379 -exports.Countdown = Countdown; 379 +exports.countdown = Countdown;