refactor: 修改header.html
This commit is contained in:
@@ -24,29 +24,26 @@
|
|||||||
{/volist}
|
{/volist}
|
||||||
</ul>
|
</ul>
|
||||||
<!-- 右边子菜单-->
|
<!-- 右边子菜单-->
|
||||||
{volist name="header_categorys" id="vo"}
|
{volist name="header_categorys" id="vo" key="idx"}
|
||||||
{if condition="$key == 0"}
|
<div class="navItem_cyright" {eq name="idx" value="1"}style="display: block;"{else/}style="display: none;"{/eq}>
|
||||||
<div class="navItem_cyright" style="display: block;">
|
{volist name="vo.children" id="vc"}
|
||||||
{else/}
|
<dl class="nav_cyrightit">
|
||||||
<div class="navItem_cyright" style="display: none;">
|
<dt>
|
||||||
{/if}
|
<a href="{:url('product/category', ['id' => $vc.id])}">{$vc.name}</a>
|
||||||
{volist name="vo.children" id="vc"}
|
</dt>
|
||||||
<dl class="nav_cyrightit">
|
{volist name="vc.children" id="vcc"}
|
||||||
<dt>
|
<dd>
|
||||||
<a href="{:url('product/category', ['id' => $vc.id])}">{$vc.name}</a>
|
<a href="{:url('product/category', ['id' => $vcc.id])}">{$vcc.name}</a>
|
||||||
</dt>
|
</dd>
|
||||||
{volist name="vc.children" id="vcc"}
|
{/volist}
|
||||||
<dd>
|
</dl>
|
||||||
<a href="{:url('product/category', ['id' => $vcc.id])}">{$vcc.name}</a>
|
|
||||||
</dd>
|
|
||||||
{/volist}
|
|
||||||
<dl>
|
|
||||||
{/volist}
|
|
||||||
</div>
|
|
||||||
{/volist}
|
{/volist}
|
||||||
|
</div>
|
||||||
|
{/volist}
|
||||||
</ol>
|
</ol>
|
||||||
{/if}
|
</li>
|
||||||
{volist name="header_navigation" id="vo"}
|
{/if}
|
||||||
|
{volist name="header_navigation" id="vo"}
|
||||||
<li class="navItem">
|
<li class="navItem">
|
||||||
<a href="{$vo.link}" target="{$vo.blank==1?'_blank':'_self'}">{$vo.name}</a>
|
<a href="{$vo.link}" target="{$vo.blank==1?'_blank':'_self'}">{$vo.name}</a>
|
||||||
{if condition="!empty($vo.children)"}
|
{if condition="!empty($vo.children)"}
|
||||||
|
|||||||
Reference in New Issue
Block a user