Authored by 郝肖肖

商品列表 面包屑

@@ -193,13 +193,16 @@ class ShopModel @@ -193,13 +193,16 @@ class ShopModel
193 // 组织模板数据 193 // 组织模板数据
194 $result = HelperSearch::getList($res, $searchCondition['options'], $searchCondition['userInput']); 194 $result = HelperSearch::getList($res, $searchCondition['options'], $searchCondition['userInput']);
195 195
196 - $data['pathNav'] = $result['pathNav'];  
197 -  
198 $data['goods'] = $result['goods']; 196 $data['goods'] = $result['goods'];
199 $data['opts'] = $result['opts']; 197 $data['opts'] = $result['opts'];
200 $data['leftContent'] = isset($result['leftContent']) ? $result['leftContent'] : ''; 198 $data['leftContent'] = isset($result['leftContent']) ? $result['leftContent'] : '';
201 $data['filters'] = $result['filters']; 199 $data['filters'] = $result['filters'];
202 - $data['pathNav'] = $result['pathNav']; 200 + $data['pathNav'] = array_merge(
  201 + $result['pathNav'],
  202 + array(
  203 + array('href'=> '', 'name' => $data['brandIntro']['brandName'], 'title' => $data['brandIntro']['brandName'])
  204 + )
  205 + );
203 // $data['name'] = '全部商品 ALL'; 206 // $data['name'] = '全部商品 ALL';
204 // $sort = self::getSort($res['sort']); 207 // $sort = self::getSort($res['sort']);
205 // $data['goodsMenu']['menuList'] = $sort; 208 // $data['goodsMenu']['menuList'] = $sort;
@@ -414,6 +417,30 @@ class ShopModel @@ -414,6 +417,30 @@ class ShopModel
414 } 417 }
415 418
416 /** 419 /**
  420 + * 水牌
  421 + * @param type $data
  422 + * @return type []
  423 + */
  424 + public static function signboard($data)
  425 + {
  426 + $result = array();
  427 + foreach ($data['resource_data'] as $resource) {
  428 + if (empty($resource['data'])) {
  429 + continue;
  430 + }
  431 +
  432 + foreach ($resource['data'] as $val) {
  433 + $result[] = array(
  434 + 'img'=> self::imageView2($val['src'], 160, 240),
  435 + 'url'=> $val['url'],
  436 + );
  437 + }
  438 + }
  439 +
  440 + return $result;
  441 + }
  442 +
  443 + /**
417 * 品牌一览 444 * 品牌一览
418 * @param type $data 445 * @param type $data
419 * @return type [] 446 * @return type []
@@ -534,6 +561,13 @@ class ShopModel @@ -534,6 +561,13 @@ class ShopModel
534 561
535 return $result; 562 return $result;
536 } 563 }
  564 +
  565 + public static function basisTemplate($shopId)
  566 + {
  567 + $result = array();
  568 + $shopData = ShopData::shopsDecoratorList($shopId);
  569 + }
  570 +
537 /** 571 /**
538 * 潮流资讯 572 * 潮流资讯
539 * @param type string $tag 搜索内容 573 * @param type string $tag 搜索内容