Authored by 周少峰

outlets product detail

@@ -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
@@ -62,6 +62,11 @@ class ItemModel @@ -62,6 +62,11 @@ class ItemModel
62 if (!empty($baseInfo['salesPhrase'])) { 62 if (!empty($baseInfo['salesPhrase'])) {
63 $goodsInfo['saleTip'] = $baseInfo['salesPhrase']; 63 $goodsInfo['saleTip'] = $baseInfo['salesPhrase'];
64 } 64 }
  65 +
  66 + //奥莱商品
  67 + if (!empty($baseInfo['isOutlets'])) {
  68 + $goodsInfo['isOutlets'] = $baseInfo['isOutlets'] == 'Y' ? 'outlets' : '';
  69 + }
65 70
66 // 商品价格 71 // 商品价格
67 if (isset($baseInfo['productPriceBo'])) { 72 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);