35 lines
1.8 KiB
HTML
35 lines
1.8 KiB
HTML
<div class="pull-banner w100 wap-show"><img src="{$categoryPath[0]['src_mobile'] ?: ''}" alt="{$categoryPath[0]['title'] ?? ''}"></div>
|
|
|
|
<!-- 当前位置&二级导航 -->
|
|
<div class="position-nav-bg pull-margin bg-col-f5 {if $category['parent_id'] == 8} position-nav-bg01 {/if}"><!-- position-nav-bg01 -->
|
|
<div class="position-sub-nav {if $category['parent_id'] == 8} position-sub-nav01 {/if} w1360 flex">
|
|
<!-- 当前位置 -->
|
|
<div class="position flex pc-show">
|
|
<div class="img"><img src="__STATIC__/web/images/icon/icon-position.png" alt="当前位置"></span></div>
|
|
<div class="txt color-blue flex">
|
|
<a href="/">首页</a>
|
|
{foreach $categoryPath as $path}
|
|
{if !empty($path['url'])}
|
|
<a href="{$path['url']}">{$path['title'] ?? ''}</a>
|
|
{else /}
|
|
<a href="{$path['route'] ?? 'javascript:;'}">{$path['title'] ?? ''}</a>
|
|
{/if}
|
|
{/foreach}
|
|
{if !in_array($category['id'],[33,34,39,40,41]) && $Request.Action != 'index'}
|
|
<a href="{$category['route'] ?? 'javascript:;'}">{$category['title'] ?? ''}</a>
|
|
{elseif $Request.Action == 'index'}
|
|
{$category['title'] ?? ''}
|
|
{/if}
|
|
{$Request.Action == 'detail' ? ($item.title ?? '') : ''}
|
|
</div>
|
|
</div>
|
|
<!-- 二级导航 -->
|
|
<div class="sub-nav-bg {if $category['parent_id'] == 8} sub-nav-bg-01 {/if}">
|
|
<div class="sub-nav {if $category['parent_id'] == 8} sub-nav-01 {/if}"><!-- sub-nav-01 -->
|
|
{foreach $childrenMenu as $childrenMenuItem}
|
|
<a href="{:getUri($childrenMenuItem)}" {if $category["id"] ==$childrenMenuItem['id'] || $category["parent_id"] ==$childrenMenuItem['id'] }class="active"{/if}>{$childrenMenuItem['title']}</a>
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |