mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-07-06 13:43:02 +08:00
search
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user