|
|
@@ -119,6 +119,7 @@ class IndexController extends webApp
|
|
|
$data = [
|
|
|
// 轮播
|
|
|
'banners' => AdService::make()->getListByPosition($position),
|
|
|
+ 'cart_count' => CartService::make()->getCount($this->userId)
|
|
|
];
|
|
|
|
|
|
if ($type == 2) {
|
|
|
@@ -131,7 +132,6 @@ class IndexController extends webApp
|
|
|
$params['user_id'] = $this->userId;
|
|
|
$data['stores'] = StoreService::make()->getGoodsList($params);
|
|
|
$data['social_open'] = ConfigService::make()->getConfigByCode('social_open', 0);
|
|
|
- $data['cart_count'] = CartService::make()->getCount($this->userId);
|
|
|
$data['pay_recharge_open'] = ConfigService::make()->getConfigByCode('pay_recharge_open', 0);
|
|
|
}
|
|
|
|