Authored by 周少峰

shop index hot category

... ... @@ -71,7 +71,7 @@ class ListData
$param['client_secret'] = Sign::getSign($param);
//TODO
// return Yohobuy::get(Yohobuy::API_URL, $param);
return Yohobuy::get('http://devapi.yoho.cn:58078/', $param, $cache);
return Yohobuy::get('http://192.168.102.218:8080/gateway/', $param, $cache);
}
/**
... ...
... ... @@ -58,7 +58,6 @@ class ShopProcess
*/
private static function shopTopBanner_APP($data)
{
// print_r($data); exit;
self::$shopData['branerImg'] = $data[0]['shopSrc'];
}
... ... @@ -70,17 +69,14 @@ class ShopProcess
*/
private static function oneRowTwoColImages_APP($data)
{
print_r($data); exit;
foreach ($data as $key => $val) {
if (empty($val['data'])) {
continue;
}
foreach ($val['data'] as $val) {
self::$shopData['spring'][] = array(
'url' => $val['url'],
'springType' => $val['src']
);
}
self::$shopData['spring'][$key] = array(
'url' => $val[0]['url'],
'springType' => $val[0]['src']
);
}
return $data;
}
... ... @@ -127,7 +123,9 @@ class ShopProcess
*/
private static function recommend($data)
{
print_r($data); exit;
foreach ($data as $cate) {
self::$shopData['hotCategory']['list'][] = array('url' => $cate['url'], 'img' => $cate['img']);
}
return $data;
}
... ...
... ... @@ -127,6 +127,7 @@ class IndexController extends AbstractAction
{
/* 品牌域名参数 @see Bootstrap.php */
$domain = $this->param('named');
$domain = 'vans';
if (empty($domain)) {
$this->go(SITE_MAIN);
}
... ...