Authored by yyq

merge feature/outlets

@@ -581,7 +581,9 @@ class WebAction extends Controller_Abstract @@ -581,7 +581,9 @@ class WebAction extends Controller_Abstract
581 else if(empty($uid) && $sysUserSession >= 20) { 581 else if(empty($uid) && $sysUserSession >= 20) {
582 $this->setSession('_SYS_USER_SESSION', 0); 582 $this->setSession('_SYS_USER_SESSION', 0);
583 } 583 }
584 - 584 + if ($channel === 'outlets') {
  585 + $header['outlets'] = true;
  586 + }
585 $this->_view->assign('headerdata', $header); 587 $this->_view->assign('headerdata', $header);
586 } 588 }
587 589
1 {{#headerdata}} 1 {{#headerdata}}
2 -<div class="yoho-header"> 2 +<div class="yoho-header {{#if outlets}} outlets{{/if}}">
3 <div class="header-topwrapper clearfix"> 3 <div class="header-topwrapper clearfix">
4 <div class="header-top"> 4 <div class="header-top">
5 <div class="leftpart float-left"> 5 <div class="leftpart float-left">
@@ -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}}">  
78 - <h3 class="name-cn">  
79 - <a href="{{link}}">{{name_cn}}</a>  
80 - </h3>  
81 - <h3 class="name-en">  
82 - <a href="{{link}}">{{name_en}}</a>  
83 - </h3> 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 + {{^}}
  81 + <h3 class="name-cn">
  82 + <a href="{{link}}">{{name_cn}}</a>
  83 + </h3>
  84 + <h3 class="name-en">
  85 + <a href="{{link}}">{{name_en}}</a>
  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}}
@@ -125,6 +129,7 @@ @@ -125,6 +129,7 @@
125 </li> 129 </li>
126 {{/ navbars}} 130 {{/ navbars}}
127 </ul> 131 </ul>
  132 + <div class="outlets-logo"></div>
128 <div class="icon-logo"><a href="http://www.yohobuy.com/" class="main-link"></a></div> 133 <div class="icon-logo"><a href="http://www.yohobuy.com/" class="main-link"></a></div>
129 <div class="header-tool float-right"> 134 <div class="header-tool float-right">
130 <div class="search float-left {{searchcate}}" > 135 <div class="search float-left {{searchcate}}" >

2.73 KB | W: | H:

2.84 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
@@ -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
@@ -524,6 +533,10 @@ @@ -524,6 +533,10 @@
524 } 533 }
525 } 534 }
526 535
  536 + .outlets > .sub-nav-wrapper {
  537 + display: block !important;
  538 + }
  539 +
527 .name-cn { 540 .name-cn {
528 text-align: center; 541 text-align: center;
529 line-height: 16px !important; 542 line-height: 16px !important;
@@ -743,6 +756,16 @@ @@ -743,6 +756,16 @@
743 margin-top: -2px; 756 margin-top: -2px;
744 } 757 }
745 758
  759 + .outlets-logo {
  760 + background: resolve(header/outlets.png) no-repeat center center;
  761 + width: 200px;
  762 + height: 34px;
  763 + left: 42%;
  764 + margin-top: 28px;
  765 + position: absolute;
  766 + display: none;
  767 + }
  768 +
746 .icon-logo { 769 .icon-logo {
747 background: resolve(/header/logo.png) no-repeat center center; 770 background: resolve(/header/logo.png) no-repeat center center;
748 width: 182px; 771 width: 182px;
@@ -1116,6 +1139,62 @@ @@ -1116,6 +1139,62 @@
1116 } 1139 }
1117 } 1140 }
1118 1141
  1142 +.yoho-header.outlets {
  1143 + .header-navwrapper {
  1144 + background-color: #3a3a3a;
  1145 +
  1146 + .sub-nav-wrapper {
  1147 + background-color: #e6e6e6;
  1148 + margin-top: 37px;
  1149 + }
  1150 +
  1151 + .third-nav-wrapper {
  1152 + border-top: 0;
  1153 + }
  1154 + }
  1155 +
  1156 + .outlets-logo {
  1157 + display: block;
  1158 + }
  1159 +
  1160 + .icon-logo {
  1161 + display: none;
  1162 + }
  1163 +
  1164 + .first-nav-item.cure {
  1165 + background: none;
  1166 + }
  1167 +
  1168 + .first-nav-item > h3 {
  1169 + display: none;
  1170 + }
  1171 +
  1172 + .header-tool > .search {
  1173 + display: none;
  1174 + }
  1175 +
  1176 + .sub-nav-list {
  1177 + padding-left: 15%;
  1178 +
  1179 + .sub-nav-item {
  1180 + width: 14%;
  1181 + text-align: center;
  1182 +
  1183 + & > a {
  1184 + color: #222!important;
  1185 + }
  1186 + }
  1187 +
  1188 + .sub-nav-item:hover a {
  1189 + border-color: #555;
  1190 + }
  1191 +
  1192 + .third-nav {
  1193 + text-align: left;
  1194 + }
  1195 + }
  1196 +}
  1197 +
