Authored by runner

更多活动update

@@ -11,6 +11,4 @@ @@ -11,6 +11,4 @@
11 </a> 11 </a>
12 {{/data}} 12 {{/data}}
13 </div> 13 </div>
14 -{{#if showMore}}  
15 - <div class="more-activity">更多精彩活动</div>  
16 -{{/if}} 14 +<div class="more-activity ">更多精彩活动</div>
@@ -72,3 +72,21 @@ if ($('#list-nav').length > 0) { @@ -72,3 +72,21 @@ if ($('#list-nav').length > 0) {
72 el: '#list-nav' 72 el: '#list-nav'
73 }).goto(0); 73 }).goto(0);
74 } 74 }
  75 +
  76 +if ($('.back-ground-white').length > 10) {
  77 + $('.more-activity').show();
  78 + $('.back-ground-white').each(function(index, e) {
  79 + if(index > 9) {
  80 + e.hide();
  81 + }
  82 + });
  83 +}
  84 +
  85 +$('.more-activity').click(function() {
  86 + $('.more-activity').hide();
  87 + $('.back-ground-white').each(function(index, e) {
  88 + if(index > 9) {
  89 + e.show();
  90 + }
  91 + });
  92 +});