...
|
...
|
@@ -20,12 +20,12 @@ class DetailController extends AbstractAction |
|
|
public function indexAction()
|
|
|
{
|
|
|
$productId = $this->param('productId');
|
|
|
// $productId = 356648;
|
|
|
$productId = 356648;
|
|
|
if (!is_numeric($productId)) {
|
|
|
$this->error();
|
|
|
}
|
|
|
$goodsId = $this->param('goodsId');
|
|
|
// $goodsId = 455366;
|
|
|
$goodsId = 455366;
|
|
|
if (!is_numeric($goodsId)) {
|
|
|
$this->error();
|
|
|
}
|
...
|
...
|
@@ -48,7 +48,9 @@ class DetailController extends AbstractAction |
|
|
if (isset($data['goodsName'])) {
|
|
|
$this->setTitle($data['goodsName']);
|
|
|
}
|
|
|
$this->setNavHeader('商品详情');
|
|
|
if (!$this->isApp()){
|
|
|
$this->setNavHeader('商品详情');
|
|
|
}
|
|
|
// 渲染模板
|
|
|
$this->_view->display('index', $data);
|
|
|
}
|
...
|
...
|
|