...
|
...
|
@@ -158,6 +158,7 @@ class DetailController extends AbstractAction |
|
|
'consults' => array(
|
|
|
'list' => $consults
|
|
|
),
|
|
|
'faq' => \Product\DetailModel::getCommonConsults(),
|
|
|
'showReadMore' => count($consults) > 2,
|
|
|
'link' => Helpers::url('/product/detail/consultform', array('product_id' => $productId)),
|
|
|
);
|
...
|
...
|
@@ -166,24 +167,6 @@ class DetailController extends AbstractAction |
|
|
$this->_view->display('consults', $data);
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* 异步获取咨询常见问题
|
|
|
*/
|
|
|
public function commonconsultsAction()
|
|
|
{
|
|
|
$result = array();
|
|
|
|
|
|
if ($this->isAjax()) {
|
|
|
$result = \Product\DetailModel::getCommonConsults();
|
|
|
}
|
|
|
|
|
|
if (empty($result)) {
|
|
|
echo ' ';
|
|
|
} else {
|
|
|
print_r($result);
|
|
|
$this->_view->display('common-consults', $result);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* 咨询点赞
|
...
|
...
|
|