Authored by 郝肖肖

商品列表 面包屑

... ... @@ -193,13 +193,16 @@ class ShopModel
// 组织模板数据
$result = HelperSearch::getList($res, $searchCondition['options'], $searchCondition['userInput']);
$data['pathNav'] = $result['pathNav'];
$data['goods'] = $result['goods'];
$data['opts'] = $result['opts'];
$data['leftContent'] = isset($result['leftContent']) ? $result['leftContent'] : '';
$data['filters'] = $result['filters'];
$data['pathNav'] = $result['pathNav'];
$data['pathNav'] = array_merge(
$result['pathNav'],
array(
array('href'=> '', 'name' => $data['brandIntro']['brandName'], 'title' => $data['brandIntro']['brandName'])
)
);
// $data['name'] = '全部商品 ALL';
// $sort = self::getSort($res['sort']);
// $data['goodsMenu']['menuList'] = $sort;
... ... @@ -414,6 +417,30 @@ class ShopModel
}
/**
* 水牌
* @param type $data
* @return type []
*/
public static function signboard($data)
{
$result = array();
foreach ($data['resource_data'] as $resource) {
if (empty($resource['data'])) {
continue;
}
foreach ($resource['data'] as $val) {
$result[] = array(
'img'=> self::imageView2($val['src'], 160, 240),
'url'=> $val['url'],
);
}
}
return $result;
}
/**
* 品牌一览
* @param type $data
* @return type []
... ... @@ -534,6 +561,13 @@ class ShopModel
return $result;
}
public static function basisTemplate($shopId)
{
$result = array();
$shopData = ShopData::shopsDecoratorList($shopId);
}
/**
* 潮流资讯
* @param type string $tag 搜索内容
... ...