...
|
...
|
@@ -8,8 +8,6 @@ class ItemController extends WebAction |
|
|
{
|
|
|
public function indexAction()
|
|
|
{
|
|
|
$this->setWebNavHeader();
|
|
|
|
|
|
$productId = $this->param('productId','');
|
|
|
if (!is_numeric($productId)) {
|
|
|
$this->error();
|
...
|
...
|
@@ -53,12 +51,23 @@ class ItemController extends WebAction |
|
|
array('fullSortName'=> implode('-', $sortNames)),
|
|
|
$productInfo['statGoodsInfo']),
|
|
|
);
|
|
|
|
|
|
//设置头部
|
|
|
$this->setWebNavHeader($productInfo['goodsInfo']['isOutlets']);
|
|
|
//导航
|
|
|
$data['detail']['pathNav'] = array_merge(
|
|
|
array(HomeModel::getHomeChannelNav()),
|
|
|
if ($productInfo['goodsInfo']['isOutlets'] === 'outlets') {
|
|
|
$data['detail']['pathNav'] = array(
|
|
|
array('href' => '/', 'name' => 'OUTLETS', 'pathTitle' => 'OUTLETS'),// TODO 首页地址
|
|
|
//array('href' => '/', 'name' => 'OUTLETS', 'pathTitle' => 'OUTLETS'), TODO 奥莱频道
|
|
|
array('href' => '/', 'name' => $productInfo['goodsInfo']['name'], 'pathTitle' => $productInfo['goodsInfo']['name']),
|
|
|
);
|
|
|
} else {
|
|
|
$data['detail']['pathNav'] = array_merge(
|
|
|
array(HomeModel::getHomeChannelNav()),
|
|
|
$navs,
|
|
|
array(array('name' => $productInfo['goodsInfo']['name']))
|
|
|
);
|
|
|
}
|
|
|
$data['detail']['latestWalk'] = 5;
|
|
|
$data['detail'] += $productInfo + $sizeInfo;
|
|
|
$this->_view->display('index', $data);
|
...
|
...
|
|