代码如下:
{eyou:notempty name='$eyou.field.has_children' /}
2<!-- 判断当前栏目是否有子栏目 --> 3<div class="intereste-area"> 4 <p class="title">栏目分类</p> 5 <div class="intereste-list"> 6 {eyou:channel type="first" row='10' currentstyle="hover"} 7 <a href="{$field.typeurl}" title="{$field.typename}" class="{$field.currentstyle}">{$field.typename}</a> 8 {/eyou:channel} 9 </div> 10</div> 11<!-- 判断当前栏目是否有子栏目 end --> 12{/eyou:notempty}