所有商品分类

{foreach:items=Api::run('getCategoryListTop') item=$first }

{$first['name']}

{foreach:items=Api::run('getCategoryByParentid',array('#parent_id#',$first['id'])) item=$second}
{$second['name']}
{foreach:items=Api::run('getCategoryByParentid',array('#parent_id#',$second['id'])) item=$third} {if:$key!=0} | {/if}{$third['name']} {/foreach}
{/query}
{/foreach}