Authored by 周少峰

brand and shop add age level

... ... @@ -418,7 +418,7 @@ function search(opt) {
$listNav.children('.active').removeClass('active');
$pre.addClass('active');
if (opt.id) {
if (opt.hasOwnProperty('id')) {
switch (opt.type) {
case 'shop_id':
ext = {
... ...
... ... @@ -170,6 +170,7 @@ class IndexController extends AbstractAction
'discount' => FILTER_DEFAULT,
'gender' => FILTER_DEFAULT,
'channel' => FILTER_DEFAULT,
'ageLevel' => FILTER_DEFAULT,
'p_d' => FILTER_DEFAULT,), false);
$condition['brand'] = $brandId;
// 转义店铺
... ...