- 首页
<{foreach from=$data item=parent key=parentId}>
- <{$parent.label}> <{if $parent.sub}>
  <{if $setting.maxdropdown1_CatDepth == '3'}>
  <{foreach from=$parent.sub item=child key=childId}> <{if $child.sub }>
  - <{$child.label}>
    <{foreach from=$child.sub item=gChild key=gChildId}>
    - <{$gChild.label}>
    <{/foreach}>
  <{else}>
  - <{$child.label}>
  <{/if}> <{/foreach}>
  <{elseif $setting.maxdropdown1_CatDepth == '2'}>
  <{counter start=0 assign="result" print=false }> <{foreach from=$parent.sub item=child key=childId}>
  - class="rt"<{/if}>><{$child.label}>
  <{counter assign="result" print=false}> <{/foreach}>
  <{/if}>
  畅销排行 最新到货 立即抢购
  <{/if}>
<{/foreach}>