...
|
...
|
@@ -13,7 +13,8 @@ use LibModels\Web\Product\SearchData as WebProduct; |
|
|
*
|
|
|
* @author Administrator
|
|
|
*/
|
|
|
class BrandsModel {
|
|
|
class BrandsModel
|
|
|
{
|
|
|
|
|
|
const URL_BRAND_INDEX = '/product/index/brand';
|
|
|
|
...
|
...
|
@@ -28,7 +29,8 @@ class BrandsModel { |
|
|
* @param $options array
|
|
|
* @return array
|
|
|
*/
|
|
|
public static function getBrandSearchData($condition, $options, $domain, $uid, $brandId,$node) {
|
|
|
public static function getBrandSearchData($condition, $options, $domain, $uid, $brandId,$node)
|
|
|
{
|
|
|
// 调用商品搜索接口
|
|
|
$data = SearchData::searchElasticByCondition($condition);
|
|
|
|
...
|
...
|
@@ -86,7 +88,8 @@ class BrandsModel { |
|
|
*
|
|
|
* @return array 品牌banner条数据
|
|
|
*/
|
|
|
public static function getBannerByDomain($domain, $brandId, $uid = '') {
|
|
|
public static function getBannerByDomain($domain, $brandId, $uid = '')
|
|
|
{
|
|
|
// 构造品牌主页url
|
|
|
self::$home = Helpers::url('', '', $domain) . self::URL_BRAND_INDEX;
|
|
|
// 根据品牌Id获取品牌banner图
|
...
|
...
|
@@ -121,7 +124,8 @@ class BrandsModel { |
|
|
}
|
|
|
|
|
|
//获取品牌系列数据
|
|
|
public static function getAdNav($brandId, $status = 1) {
|
|
|
public static function getAdNav($brandId, $status = 1)
|
|
|
{
|
|
|
//调用接口获得数据
|
|
|
$advNav = BrandData::getFolderByBrand($brandId, $status);
|
|
|
$result = array();
|
...
|
...
|
|