Authored by 郝肖肖

商品详情 banner不显示问题修复

@@ -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
@@ -315,7 +315,6 @@ class IndexController extends WebAction @@ -315,7 +315,6 @@ class IndexController extends WebAction
315 */ 315 */
316 public function shopHome($shopId) 316 public function shopHome($shopId)
317 { 317 {
318 - $domain = $this->param('named');  
319 // 设置头部数据 318 // 设置头部数据
320 $this->setWebNavHeader(); 319 $this->setWebNavHeader();
321 $misort = $this->get('misort'); 320 $misort = $this->get('misort');