...
|
...
|
@@ -82,9 +82,18 @@ class PlusstarController extends AbstractAction |
|
|
if (empty($brandInfo['getBrandInfo']['data']['brand_id'])) {
|
|
|
break;
|
|
|
}
|
|
|
$brandId = $brandInfo['getBrandInfo']['data']['brand_id'];
|
|
|
|
|
|
/* 获取更多品牌的链接 */
|
|
|
$url = '/brands';
|
|
|
$brandDomains = Product\ListModel::getAllBrandDomains();
|
|
|
if (isset($brandDomains[$brandId])) {
|
|
|
// 构建成 品牌域名.xxx.com
|
|
|
$url = Helpers::url('', null, $brandDomains[$brandId]);
|
|
|
}
|
|
|
|
|
|
$data['psDetail'] = true;
|
|
|
$data['ps']['id'] = $brandInfo['getBrandInfo']['data']['brand_id'];
|
|
|
$data['ps']['id'] = $brandId;
|
|
|
$data['ps']['banner'] = Helpers::getImageUrl($brandInfo['getBrandInfo']['data']['cover_img'], 640, 309);
|
|
|
$data['ps']['logo'] = Helpers::getImageUrl($brandInfo['getBrandInfo']['data']['brand_ico'], 160, 160);
|
|
|
$data['ps']['name'] = $brandInfo['getBrandInfo']['data']['brand_name'];
|
...
|
...
|
@@ -92,7 +101,7 @@ class PlusstarController extends AbstractAction |
|
|
$data['ps']['likeUrl'] = false; //"http://guang.m.yohobuy.com/plustar/brandinfo?id=285&openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"http:\/\/guang.m.yohobuy.com\/plustar\/brandinfo","param":{"id":285}},"requesturl":{"url":"\/guang\/api\/v1\/favorite\/togglebrand","param":{"brand_id":"701"}},"priority":"Y"}}";
|
|
|
$data['ps']['intro'] = empty($brandInfo['getBrandInfo']['data']['brand_intro']) ? '' : strtr(strip_tags($brandInfo['getBrandInfo']['data']['brand_intro']), array(' ' => ' '));
|
|
|
$data['ps']['newArrival'] = array();
|
|
|
$data['ps']['newArrival']['moreUrl'] = '/product/list/brand?brand=' . $id; // @todo 品牌列表页面
|
|
|
$data['ps']['newArrival']['moreUrl'] = $url;
|
|
|
$data['ps']['newArrival']['naList'] = $brandInfo['getNewProduct'];
|
|
|
$data['ps']['infos'] = array();
|
|
|
|
...
|
...
|
|