...
|
...
|
@@ -103,7 +103,7 @@ class ShopModel |
|
|
);
|
|
|
$sort = self::getSort($res['sort'], $parameters['options']['misort'], $shopId);
|
|
|
$searchCondition['userInput'] = empty($searchCondition['userInput']) ? array() : $searchCondition['userInput'];
|
|
|
$param = array_merge($searchCondition['userInput'], array('navBar' => 1));
|
|
|
$param = array_merge($searchCondition['userInput'], array('navBar' => 1, 'shopId' => $shopId));
|
|
|
$data['allGoods']['list'] = $result['goods'];
|
|
|
$data['allGoods']['name'] = '全部商品 ALL';
|
|
|
$data['allGoods']['opts'] = $result['opts'];
|
...
|
...
|
@@ -273,20 +273,20 @@ class ShopModel |
|
|
$shopNav = array(
|
|
|
array(
|
|
|
'name' => '店铺首页',
|
|
|
'url' => '/?navBar=0',
|
|
|
'url' => '/?navBar=0&shopId=' . $parameters['shopId'],
|
|
|
),
|
|
|
array(
|
|
|
'name' => '全部商品',
|
|
|
'url' => self::$shopListUrl . '?navBar=1',
|
|
|
'url' => self::$shopListUrl . '?navBar=1&shopId=' . $parameters['shopId'],
|
|
|
'arrow' => true,
|
|
|
),
|
|
|
array(
|
|
|
'name' => '人气单品',
|
|
|
'url' => self::$shopListUrl . '?navBar=2&order=s_n_desc',
|
|
|
'url' => self::$shopListUrl . '?navBar=2&order=s_n_desc&shopId=' . $parameters['shopId'],
|
|
|
),
|
|
|
array(
|
|
|
'name' => '新品上架',
|
|
|
'url' => self::$shopListUrl . '?navBar=3&order=s_t_desc',
|
|
|
'url' => self::$shopListUrl . '?navBar=3&order=s_t_desc&shopId=' . $parameters['shopId'],
|
|
|
),
|
|
|
);
|
|
|
|
...
|
...
|
@@ -426,6 +426,7 @@ class ShopModel |
|
|
'url' => Helpers::url(
|
|
|
self::$shopListUrl,
|
|
|
array(
|
|
|
'shopId' => $parameters['shopId'],
|
|
|
'brand' => $resource['id'],
|
|
|
'navBar' => 1
|
|
|
),
|
...
|
...
|
|