...
|
...
|
@@ -42,34 +42,45 @@ class DetailController extends AbstractAction |
|
|
// 渲染模板
|
|
|
$this->_view->display('index', $data);
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 尺码描述信息
|
|
|
*/
|
|
|
public function introAction()
|
|
|
{
|
|
|
$productSkn = $this->param('productSkn');
|
|
|
$productSkn = $this->param('productSkn');
|
|
|
if (!is_numeric($productSkn)) {
|
|
|
$this->error();
|
|
|
}
|
|
|
$data = \Product\DetailModel::getSizeInfo($productSkn);
|
|
|
if (array() === $data) {
|
|
|
echo ' ';
|
|
|
echo ' ';
|
|
|
exit();
|
|
|
}
|
|
|
$this->_view->display('intro', $data);
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 购买评价列表
|
|
|
*
|
|
|
* @param int productId
|
|
|
* @param int total
|
|
|
*/
|
|
|
public function commentsAction()
|
|
|
{
|
|
|
$total = $this->get('total');
|
|
|
if (!is_numeric($total)) {
|
|
|
$total = 0;
|
|
|
}
|
|
|
if ($total) {
|
|
|
$this->setNavHeader('购买评价(' . $total . ')');
|
|
|
} else {
|
|
|
$this->setNavHeader('购买评价');
|
|
|
}
|
|
|
$this->setTitle('购买评价');
|
|
|
|
|
|
$data = array(
|
|
|
'goodsCommentsPage' => true,
|
|
|
'pageHeader' => array(
|
|
|
'navBack' => 'sss ',
|
|
|
// 'navHome' => 'sss ',
|
|
|
'navTitle' => '购买评价(6)'
|
|
|
),
|
|
|
'pageFooter' => true,
|
|
|
'comments' => array(
|
|
|
'list' => array(
|
...
|
...
|
@@ -98,49 +109,45 @@ class DetailController extends AbstractAction |
|
|
),
|
|
|
);
|
|
|
|
|
|
$this->_view->assign('title', '购买评价');
|
|
|
//$this->_view->display('brand', compact('brands'));
|
|
|
// 渲染模板
|
|
|
$this->_view->display('comments', $data);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 购买咨询列表
|
|
|
*
|
|
|
* @param int productId
|
|
|
* @param int total
|
|
|
*/
|
|
|
public function consultsAction()
|
|
|
{
|
|
|
$productId = $this->get('product_id', 0);
|
|
|
$total = $this->get('total', 0);
|
|
|
if (!is_numeric($total)) {
|
|
|
$total = 0;
|
|
|
}
|
|
|
if ($total) {
|
|
|
$this->setNavHeader('购买咨询(' . $total . ')');
|
|
|
} else {
|
|
|
$this->setNavHeader('购买咨询');
|
|
|
}
|
|
|
$this->setTitle('购买咨询');
|
|
|
|
|
|
$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的款式,由于版型和个人穿衣风格不同,需要'
|
|
|
)
|
|
|
)
|
|
|
),
|
|
|
'list' => \Product\DetailModel::getConsults($productId),
|
|
|
)
|
|
|
);
|
|
|
|
|
|
$this->_view->assign('title', '购买咨询');
|
|
|
//$this->_view->display('brand', compact('brands'));
|
|
|
// 渲染模板
|
|
|
$this->_view->display('consults', $data);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 我要咨询
|
|
|
*/
|
|
|
public function consultformAction()
|
|
|
{
|
|
|
$data = array(
|
...
|
...
|
|