联系官方销售客服
1835022288
028-61286886
<div class="haiyan4Box otherBox custom-card hy_bj" id="otherBox">
<span class="otherBoxTab" id="otherBoxTab">
{list action=category module=z id=1,2,3,4,5,6,7,8,9,10,11,12,13 return=l}
<div {if $key_l==0}class="hy_active" {else}class="" {/if}>{$l.name}</div>
{/list}
</span>
<div class="otherBoxContent">
{list action=category module=z id=1 return=c1}
<div class="otherBoxContentItem {if $key_l==0}style="display:block;" {else}style="" {/if}">
{php $pidname=$ci->get_cache('module-'.SITE_ID.'-z', 'category', $t[catid], 'pid');}
<a href="{$t.url}" title="{$t.title}" target="_blank" class="otherBoxContentLeft">
<img class="smallPic" src="{dr_thumb($t.thumb, 184, 126)}" width="184px" height="126px" alt="{$t.title}">
<div class="otherBoxContentBar" id="otherBoxContentBar">{$t.title}</div>
</a>
</div>
{/list}
</div>
</div>
tab循环 按理说需要双list循环,但是我不会写,,我上面的代码意思是:上面的list循环的是二级栏目 下面的list循环的是二级栏目下的文章