Authored by yyq

outlets 头部样式

@@ -74,13 +74,17 @@ @@ -74,13 +74,17 @@
74 <div class="header-navcontent"> 74 <div class="header-navcontent">
75 <ul class="first-nav-list float-left"> 75 <ul class="first-nav-list float-left">
76 {{# navbars}} 76 {{# navbars}}
77 - <li class="first-nav-item {{classname}}"> 77 + <li class="first-nav-item {{classname}}" {{#if showIcon}} style="background: url({{icon}}) no-repeat center center"{{/if}}>
  78 + {{#if showIcon}}
  79 + <a href="{{link}}" class="menu-ico"></a>
  80 + {{^}}
78 <h3 class="name-cn"> 81 <h3 class="name-cn">
79 <a href="{{link}}">{{name_cn}}</a> 82 <a href="{{link}}">{{name_cn}}</a>
80 </h3> 83 </h3>
81 <h3 class="name-en"> 84 <h3 class="name-en">
82 <a href="{{link}}">{{name_en}}</a> 85 <a href="{{link}}">{{name_en}}</a>
83 </h3> 86 </h3>
  87 + {{/if}}
84 <div class='sub-nav-wrapper'> 88 <div class='sub-nav-wrapper'>
85 <ul class="sub-nav-list"> 89 <ul class="sub-nav-list">
86 {{# subnav}} 90 {{# subnav}}
@@ -389,6 +389,12 @@ @@ -389,6 +389,12 @@
389 .first-nav-item { 389 .first-nav-item {
390 float: left; 390 float: left;
391 padding: 8px 23px 0; 391 padding: 8px 23px 0;
  392 +
  393 + .menu-ico {
  394 + width: 84px;
  395 + height: 32px;
  396 + display: block;
  397 + }
392 } 398 }
393 399
394 .all a, 400 .all a,
@@ -464,6 +470,9 @@ @@ -464,6 +470,9 @@
464 .gobuylifestyle { 470 .gobuylifestyle {
465 background: url(/header/cart/lifestyle.png) no-repeat; 471 background: url(/header/cart/lifestyle.png) no-repeat;
466 } 472 }
  473 + .gobuyoutlets {
  474 + background: url(/header/cart/outlets.png) no-repeat;
  475 + }
467 .searchcatelifestyle { 476 .searchcatelifestyle {
468 .searchinput { 477 .searchinput {
469 border: 1px solid #5e4b3c !important 478 border: 1px solid #5e4b3c !important
@@ -1152,7 +1161,7 @@ @@ -1152,7 +1161,7 @@
1152 background: none; 1161 background: none;
1153 } 1162 }
1154 1163
1155 - .first-nav-item > h3{ 1164 + .first-nav-item > h3 {
1156 display: none; 1165 display: none;
1157 } 1166 }
1158 1167
@@ -91,6 +91,11 @@ class HomeModel @@ -91,6 +91,11 @@ class HomeModel
91 'is_new' => $val['is_new'] == 'Y' ? true : false, 91 'is_new' => $val['is_new'] == 'Y' ? true : false,
92 // 'subnav' => array() 92 // 'subnav' => array()
93 ); 93 );
  94 +
  95 + if (strtolower($val['sort_name_en']) === 'outlets') {
  96 + $item['showIcon'] = true;
  97 + };
  98 +
94 $indexSub = 0; 99 $indexSub = 0;
95 foreach ($val['sub'] as $sub) { // 二级 100 foreach ($val['sub'] as $sub) { // 二级
96 $subnav = array( 101 $subnav = array(