This commit is contained in:
devil_gong
2018-09-07 18:27:29 +08:00
parent 1b0e0a98d2
commit 60d76d07a5
10 changed files with 130 additions and 30 deletions

View File

@ -28,9 +28,15 @@ class SearchController extends CommonController
// 调用父类前置方法
parent::_initialize();
// 品牌id
$this->params['brand_id'] = intval(I('brand_id', 0));
// 分类id
$this->params['category_id'] = intval(I('category_id', 0));
// 筛选价格id
$this->params['screening_price_id'] = intval(I('screening_price_id', 0));
// 搜索关键字
$this->params['keywords'] = trim(I('keywords'));
@ -79,7 +85,8 @@ class SearchController extends CommonController
public function GoodsList()
{
$data = SearchService::GoodsList($this->params);
$this->ajaxReturn(L('common_operation_success'), 0, $data);
$msg = empty($data['data']) ? L('common_not_data_tips') : L('common_operation_success');
$this->ajaxReturn($msg, 0, $data);
}
}
?>