...
|
...
|
@@ -32,8 +32,11 @@ class BrandsModel { |
|
|
|
|
|
// 调用商品搜索接口
|
|
|
$data = SearchData::searchElasticByCondition($condition);
|
|
|
|
|
|
//获取品牌banner数据
|
|
|
$banner = self::getBannerByDomain($domain, $brandId, $uid = '');
|
|
|
$brandName = self::$shopName;
|
|
|
$options['brandName'] = $brandName;
|
|
|
|
|
|
if (isset($data['code']) && $data['code'] === 200) {
|
|
|
//获取分类列表数据
|
...
|
...
|
@@ -44,17 +47,14 @@ class BrandsModel { |
|
|
$data['data']['filter']['group_sort'] = $classes['data']['sort'];
|
|
|
}
|
|
|
|
|
|
$brandName = self::$shopName;
|
|
|
$options['brandName'] = $brandName;
|
|
|
|
|
|
|
|
|
//用户浏览记录
|
|
|
|
|
|
|
|
|
// 组织模板数据
|
|
|
$list = HelperSearch::getList($data, $options);
|
|
|
|
|
|
//合并商品搜索数据与品牌banner数据
|
|
|
$data = array_merge_recursive($data, $banner);
|
|
|
$list = array_merge_recursive($list,$banner);
|
|
|
|
|
|
$data = array(
|
|
|
//初始化js
|
...
|
...
|
@@ -65,19 +65,10 @@ class BrandsModel { |
|
|
$data = array();
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取品牌系列数据
|
|
|
$adNav = self::getAdNav($condition['brand']);
|
|
|
$data['list']['leftContent'][] = array('picLink' => $adNav);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $data;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -123,7 +114,6 @@ class BrandsModel { |
|
|
|
|
|
// 返回banner数据
|
|
|
return array(
|
|
|
'list' => array(
|
|
|
'brandBanner' => array(
|
|
|
'bannerHeight' => '150',
|
|
|
'coled' => $is_favorite,
|
...
|
...
|
@@ -144,7 +134,6 @@ class BrandsModel { |
|
|
)
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
);
|
|
|
}
|
|
|
|
...
|
...
|
|