...
|
...
|
@@ -10,6 +10,7 @@ use WebPlugin\Cache; |
|
|
use Configs\WebCacheConfig;
|
|
|
use Configs\ChannelConfig;
|
|
|
use LibModels\Web\Product\BrandData;
|
|
|
use Product\BrandsModel;
|
|
|
class ItemModel
|
|
|
{
|
|
|
/**
|
...
|
...
|
@@ -195,6 +196,19 @@ class ItemModel |
|
|
} else {
|
|
|
$statGoodsInfo['salePrice'] = str_replace('¥', '', $goodsInfo['marketPrice']);
|
|
|
}
|
|
|
|
|
|
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'];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$statGoodsInfo['imageUrl'] = $goodsInfo['img'];
|
|
|
$statGoodsInfo['productUrl'] = $goodsInfo['weixinUrl'];
|
|
|
$statGoodsInfo['smallSortId'] = $goodsInfo['smallSortId'];
|
...
|
...
|
@@ -1094,6 +1108,7 @@ class ItemModel |
|
|
'logo'=> $logo,
|
|
|
'alt' => $baseInfo['brand']['brandName'],
|
|
|
'brandName' => $baseInfo['brand']['brandName'],
|
|
|
'brandDomain' => $baseInfo['brand']['brandDomain'],
|
|
|
'homeUrl'=> $homeUrl,
|
|
|
'isCollect'=> false
|
|
|
);
|
...
|
...
|
|