Showing
4 changed files
with
10 additions
and
3 deletions
@@ -133,6 +133,11 @@ function search(opt) { | @@ -133,6 +133,11 @@ function search(opt) { | ||
133 | $pre.addClass('active'); | 133 | $pre.addClass('active'); |
134 | 134 | ||
135 | switch (opt.type) { | 135 | switch (opt.type) { |
136 | + case 'shop_id': | ||
137 | + ext = { | ||
138 | + shop_id: opt.id | ||
139 | + }; | ||
140 | + break; | ||
136 | case 'gender': | 141 | case 'gender': |
137 | ext = { | 142 | ext = { |
138 | gender: opt.id | 143 | gender: opt.id |
1 | +{{#if shopId}} | ||
2 | + <input class="query-param" type="hidden" data-attr="shop_id" value="{{shopId}}"> | ||
3 | +{{/if}} | ||
4 | + | ||
1 | {{#if brand}} | 5 | {{#if brand}} |
2 | <input class="query-param" type="hidden" data-attr="brand" value="{{brand}}"> | 6 | <input class="query-param" type="hidden" data-attr="brand" value="{{brand}}"> |
3 | {{/if}} | 7 | {{/if}} |
@@ -52,7 +52,7 @@ class SearchController extends AbstractAction | @@ -52,7 +52,7 @@ class SearchController extends AbstractAction | ||
52 | 'discount' => FILTER_DEFAULT, | 52 | 'discount' => FILTER_DEFAULT, |
53 | 'gender' => FILTER_DEFAULT, | 53 | 'gender' => FILTER_DEFAULT, |
54 | 'p_d' => FILTER_DEFAULT,), false); | 54 | 'p_d' => FILTER_DEFAULT,), false); |
55 | - | 55 | + $condition['shopId'] = $condition['shop_id']; |
56 | $query = empty($condition['query']) ? null : strtolower(trim($condition['query'])); | 56 | $query = empty($condition['query']) ? null : strtolower(trim($condition['query'])); |
57 | if (isset($condition['discount'])) { | 57 | if (isset($condition['discount'])) { |
58 | $condition['p_d'] = rawurldecode($condition['discount']); | 58 | $condition['p_d'] = rawurldecode($condition['discount']); |
@@ -95,8 +95,6 @@ class SearchModel | @@ -95,8 +95,6 @@ class SearchModel | ||
95 | 95 | ||
96 | // 区别各种列表页面的筛选数据 | 96 | // 区别各种列表页面的筛选数据 |
97 | if (isset($condition['shop_id'])) { | 97 | if (isset($condition['shop_id'])) { |
98 | - $condition['shop'] = $condition['shop_id']; | ||
99 | - unset($condition['shop_id']); | ||
100 | $listData = SearchData::searchByCondition($condition); | 98 | $listData = SearchData::searchByCondition($condition); |
101 | $exclude = 'null'; | 99 | $exclude = 'null'; |
102 | }elseif (isset($condition['brand'])) { | 100 | }elseif (isset($condition['brand'])) { |
-
Please register or login to post a comment