...
|
...
|
@@ -47,7 +47,6 @@ class DetailController extends AbstractAction |
|
|
public function introAction()
|
|
|
{
|
|
|
$productSkn = $this->param('productSkn');
|
|
|
$productSkn = 50027562;
|
|
|
if (!is_numeric($productSkn)) {
|
|
|
$this->error();
|
|
|
}
|
...
|
...
|
@@ -164,4 +163,26 @@ class DetailController extends AbstractAction |
|
|
$this->_view->display('consultform', $data);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 为你优选
|
|
|
*
|
|
|
* @param int productSkn 商品SKN号
|
|
|
* @return json
|
|
|
*/
|
|
|
public function preferenceAction()
|
|
|
{
|
|
|
$result = array();
|
|
|
|
|
|
if ($this->isAjax()) {
|
|
|
$productSkn = $this->get('productSkn');
|
|
|
$result = \Product\DetailModel::getPreference($productSkn);
|
|
|
}
|
|
|
|
|
|
if (empty($result)) {
|
|
|
echo ' ';
|
|
|
} else {
|
|
|
$this->_view->display('preference', $result);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|