mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-07-06 13:43:02 +08:00
品牌新增介绍,搜索增强品牌展示
This commit is contained in:
@ -12,7 +12,6 @@ namespace app\api\controller;
|
||||
|
||||
use app\service\BaseService;
|
||||
use app\service\SearchService;
|
||||
use app\service\GoodsService;
|
||||
|
||||
/**
|
||||
* 商品搜索
|
||||
@ -54,8 +53,23 @@ class Search extends Common
|
||||
$ret = SearchService::GoodsList($this->data_post);
|
||||
$result = $ret['data'];
|
||||
|
||||
// 分类
|
||||
$result['category'] = empty($this->data_post['category_id']) ? [] : GoodsService::GoodsCategoryRow(['id'=>$this->data_post['category_id']]);
|
||||
// 品牌列表
|
||||
$result['brand_list'] = SearchService::CategoryBrandList($this->data_request);
|
||||
|
||||
// 指定数据
|
||||
$result['search_map_info'] = SearchService::SearchMapInfo($this->data_request);
|
||||
|
||||
// 商品分类
|
||||
$result['category_list'] = SearchService::GoodsCategoryList($this->data_request);
|
||||
|
||||
// 筛选价格区间
|
||||
$result['screening_price_list'] = SearchService::ScreeningPriceList($this->data_request);
|
||||
|
||||
// 商品参数
|
||||
$result['goods_params_list'] = SearchService::SearchGoodsParamsValueList($this->data_request);
|
||||
|
||||
// 商品规格
|
||||
$result['goods_spec_list'] = SearchService::SearchGoodsSpecValueList($this->data_request);
|
||||
|
||||
return BaseService::DataReturn($result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user