...
|
...
|
@@ -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;
|
|
|
}
|
...
|
...
|
|