联系官方销售客服
QQ1835022299
028-61286886
{list action=category module=share pid=0}
{if $t.child}
{list action=category module=share pid=$t.id return=t2}
{/list}
{else}
{/if}
{/list}
这是正常的:有 二级的显示二级 没有 二级的则输出:
想改造下判断三级:因为二级有 二种样式有三级的一种样式 没三级的一种样式
{list action=category module=share pid=0}
{if $t.child}
--有三级开始--
{list action=category module=share pid=$t.id return=t2}
{list action=category module=share pid=$t.id return=t3}
{/list}
{/list}
--有三级结束--
---只有 二级开始---
{list action=category module=share pid=$t.id return=t2}
{/list}
---只有 二级结束--
{else}
----只有一级开始--
----只有一级结束--
{/if}
{/list}
{list action=category module=share pid=$t.id return=t2} {if $t2.child}- {$t2.name}
{else}
- {$t2.name}
{/if}
{/list}
{list action=category module=share pid=$t2.id return=t3}- {$t3.name}
{/list}