Authored by 周少峰

outlets product detail

... ... @@ -581,7 +581,9 @@ class WebAction extends Controller_Abstract
else if(empty($uid) && $sysUserSession >= 20) {
$this->setSession('_SYS_USER_SESSION', 0);
}
if ($channel === 'outlets') {
$header['outlets'] = true;
}
$this->_view->assign('headerdata', $header);
}
... ...
... ... @@ -62,6 +62,11 @@ class ItemModel
if (!empty($baseInfo['salesPhrase'])) {
$goodsInfo['saleTip'] = $baseInfo['salesPhrase'];
}
//奥莱商品
if (!empty($baseInfo['isOutlets'])) {
$goodsInfo['isOutlets'] = $baseInfo['isOutlets'] == 'Y' ? 'outlets' : '';
}
// 商品价格
if (isset($baseInfo['productPriceBo'])) {
... ...
... ... @@ -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);
... ...