Authored by 郝肖肖

多品订单详情 banner不显示

... ... @@ -177,7 +177,7 @@ class BrandsModel
$result['0-9'] = $brand;
}
//写死多品店数据
$result['多品店'] = $moreBrand;
// $result['多品店'] = $moreBrand;
$navigation = array_keys($result);
}
//只取部分数据
... ...
... ... @@ -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
);
... ...