1119 .simple-header { 1198 .simple-header {
1120 height: 66px; 1199 height: 66px;
1121 margin: 0 0 20px 0; 1200 margin: 0 0 20px 0;
@@ -91,6 +91,13 @@ class HomeModel @@ -91,6 +91,13 @@ 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 + // 奥莱头部显示配置图标
  96 + if (strtolower($val['sort_name_en']) === 'outlets' &&
  97 + $channel !== 'outlets') {
  98 + $item['showIcon'] = true;
  99 + };
  100 +
94 $indexSub = 0; 101 $indexSub = 0;
95 foreach ($val['sub'] as $sub) { // 二级 102 foreach ($val['sub'] as $sub) { // 二级
96 $subnav = array( 103 $subnav = array(
@@ -63,6 +63,11 @@ class ItemModel @@ -63,6 +63,11 @@ class ItemModel
63 if (!empty($baseInfo['salesPhrase'])) { 63 if (!empty($baseInfo['salesPhrase'])) {
64 $goodsInfo['saleTip'] = $baseInfo['salesPhrase']; 64 $goodsInfo['saleTip'] = $baseInfo['salesPhrase'];
65 } 65 }
  66 +
  67 + //奥莱商品
  68 + if (!empty($baseInfo['isOutlets'])) {
  69 + $goodsInfo['isOutlets'] = $baseInfo['isOutlets'] == 'Y' ? 'outlets' : '';
  70 + }
66 71
67 // 商品价格 72 // 商品价格
68 if (isset($baseInfo['productPriceBo'])) { 73 if (isset($baseInfo['productPriceBo'])) {
@@ -8,8 +8,6 @@ class ItemController extends WebAction @@ -8,8 +8,6 @@ class ItemController extends WebAction
8 { 8 {
9 public function indexAction() 9 public function indexAction()
10 { 10 {
11 - $this->setWebNavHeader();  
12 -  
13 $productId = $this->param('productId',''); 11 $productId = $this->param('productId','');
14 if (!is_numeric($productId)) { 12 if (!is_numeric($productId)) {
15 $this->error(); 13 $this->error();
@@ -53,12 +51,23 @@ class ItemController extends WebAction @@ -53,12 +51,23 @@ class ItemController extends WebAction
53 array('fullSortName'=> implode('-', $sortNames)), 51 array('fullSortName'=> implode('-', $sortNames)),
54 $productInfo['statGoodsInfo']), 52 $productInfo['statGoodsInfo']),
55 ); 53 );
  54 +
  55 + //设置头部
  56 + $this->setWebNavHeader($productInfo['goodsInfo']['isOutlets']);
56 //导航 57 //导航
57 - $data['detail']['pathNav'] = array_merge(  
58 - array(HomeModel::getHomeChannelNav()), 58 + if ($productInfo['goodsInfo']['isOutlets'] === 'outlets') {
  59 + $data['detail']['pathNav'] = array(
  60 + array('href' => '/', 'name' => 'OUTLETS', 'pathTitle' => 'OUTLETS'),// TODO 首页地址
  61 + //array('href' => '/', 'name' => 'OUTLETS', 'pathTitle' => 'OUTLETS'), TODO 奥莱频道
  62 + array('href' => '/', 'name' => $productInfo['goodsInfo']['name'], 'pathTitle' => $productInfo['goodsInfo']['name']),
  63 + );
  64 + } else {
  65 + $data['detail']['pathNav'] = array_merge(
  66 + array(HomeModel::getHomeChannelNav()),
59 $navs, 67 $navs,
60 array(array('name' => $productInfo['goodsInfo']['name'])) 68 array(array('name' => $productInfo['goodsInfo']['name']))
61 ); 69 );
  70 + }
62 $data['detail']['latestWalk'] = 5; 71 $data['detail']['latestWalk'] = 5;
63 $data['detail'] += $productInfo + $sizeInfo; 72 $data['detail'] += $productInfo + $sizeInfo;
64 $this->_view->display('index', $data); 73 $this->_view->display('index', $data);