...
|
...
|
@@ -12,7 +12,7 @@ class DetailController extends AbstractAction |
|
|
|
|
|
/**
|
|
|
* 商品详情
|
|
|
*
|
|
|
*
|
|
|
* @param int productId
|
|
|
* @param int goodsId
|
|
|
*/
|
...
|
...
|
@@ -50,7 +50,7 @@ class DetailController extends AbstractAction |
|
|
|
|
|
/**
|
|
|
* 商品详情 (SKN)
|
|
|
*
|
|
|
*
|
|
|
* @param int productSkn
|
|
|
*/
|
|
|
public function showAction()
|
...
|
...
|
@@ -100,7 +100,7 @@ class DetailController extends AbstractAction |
|
|
|
|
|
/**
|
|
|
* 购买评价列表
|
|
|
*
|
|
|
*
|
|
|
* @param int productId
|
|
|
* @param int total
|
|
|
*/
|
...
|
...
|
@@ -132,7 +132,7 @@ class DetailController extends AbstractAction |
|
|
|
|
|
/**
|
|
|
* 购买咨询列表
|
|
|
*
|
|
|
*
|
|
|
* @param int productId
|
|
|
* @param int total
|
|
|
*/
|
...
|
...
|
@@ -150,12 +150,14 @@ class DetailController extends AbstractAction |
|
|
}
|
|
|
$this->setTitle('购买咨询');
|
|
|
|
|
|
$consults = \Product\DetailModel::getConsults($productId);
|
|
|
$data = array(
|
|
|
'goodsConsultsPage' => true,
|
|
|
'pageFooter' => true,
|
|
|
'consults' => array(
|
|
|
'list' => \Product\DetailModel::getConsults($productId),
|
|
|
'list' => $consults
|
|
|
),
|
|
|
'showReadMore' => count($consults) > 2,
|
|
|
'link' => Helpers::url('/product/detail/consultform', array('product_id' => $productId)),
|
|
|
);
|
|
|
|
...
|
...
|
@@ -222,7 +224,7 @@ class DetailController extends AbstractAction |
|
|
|
|
|
/**
|
|
|
* 添加咨询操作
|
|
|
*
|
|
|
*
|
|
|
* @param int product_id 商品ID
|
|
|
* @param string content 咨询内容
|
|
|
* @return json
|
...
|
...
|
@@ -243,7 +245,7 @@ class DetailController extends AbstractAction |
|
|
|
|
|
/**
|
|
|
* 为你优选
|
|
|
*
|
|
|
*
|
|
|
* @param int productSkn 商品SKN号
|
|
|
* @return json
|
|
|
*/
|
...
|
...
|
|