...
|
...
|
@@ -17,8 +17,8 @@ class SearchController extends AbstractAction |
|
|
public function indexAction()
|
|
|
{
|
|
|
$this->setNavHeader('搜索', true, SITE_MAIN);
|
|
|
|
|
|
$this->_view->html('search');
|
|
|
|
|
|
//$this->_view->html('search');
|
|
|
$this->_view->display('index', array(
|
|
|
'search' => array('url' => Helpers::url('', null, 'search')),
|
|
|
'showDownloadApp' => true,
|
...
|
...
|
@@ -125,6 +125,9 @@ class SearchController extends AbstractAction |
|
|
}
|
|
|
|
|
|
$data = array();
|
|
|
$data['goodListPage'] = true;
|
|
|
$data['goodList'] = $condition;
|
|
|
$data['query'] = $query;
|
|
|
// 搜索是一级品类
|
|
|
if ($isQueryFirstClass) {
|
|
|
$this->setTitle('全部' . $query);
|
...
|
...
|
@@ -139,16 +142,12 @@ class SearchController extends AbstractAction |
|
|
else {
|
|
|
if ($haveQuery) {
|
|
|
$data['goodList']['search']['default'] = $query;
|
|
|
$data['goodList']['search']['default'] = $query;
|
|
|
$data['goodList']['search']['url'] = Helpers::url('', null, 'search');
|
|
|
}
|
|
|
$this->setTitle('搜索');
|
|
|
$this->setNavHeader('搜索', true, SITE_MAIN);
|
|
|
}
|
|
|
|
|
|
$data['goodListPage'] = true;
|
|
|
$data['goodList'] = $condition;
|
|
|
$data['query'] = $query;
|
|
|
|
|
|
// // 查询数据
|
|
|
// if (!isset($condition['query'])) {
|
|
|
// $data['goodList'] += Product\ListModel::getClassData($condition);
|
...
|
...
|
|