Showing
1 changed file
with
15 additions
and
2 deletions
@@ -3,9 +3,22 @@ | @@ -3,9 +3,22 @@ | ||
3 | * @author: wsl<shuiling.wang@yoho.cn> | 3 | * @author: wsl<shuiling.wang@yoho.cn> |
4 | * @date: 2016/7/21 | 4 | * @date: 2016/7/21 |
5 | */ | 5 | */ |
6 | - | ||
7 | require('product/search/list.page.css'); | 6 | require('product/search/list.page.css'); |
8 | 7 | ||
9 | -require('./search/list'); | 8 | +const ProductListWithFilter = require('./list/product-list-with-filter'); |
9 | +const qs = require('yoho-qs'); | ||
10 | + | ||
11 | +let initParams = { | ||
12 | + page: 2, | ||
13 | + currentUrl: location.pathname | ||
14 | +}; | ||
15 | + | ||
16 | +if (qs.query) { | ||
17 | + $.extend(initParams, { query: qs.query }); | ||
18 | +} | ||
19 | + | ||
20 | +new ProductListWithFilter(initParams); | ||
21 | + | ||
22 | +// require('./search/list'); | ||
10 | require('common/footer'); | 23 | require('common/footer'); |
11 | require('./shop/coupon'); | 24 | require('./shop/coupon'); |
-
Please register or login to post a comment