Authored by htoooth

fix activity hide

... ... @@ -2,7 +2,7 @@
<div class="row activity-wrapper clearfix">
<span class="title pull-left">&nbsp;&nbsp;销: </span>
{{#if_cond activity.length '>=' 3}}
{{#if_cond activity.length '>' 3}}
<div class="activity-title"><span>展开全部促销</span> <i class="iconfont index">&#xe610;</i> </div>
{{/if_cond}}
... ... @@ -11,7 +11,7 @@
{{#each activity}}
<li class="promotion-item">
<span class="ac-type">{{type}}</span>
<span class="ac-des {{#if_cond ../activity.length '>=' 3}}small{{/if_cond}}">
<span class="ac-des {{#if_cond ../activity.length '>' 3}}small{{/if_cond}}">
{{#if url}}
<a target="_blank" href="{{url}}">{{des}}</a>
{{^}}
... ... @@ -26,9 +26,9 @@
<div class="pull-left">
<ul class="activity">
{{#each activity}}
<li class="promotion-item {{#if_cond @index '>=' 3}}hide{{/if_cond}}">
<li class="promotion-item {{#if_cond @index '>' 3}}hide{{/if_cond}}">
<span class="ac-type">{{type}}</span>
<span class="ac-des {{#if_cond ../activity.length '>=' 3}}small{{/if_cond}}">
<span class="ac-des {{#if_cond ../activity.length '>' 3}}small{{/if_cond}}">
{{#if url}}
<a target="_blank" href="{{url}}">{{des}}</a>
{{^}}
... ...