|
@@ -127,7 +127,8 @@ class Main extends Core
|
|
|
# 获取热门商品
|
|
|
$hot = Dever::load('push/lib/data')->get('home_hot', '首页热门商品', 50);
|
|
|
|
|
|
- $this->data['hot'] = array();
|
|
|
+ $this->data['hot'] = $hot;
|
|
|
+ /*
|
|
|
if ($hot) {
|
|
|
$shop_id = isset($this->data['shop']['id']) ? $this->data['shop']['id'] : 3;
|
|
|
foreach ($hot as $k => $v) {
|
|
@@ -144,12 +145,13 @@ class Main extends Core
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
# 获取推荐商品
|
|
|
$top = Dever::load('push/lib/data')->get('home_top', '首页推荐商品', 50);
|
|
|
|
|
|
- $this->data['top'] = array();
|
|
|
+ $this->data['top'] = $top;
|
|
|
+ /*
|
|
|
if ($top) {
|
|
|
$shop_id = isset($this->data['shop']['id']) ? $this->data['shop']['id'] : 3;
|
|
|
foreach ($top as $k => $v) {
|
|
@@ -166,7 +168,7 @@ class Main extends Core
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
# 首页弹窗
|
|
|
$this->data['alert'] = Dever::load('push/lib/data')->get('home_alert', '首页弹窗', 1);
|