Authored by dongjunjie

显示数量

... ... @@ -100,19 +100,30 @@
<div class="productList canEdit" data-dialogid="newProducts">
<ul>
[[if resources.newProducts.data.length > 0]]
[[each resources.newProducts.data as item _index]]
[[if _index < 8]]
<li>
<img src="[[item.src]]">
<div class="productInfo"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div>
</li>
[[/if]]
[[/each]]
[[if resources.hotProducts.data.length > 4 && resources.newProducts.data.length < 8]]
[[each resources.newProducts.data as item _index]]
[[if _index < 4]]
<li>
<img src="[[item.src]]">
<div class="productInfo"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div>
</li>
[[/if]]
[[/each]]
[[else]]
[[each resources.newProducts.data as item _index]]
[[if _index < 8]]
<li>
<img src="[[item.src]]">
<div class="productInfo"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div>
</li>
[[/if]]
[[/each]]
[[/if]]
[[else]]
<li>
<img src="http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png">
<div class="productInfo"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div>
</li>
<li>
<img src="http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png">
<div class="productInfo"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div>
</li>
[[/if]]
<div class="clearfix"></div>
</ul>
... ... @@ -128,21 +139,33 @@
<div class="productList canEdit" data-dialogid="hotProducts">
<ul>
[[if resources.hotProducts.data.length > 0]]
[[each resources.hotProducts.data as item _index]]
[[if _index < 6]]
<li>
<img src="[[item.src]]">
<div class="shadow"></div>
<div class="productInfo"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div>
</li>
[[/if]]
[[/each]]
[[if resources.hotProducts.data.length > 3 && resources.hotProducts.data.length < 6]]
[[each resources.hotProducts.data as item _index]]
[[if _index < 3]]
<li>
<img src="[[item.src]]">
<div class="shadow"></div>
<div class="productInfo"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div>
</li>
[[/if]]
[[/each]]
[[else]]
[[each resources.hotProducts.data as item _index]]
[[if _index < 6]]
<li>
<img src="[[item.src]]">
<div class="shadow"></div>
<div class="productInfo"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div>
</li>
[[/if]]
[[/each]]
[[/if]]
[[else]]
<li>
<img src="http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png">
<div class="shadow"></div>
<div class="productInfo"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div>
</li>
<li>
<img src="http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png">
<div class="shadow"></div>
<div class="productInfo"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div>
</li>
[[/if]]
<div class="clearfix"></div>
</ul>
... ...
... ... @@ -100,19 +100,30 @@
<div class="productList canEdit" data-dialogid="newProducts">
<ul>
[[if resources.newProducts.data.length > 0]]
[[each resources.newProducts.data as item _index]]
[[if _index < 8]]
<li>
<img src="[[item.src]]">
<div class="productInfo"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div>
</li>
[[/if]]
[[/each]]
[[if resources.hotProducts.data.length > 4 && resources.newProducts.data.length < 8]]
[[each resources.newProducts.data as item _index]]
[[if _index < 4]]
<li>
<img src="[[item.src]]">
<div class="productInfo"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div>
</li>
[[/if]]
[[/each]]
[[else]]
[[each resources.newProducts.data as item _index]]
[[if _index < 8]]
<li>
<img src="[[item.src]]">
<div class="productInfo"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div>
</li>
[[/if]]
[[/each]]
[[/if]]
[[else]]
<li>
<img src="http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png">
<div class="productInfo"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div>
</li>
<li>
<img src="http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png">
<div class="productInfo"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div>
</li>
[[/if]]
<div class="clearfix"></div>
</ul>
... ... @@ -128,21 +139,33 @@
<div class="productList canEdit" data-dialogid="hotProducts">
<ul>
[[if resources.hotProducts.data.length > 0]]
[[each resources.hotProducts.data as item _index]]
[[if _index < 6]]
<li>
<img src="[[item.src]]">
<div class="shadow"></div>
<div class="productInfo"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div>
</li>
[[/if]]
[[/each]]
[[if resources.hotProducts.data.length > 3 && resources.hotProducts.data.length < 6]]
[[each resources.hotProducts.data as item _index]]
[[if _index < 3]]
<li>
<img src="[[item.src]]">
<div class="shadow"></div>
<div class="productInfo"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div>
</li>
[[/if]]
[[/each]]
[[else]]
[[each resources.hotProducts.data as item _index]]
[[if _index < 6]]
<li>
<img src="[[item.src]]">
<div class="shadow"></div>
<div class="productInfo"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div>
</li>
[[/if]]
[[/each]]
[[/if]]
[[else]]
<li>
<img src="http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png">
<div class="shadow"></div>
<div class="productInfo"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div>
</li>
<li>
<img src="http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png">
<div class="shadow"></div>
<div class="productInfo"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div>
</li>
[[/if]]
<div class="clearfix"></div>
</ul>
... ...