|
@@ -199,13 +199,19 @@ class ItemModel |
|
@@ -199,13 +199,19 @@ class ItemModel |
199
|
|
199
|
|
200
|
if (!empty($banner['brandId'])) {
|
200
|
if (!empty($banner['brandId'])) {
|
201
|
$domainBrand = BrandsModel::getBrandByDomain($banner['brandDomain']);
|
201
|
$domainBrand = BrandsModel::getBrandByDomain($banner['brandDomain']);
|
202
|
- if (empty($domainBrand['type']) || $domainBrand['type'] !== 2) {
|
|
|
203
|
- //多品店不显示
|
|
|
204
|
- $banner = array();
|
|
|
205
|
- } else {
|
|
|
206
|
- $basisData = ShopModel::basisTemplate($domainBrand['shopId']);
|
|
|
207
|
- $banner['bgImg'] = empty($basisData['shopTopBanner']['banner']) ?
|
|
|
208
|
- $banner['bgImg'] : $basisData['shopTopBanner']['banner'];
|
202
|
+ if (!empty($domainBrand['type']) && !empty($domainBrand['shopId'])) {
|
|
|
203
|
+ switch (intval($domainBrand['type'])) {
|
|
|
204
|
+ case 1:
|
|
|
205
|
+ //多品店不显示
|
|
|
206
|
+ $banner = array();
|
|
|
207
|
+ break;
|
|
|
208
|
+ case 2:
|
|
|
209
|
+ //单品店显示新版的店铺banner
|
|
|
210
|
+ $basisData = ShopModel::basisTemplate($domainBrand['shopId']);
|
|
|
211
|
+ $banner['bgImg'] = empty($basisData['shopTopBanner']['banner']) ?
|
|
|
212
|
+ $banner['bgImg'] : $basisData['shopTopBanner']['banner'];
|
|
|
213
|
+ break;
|
|
|
214
|
+ }
|
209
|
}
|
215
|
}
|
210
|
}
|
216
|
}
|
211
|
|
217
|
|