Authored by yyq

outlets 头部样式

... ... @@ -74,13 +74,17 @@
<div class="header-navcontent">
<ul class="first-nav-list float-left">
{{# navbars}}
<li class="first-nav-item {{classname}}">
<h3 class="name-cn">
<a href="{{link}}">{{name_cn}}</a>
</h3>
<h3 class="name-en">
<a href="{{link}}">{{name_en}}</a>
</h3>
<li class="first-nav-item {{classname}}" {{#if showIcon}} style="background: url({{icon}}) no-repeat center center"{{/if}}>
{{#if showIcon}}
<a href="{{link}}" class="menu-ico"></a>
{{^}}
<h3 class="name-cn">
<a href="{{link}}">{{name_cn}}</a>
</h3>
<h3 class="name-en">
<a href="{{link}}">{{name_en}}</a>
</h3>
{{/if}}
<div class='sub-nav-wrapper'>
<ul class="sub-nav-list">
{{# subnav}}
... ...
... ... @@ -389,6 +389,12 @@
.first-nav-item {
float: left;
padding: 8px 23px 0;
.menu-ico {
width: 84px;
height: 32px;
display: block;
}
}
.all a,
... ... @@ -464,6 +470,9 @@
.gobuylifestyle {
background: url(/header/cart/lifestyle.png) no-repeat;
}
.gobuyoutlets {
background: url(/header/cart/outlets.png) no-repeat;
}
.searchcatelifestyle {
.searchinput {
border: 1px solid #5e4b3c !important
... ... @@ -1152,7 +1161,7 @@
background: none;
}
.first-nav-item > h3{
.first-nav-item > h3 {
display: none;
}
... ...
... ... @@ -91,6 +91,11 @@ class HomeModel
'is_new' => $val['is_new'] == 'Y' ? true : false,
// 'subnav' => array()
);
if (strtolower($val['sort_name_en']) === 'outlets') {
$item['showIcon'] = true;
};
$indexSub = 0;
foreach ($val['sub'] as $sub) { // 二级
$subnav = array(
... ...