|
@@ -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);
|