Authored by 郝肖肖

品牌集合 单个不显示

... ... @@ -186,7 +186,7 @@ class FavoriteModel
$brands[$brandkey]['brandOrShopType'] = empty($brandval['brandOrShopType']) ? '' : $brandval['brandOrShopType'];
$brands[$brandkey]['shop_id'] = empty($brandval['shop_id']) ? '' : $brandval['shop_id'];
$brands[$brandkey]['img'] = Images::getImageUrl($brandval['brand_ico'], 100, 100); //品牌缩略图
$brands[$brandkey]['url'] = Helpers::url('', '', $brandval['brand_domain']); //品牌链接
$brands[$brandkey]['url'] = Helpers::url('', array('shopId' => $brands[$brandkey]['shop_id']), $brandval['brand_domain']); //品牌链接
$brands[$brandkey]['name'] = $brandval['brand_name']; //品牌名
$brands[$brandkey]['naCount'] = $brandval['new_product_num']; //新品到着数量
$brands[$brandkey]['colCount'] = $brandval['brand_favorite_num']; //收藏人气
... ...
... ... @@ -456,7 +456,10 @@ class ShopModel
{
$result = array();
$brand = isset($parameters['brand']) ? $parameters['brand'] : '';
if (count($data['resource_data']) <= 1) {
return $result;
}
foreach ($data['resource_data'] as $resource) {
$result[] = array(
'url' => Helpers::url(
... ...