|
|
<?php
|
|
|
|
|
|
use Action\AbstractAction;
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -6,6 +7,7 @@ use Action\AbstractAction; |
|
|
*/
|
|
|
class DetailController extends AbstractAction
|
|
|
{
|
|
|
|
|
|
/**
|
|
|
* 商品详情
|
|
|
*
|
...
|
...
|
@@ -13,11 +15,11 @@ class DetailController extends AbstractAction |
|
|
* @param int goodsId
|
|
|
*/
|
|
|
public function indexAction()
|
|
|
{
|
|
|
{
|
|
|
$productId = $this->param('productId', 123);
|
|
|
$goodsId = $this->param('goodsId', 3241);
|
|
|
$uid = $this->getUid();
|
|
|
|
|
|
|
|
|
$data = \Product\DetailModel::getBaseInfo($productId, $goodsId, $uid);
|
|
|
$data['goodsDetailPage'] = true;
|
|
|
|
...
|
...
|
@@ -25,7 +27,7 @@ class DetailController extends AbstractAction |
|
|
$this->setTitle($data['goodsName']);
|
|
|
}
|
|
|
$this->setNavHeader('商品详情');
|
|
|
|
|
|
|
|
|
// $data = array (
|
|
|
// 'goodsDetailPage' => true,
|
|
|
// 'pageHeader' => array (
|
...
|
...
|
@@ -252,109 +254,105 @@ class DetailController extends AbstractAction |
|
|
// )
|
|
|
//
|
|
|
// );
|
|
|
|
|
|
// 渲染模板
|
|
|
$this->_view->display('index', $data);
|
|
|
}
|
|
|
|
|
|
public function commentsAction(){
|
|
|
$data = array(
|
|
|
|
|
|
'goodsCommentsPage' =>true,
|
|
|
'pageHeader' => array (
|
|
|
'navBack' => 'sss ',
|
|
|
// 'navHome' => 'sss ',
|
|
|
'navTitle' => '购买评价(6)'
|
|
|
),
|
|
|
'pageFooter' => true,
|
|
|
'comments'=>array(
|
|
|
'list' =>array(
|
|
|
array(
|
|
|
'userName'=>'Lynnic',
|
|
|
'desc'=>'购买了白色Mate7',
|
|
|
'content'=>'活动时买的,挺超值。上身效果也不错。质量
|
|
|
很好,买送人的,很满意。而且物流相当给...',
|
|
|
'time'=>'2014-08-12 10:24:26'
|
|
|
),
|
|
|
array(
|
|
|
'userName'=>'Lynnic',
|
|
|
'desc'=>'购买了白色Mate7',
|
|
|
'content'=>'活动时买的,挺超值。上身效果也不错。质量
|
|
|
public function commentsAction()
|
|
|
{
|
|
|
$data = array(
|
|
|
'goodsCommentsPage' => true,
|
|
|
'pageHeader' => array(
|
|
|
'navBack' => 'sss ',
|
|
|
// 'navHome' => 'sss ',
|
|
|
'navTitle' => '购买评价(6)'
|
|
|
),
|
|
|
'pageFooter' => true,
|
|
|
'comments' => array(
|
|
|
'list' => array(
|
|
|
array(
|
|
|
'userName' => 'Lynnic',
|
|
|
'desc' => '购买了白色Mate7',
|
|
|
'content' => '活动时买的,挺超值。上身效果也不错。质量
|
|
|
很好,买送人的,很满意。而且物流相当给...',
|
|
|
'time'=>'2014-08-12 10:24:26'
|
|
|
),
|
|
|
array(
|
|
|
'userName'=>'Lynnic',
|
|
|
'desc'=>'购买了白色Mate7',
|
|
|
'content'=>'活动时买的,挺超值。上身效果也不错。质量
|
|
|
'time' => '2014-08-12 10:24:26'
|
|
|
),
|
|
|
array(
|
|
|
'userName' => 'Lynnic',
|
|
|
'desc' => '购买了白色Mate7',
|
|
|
'content' => '活动时买的,挺超值。上身效果也不错。质量
|
|
|
很好,买送人的,很满意。而且物流相当给...',
|
|
|
'time'=>'2014-08-12 10:24:26'
|
|
|
)
|
|
|
|
|
|
)
|
|
|
'time' => '2014-08-12 10:24:26'
|
|
|
),
|
|
|
);
|
|
|
|
|
|
$this->_view->assign('title', '购买评价');
|
|
|
//$this->_view->display('brand', compact('brands'));
|
|
|
|
|
|
// 渲染模板
|
|
|
$this->_view->display('comments', $data);
|
|
|
}
|
|
|
array(
|
|
|
'userName' => 'Lynnic',
|
|
|
'desc' => '购买了白色Mate7',
|
|
|
'content' => '活动时买的,挺超值。上身效果也不错。质量
|
|
|
很好,买送人的,很满意。而且物流相当给...',
|
|
|
'time' => '2014-08-12 10:24:26'
|
|
|
)
|
|
|
)
|
|
|
),
|
|
|
);
|
|
|
|
|
|
$this->_view->assign('title', '购买评价');
|
|
|
//$this->_view->display('brand', compact('brands'));
|
|
|
// 渲染模板
|
|
|
$this->_view->display('comments', $data);
|
|
|
}
|
|
|
|
|
|
public function consultsAction(){
|
|
|
$data = array(
|
|
|
'goodsConsultsPage' =>true,
|
|
|
'pageHeader' => array (
|
|
|
'navBack' => 'sss ',
|
|
|
// 'navHome' => 'sss ',
|
|
|
'navTitle' => '购买咨询(6)'
|
|
|
),
|
|
|
'pageFooter' => true,
|
|
|
'consults'=>array(
|
|
|
'list' =>array(
|
|
|
array(
|
|
|
'question' =>'您好 我一米七七 140斤 穿M的行吗',
|
|
|
'time'=>'2014-08-12 10:24:26',
|
|
|
'answer'=>'您好,建议您参考XL的款式,由于版型和个人穿衣风格不同,需要'
|
|
|
),
|
|
|
array(
|
|
|
'question' =>'您好 我一米七七 140斤 穿M的行吗',
|
|
|
'time'=>'2014-08-12 10:24:26',
|
|
|
'answer'=>'您好,建议您参考XL的款式,由于版型和个人穿衣风格不同,需要'
|
|
|
),
|
|
|
array(
|
|
|
'question' =>'您好 我一米七七 140斤 穿M的行吗',
|
|
|
'time'=>'2014-08-12 10:24:26',
|
|
|
'answer'=>'您好,建议您参考XL的款式,由于版型和个人穿衣风格不同,需要'
|
|
|
)
|
|
|
|
|
|
)
|
|
|
public function consultsAction()
|
|
|
{
|
|
|
$data = array(
|
|
|
'goodsConsultsPage' => true,
|
|
|
'pageHeader' => array(
|
|
|
'navBack' => 'sss ',
|
|
|
// 'navHome' => 'sss ',
|
|
|
'navTitle' => '购买咨询(6)'
|
|
|
),
|
|
|
'pageFooter' => true,
|
|
|
'consults' => array(
|
|
|
'list' => array(
|
|
|
array(
|
|
|
'question' => '您好 我一米七七 140斤 穿M的行吗',
|
|
|
'time' => '2014-08-12 10:24:26',
|
|
|
'answer' => '您好,建议您参考XL的款式,由于版型和个人穿衣风格不同,需要'
|
|
|
),
|
|
|
);
|
|
|
|
|
|
$this->_view->assign('title', '购买咨询');
|
|
|
//$this->_view->display('brand', compact('brands'));
|
|
|
array(
|
|
|
'question' => '您好 我一米七七 140斤 穿M的行吗',
|
|
|
'time' => '2014-08-12 10:24:26',
|
|
|
'answer' => '您好,建议您参考XL的款式,由于版型和个人穿衣风格不同,需要'
|
|
|
),
|
|
|
array(
|
|
|
'question' => '您好 我一米七七 140斤 穿M的行吗',
|
|
|
'time' => '2014-08-12 10:24:26',
|
|
|
'answer' => '您好,建议您参考XL的款式,由于版型和个人穿衣风格不同,需要'
|
|
|
)
|
|
|
)
|
|
|
),
|
|
|
);
|
|
|
|
|
|
// 渲染模板
|
|
|
$this->_view->display('consults', $data);
|
|
|
}
|
|
|
$this->_view->assign('title', '购买咨询');
|
|
|
//$this->_view->display('brand', compact('brands'));
|
|
|
// 渲染模板
|
|
|
$this->_view->display('consults', $data);
|
|
|
}
|
|
|
|
|
|
public function consultformAction(){
|
|
|
$data = array(
|
|
|
'consultform' =>true,
|
|
|
'pageHeader' => array (
|
|
|
'navBack' => 'sss ',
|
|
|
// 'navHome' => 'sss ',
|
|
|
'navTitle' => '我要咨询'
|
|
|
)
|
|
|
);
|
|
|
public function consultformAction()
|
|
|
{
|
|
|
$data = array(
|
|
|
'consultform' => true,
|
|
|
'pageHeader' => array(
|
|
|
'navBack' => 'sss ',
|
|
|
// 'navHome' => 'sss ',
|
|
|
'navTitle' => '我要咨询'
|
|
|
)
|
|
|
);
|
|
|
|
|
|
$this->_view->assign('title', '我要咨询');
|
|
|
//$this->_view->display('brand', compact('brands'));
|
|
|
$this->_view->assign('title', '我要咨询');
|
|
|
//$this->_view->display('brand', compact('brands'));
|
|
|
// 渲染模板
|
|
|
$this->_view->display('consultform', $data);
|
|
|
}
|
|
|
|
|
|
// 渲染模板
|
|
|
$this->_view->display('consultform', $data);
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
|
|
} |
...
|
...
|
|