Authored by 周少峰

add shop index shopInfo

... ... @@ -71,7 +71,7 @@ class ListData
$param['client_secret'] = Sign::getSign($param);
//TODO
// return Yohobuy::get(Yohobuy::API_URL, $param);
return Yohobuy::get('http://192.168.102.218:8080/gateway/', $param, $cache);
return Yohobuy::get('http://192.168.102.218:8080/gateway/', $param, 0);
}
/**
... ...
... ... @@ -25,8 +25,8 @@ class ShopProcess
}
self::$key($val);
}
print_r($data);
exit;
// print_r($data);
// exit;
return self::$shopData;
}
... ... @@ -51,6 +51,17 @@ class ShopProcess
}
/**
* 店铺基本信息
* @param $data
*/
private static function shopInfo($data)
{
self::$shopData['shopName'] = '';
self::$shopData['logo'] = '';
}
/**
* 店铺Banner
* @param array $data
* @author sefon 2016-4-27 08:40:05
... ... @@ -69,13 +80,14 @@ class ShopProcess
*/
private static function oneRowTwoColImages_APP($data)
{
// print_r($data); exit;
foreach ($data as $key => $val) {
if (empty($val['data'])) {
continue;
}
self::$shopData['spring'][$key] = array(
'url' => $val[0]['url'],
'springType' => $val[0]['src']
'url' => $val['data'][0]['url'],
'springType' => $val['data'][0]['src']
);
}
return $data;
... ... @@ -99,7 +111,7 @@ class ShopProcess
}
/**
*
* 资源位大图幻灯
* @param $data
* @author sefon 2016-4-27 16:50:01
*/
... ... @@ -123,8 +135,9 @@ class ShopProcess
*/
private static function recommend($data)
{
self::$shopData['hotCategory']['name'] = '热门品类';
foreach ($data as $cate) {
self::$shopData['hotCategory']['list'][] = array('url' => $cate['url'], 'img' => $cate['img']);
self::$shopData['hotCategory']['list'][] = array('url' => $cate['url'], 'img' => $cate['src']);
}
return $data;
}
... ...
... ... @@ -410,10 +410,10 @@ class ListModel
}
//店铺信息
// $data['shopInfo'] = ListData::getShopInfo($shopId);
$data['shopInfo'] = ListData::getShopInfo($shopId);
//店铺装修资源数据
$data['decorator'] = ListData::getShopDecorator($shopId);
print_r($data); exit;
// print_r($data); exit;
//品牌一览
//$data['shopBrands'] = ListData::getShopBrands($shopId);
//商品列表
... ...