|
@@ -58,7 +58,6 @@ class ShopProcess |
|
@@ -58,7 +58,6 @@ class ShopProcess |
58
|
*/
|
58
|
*/
|
59
|
private static function shopTopBanner_APP($data)
|
59
|
private static function shopTopBanner_APP($data)
|
60
|
{
|
60
|
{
|
61
|
-// print_r($data); exit;
|
|
|
62
|
self::$shopData['branerImg'] = $data[0]['shopSrc'];
|
61
|
self::$shopData['branerImg'] = $data[0]['shopSrc'];
|
63
|
}
|
62
|
}
|
64
|
|
63
|
|
|
@@ -70,17 +69,14 @@ class ShopProcess |
|
@@ -70,17 +69,14 @@ class ShopProcess |
70
|
*/
|
69
|
*/
|
71
|
private static function oneRowTwoColImages_APP($data)
|
70
|
private static function oneRowTwoColImages_APP($data)
|
72
|
{
|
71
|
{
|
73
|
- print_r($data); exit;
|
|
|
74
|
foreach ($data as $key => $val) {
|
72
|
foreach ($data as $key => $val) {
|
75
|
if (empty($val['data'])) {
|
73
|
if (empty($val['data'])) {
|
76
|
continue;
|
74
|
continue;
|
77
|
}
|
75
|
}
|
78
|
- foreach ($val['data'] as $val) {
|
|
|
79
|
- self::$shopData['spring'][] = array(
|
|
|
80
|
- 'url' => $val['url'],
|
|
|
81
|
- 'springType' => $val['src']
|
|
|
82
|
- );
|
|
|
83
|
- }
|
76
|
+ self::$shopData['spring'][$key] = array(
|
|
|
77
|
+ 'url' => $val[0]['url'],
|
|
|
78
|
+ 'springType' => $val[0]['src']
|
|
|
79
|
+ );
|
84
|
}
|
80
|
}
|
85
|
return $data;
|
81
|
return $data;
|
86
|
}
|
82
|
}
|
|
@@ -127,7 +123,9 @@ class ShopProcess |
|
@@ -127,7 +123,9 @@ class ShopProcess |
127
|
*/
|
123
|
*/
|
128
|
private static function recommend($data)
|
124
|
private static function recommend($data)
|
129
|
{
|
125
|
{
|
130
|
- print_r($data); exit;
|
126
|
+ foreach ($data as $cate) {
|
|
|
127
|
+ self::$shopData['hotCategory']['list'][] = array('url' => $cate['url'], 'img' => $cate['img']);
|
|
|
128
|
+ }
|
131
|
return $data;
|
129
|
return $data;
|
132
|
}
|
130
|
}
|
133
|
|
131
|
|