Showing
1 changed file
with
6 additions
and
1 deletions
@@ -40,7 +40,7 @@ let $input = $('#search-input').find('input[name="query"]'), | @@ -40,7 +40,7 @@ let $input = $('#search-input').find('input[name="query"]'), | ||
40 | 40 | ||
41 | let shopId, sort, brand, outlets, app_type, age_level, msort, misort, coin, app_version, students, couponId, searchFrom; | 41 | let shopId, sort, brand, outlets, app_type, age_level, msort, misort, coin, app_version, students, couponId, searchFrom; |
42 | let size, color, style, standard, gender, price, p_d, oldquery, query, limited, specialoffer, specialsale_id, promotion; | 42 | let size, color, style, standard, gender, price, p_d, oldquery, query, limited, specialoffer, specialsale_id, promotion; |
43 | -let couponCode; | 43 | +let couponCode, categoryId; |
44 | 44 | ||
45 | // 默认筛选条件 | 45 | // 默认筛选条件 |
46 | let defaultOpt = require('common/query-param'); | 46 | let defaultOpt = require('common/query-param'); |
@@ -243,6 +243,7 @@ students = getQueryString('students'); | @@ -243,6 +243,7 @@ students = getQueryString('students'); | ||
243 | couponId = getQueryString('coupon_id'); | 243 | couponId = getQueryString('coupon_id'); |
244 | couponCode = getQueryString('coupon_code'); | 244 | couponCode = getQueryString('coupon_code'); |
245 | searchFrom = getQueryString('from'); | 245 | searchFrom = getQueryString('from'); |
246 | +categoryId = getQueryString('categoryId'); | ||
246 | 247 | ||
247 | if ($defaultgc.children().length > 0) { | 248 | if ($defaultgc.children().length > 0) { |
248 | let fsgcgoods = [], | 249 | let fsgcgoods = [], |
@@ -522,6 +523,10 @@ function search(opt) { | @@ -522,6 +523,10 @@ function search(opt) { | ||
522 | params.from = searchFrom; | 523 | params.from = searchFrom; |
523 | } | 524 | } |
524 | 525 | ||
526 | + if (categoryId) { | ||
527 | + params.categoryId = categoryId; | ||
528 | + } | ||
529 | + | ||
525 | $.extend(setting, defaultOpt, params); | 530 | $.extend(setting, defaultOpt, params); |
526 | searching = true; | 531 | searching = true; |
527 | loading.showLoadingMask(); | 532 | loading.showLoadingMask(); |
-
Please register or login to post a comment