|
@@ -10,6 +10,7 @@ use WebPlugin\Cache; |
|
@@ -10,6 +10,7 @@ use WebPlugin\Cache; |
10
|
use Configs\WebCacheConfig;
|
10
|
use Configs\WebCacheConfig;
|
11
|
use Configs\ChannelConfig;
|
11
|
use Configs\ChannelConfig;
|
12
|
use LibModels\Web\Product\BrandData;
|
12
|
use LibModels\Web\Product\BrandData;
|
|
|
13
|
+use Product\BrandsModel;
|
13
|
class ItemModel
|
14
|
class ItemModel
|
14
|
{
|
15
|
{
|
15
|
/**
|
16
|
/**
|
|
@@ -195,6 +196,19 @@ class ItemModel |
|
@@ -195,6 +196,19 @@ class ItemModel |
195
|
} else {
|
196
|
} else {
|
196
|
$statGoodsInfo['salePrice'] = str_replace('¥', '', $goodsInfo['marketPrice']);
|
197
|
$statGoodsInfo['salePrice'] = str_replace('¥', '', $goodsInfo['marketPrice']);
|
197
|
}
|
198
|
}
|
|
|
199
|
+
|
|
|
200
|
+ if (!empty($banner['brandId'])) {
|
|
|
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'];
|
|
|
209
|
+ }
|
|
|
210
|
+ }
|
|
|
211
|
+
|
198
|
$statGoodsInfo['imageUrl'] = $goodsInfo['img'];
|
212
|
$statGoodsInfo['imageUrl'] = $goodsInfo['img'];
|
199
|
$statGoodsInfo['productUrl'] = $goodsInfo['weixinUrl'];
|
213
|
$statGoodsInfo['productUrl'] = $goodsInfo['weixinUrl'];
|
200
|
$statGoodsInfo['smallSortId'] = $goodsInfo['smallSortId'];
|
214
|
$statGoodsInfo['smallSortId'] = $goodsInfo['smallSortId'];
|
|
@@ -1094,6 +1108,7 @@ class ItemModel |
|
@@ -1094,6 +1108,7 @@ class ItemModel |
1094
|
'logo'=> $logo,
|
1108
|
'logo'=> $logo,
|
1095
|
'alt' => $baseInfo['brand']['brandName'],
|
1109
|
'alt' => $baseInfo['brand']['brandName'],
|
1096
|
'brandName' => $baseInfo['brand']['brandName'],
|
1110
|
'brandName' => $baseInfo['brand']['brandName'],
|
|
|
1111
|
+ 'brandDomain' => $baseInfo['brand']['brandDomain'],
|
1097
|
'homeUrl'=> $homeUrl,
|
1112
|
'homeUrl'=> $homeUrl,
|
1098
|
'isCollect'=> false
|
1113
|
'isCollect'=> false
|
1099
|
);
|
1114
|
);
|