...
|
...
|
@@ -492,16 +492,16 @@ class IndexController extends AbstractAction |
|
|
|
|
|
$filter = Product\SearchModel::filter(array(
|
|
|
'shop_id' => $shopId,
|
|
|
'gender' => empty($data['gender']) ? '' : $data['gender'],
|
|
|
'brand' => empty($data['brand']) ? '' : $data['brand']
|
|
|
'gender' => isset($data['gender']) ? $data['gender'] : '',
|
|
|
'brand' => isset($data['brand']) ? $data['brand'] : ''
|
|
|
));
|
|
|
$data['filter'] = isset($filter['filter']) ? $filter['filter'] : array();
|
|
|
|
|
|
/* tar add 160931 首屏加载,加载一次 goods */
|
|
|
$goods = \Product\SearchModel::search(array(
|
|
|
'shop' => $shopId,
|
|
|
'gender' => empty($data['gender']) ? '' : $data['gender'],
|
|
|
'brand' => empty($data['brand']) ? '' : $data['brand'],
|
|
|
'gender' => isset($data['gender']) ? $data['gender'] : '',
|
|
|
'brand' => isset($data['brand']) ? $data['brand'] : '',
|
|
|
'coverChannel' => $coverChannel
|
|
|
));
|
|
|
$data['goods'] = isset($goods['new']) ? $goods['new'] : array();
|
...
|
...
|
|