...
|
...
|
@@ -199,13 +199,19 @@ class ItemModel |
|
|
|
|
|
if (!empty($banner['brandId'])) {
|
|
|
$domainBrand = BrandsModel::getBrandByDomain($banner['brandDomain']);
|
|
|
if (empty($domainBrand['type']) || $domainBrand['type'] !== 2) {
|
|
|
//多品店不显示
|
|
|
$banner = array();
|
|
|
} else {
|
|
|
$basisData = ShopModel::basisTemplate($domainBrand['shopId']);
|
|
|
$banner['bgImg'] = empty($basisData['shopTopBanner']['banner']) ?
|
|
|
$banner['bgImg'] : $basisData['shopTopBanner']['banner'];
|
|
|
if (!empty($domainBrand['type']) && !empty($domainBrand['shopId'])) {
|
|
|
switch (intval($domainBrand['type'])) {
|
|
|
case 1:
|
|
|
//多品店不显示
|
|
|
$banner = array();
|
|
|
break;
|
|
|
case 2:
|
|
|
//单品店显示新版的店铺banner
|
|
|
$basisData = ShopModel::basisTemplate($domainBrand['shopId']);
|
|
|
$banner['bgImg'] = empty($basisData['shopTopBanner']['banner']) ?
|
|
|
$banner['bgImg'] : $basisData['shopTopBanner']['banner'];
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|