联系官方销售客服
1835022288
028-61286886
不同序列 循环不同的样式,比较复杂,实在想不出办法了,需求助高手,谢谢了
<section class="slick slick-initialized slick-slider">
<div class="slick-list draggable">
<div class="slick-track">
<div class="slick-slide first">
{list action=module module=news thumb=1 num=1 order=updatetime}
{if $key=1}
如果 KEY=1 就输出循环1
<!-- 循环1 -->
<article class="home_sticky_main">
<a href="{$t.url}" class="thumbs thumbs_l" title="{$t.title}" target="_blank">
<mip-img class="thumb" src="{dr_get_file($t.thumb)}" alt="{$t.title}"></mip-img>
<div class="title">
<h2>{$t.title}</h2>
</div> </a>
<span class="is_category"><a href="{dr_cat_value('news', $t.catid, 'url')}" rel="category tag">{dr_cat_value('news', $t.catid, 'name')}</a></span>
</article>
<!-- 循环1 -->
</div>
</div>
</div>
</section>
<section class="sticky_list">
<ul class="layout_ul">
其余就循环2
<!-- 循环2 -->
<li class="layout_li">
<article class="home_sticky_main">
<a href="{$t.url}" class="thumbs thumbs_r" title="{$t.title}" target="_blank">
<mip-img class="thumb" src="{dr_get_file($t.thumb)}" alt="{$t.title}"></mip-img>
<div class="title">
<h2>{$t.title}</h2>
</div> </a>
<span class="is_category"><a href="{dr_cat_value('news', $t.catid, 'url')}" rel="category tag">{dr_cat_value('news', $t.catid, 'name')}</a></span>
</article>
</li>
<!-- 循环2 -->
{/list}
</ul>
</section>