Showing
3 changed files
with
16 additions
and
16 deletions
@@ -33,20 +33,20 @@ module.exports = { | @@ -33,20 +33,20 @@ module.exports = { | ||
33 | /* 获取商品列表 */ | 33 | /* 获取商品列表 */ |
34 | getBrandShopGoods: (req, res, next) => { | 34 | getBrandShopGoods: (req, res, next) => { |
35 | shopModel.getBrandShopGoodsData({ | 35 | shopModel.getBrandShopGoodsData({ |
36 | - domain: req.body.domain, | ||
37 | - sort: req.body.sort, | ||
38 | - page: req.body.page, | ||
39 | - channel: req.body.channel || 'men', | ||
40 | - gender: req.body.gender || '1,2,3', | ||
41 | - brand: req.body.brand, | ||
42 | - shopId: req.body.shopId, | ||
43 | - order: req.body.order || 's_t_desc', | ||
44 | - limit: req.body.limit || '60', | ||
45 | - color: req.body.color, | ||
46 | - price: req.body.price, | ||
47 | - size: req.body.size, | ||
48 | - pd: req.body.pd, | ||
49 | - tagsFilter: req.body.tagsFilter | 36 | + domain: req.query.domain, |
37 | + sort: req.query.sort, | ||
38 | + page: req.query.page, | ||
39 | + channel: req.query.channel || 'men', | ||
40 | + gender: req.query.gender || '1,2,3', | ||
41 | + brand: req.query.brand, | ||
42 | + shopId: req.query.shopId, | ||
43 | + order: req.query.order || 's_t_desc', | ||
44 | + limit: req.query.limit || '60', | ||
45 | + color: req.query.color, | ||
46 | + price: req.query.price, | ||
47 | + size: req.query.size, | ||
48 | + pd: req.query.pd, | ||
49 | + tagsFilter: req.query.tagsFilter | ||
50 | }).then(result => { | 50 | }).then(result => { |
51 | res.json(result); | 51 | res.json(result); |
52 | }).catch(next); | 52 | }).catch(next); |
@@ -35,7 +35,7 @@ const shop = require(`${cRoot}/shop`); | @@ -35,7 +35,7 @@ const shop = require(`${cRoot}/shop`); | ||
35 | router.get(/\/brand\/share\/(.*)/, shop.shopShare); // 品牌店铺分享页面 | 35 | router.get(/\/brand\/share\/(.*)/, shop.shopShare); // 品牌店铺分享页面 |
36 | router.get(/\/brand\/(.*)/, shop.index); // 店铺首页 | 36 | router.get(/\/brand\/(.*)/, shop.index); // 店铺首页 |
37 | router.get('/product/shop/info.json', shop.getShopInfo); // 店铺介绍 | 37 | router.get('/product/shop/info.json', shop.getShopInfo); // 店铺介绍 |
38 | -router.post('/product/shop/goods.json', shop.getBrandShopGoods); // 店铺商品列表 | 38 | +router.get('/product/shop/goods.json', shop.getBrandShopGoods); // 店铺商品列表 |
39 | router.post('/product/shop/collect.json', shop.collectShop); // 收藏品牌店铺 | 39 | router.post('/product/shop/collect.json', shop.collectShop); // 收藏品牌店铺 |
40 | 40 | ||
41 | // 商品详情controller | 41 | // 商品详情controller |
@@ -108,7 +108,7 @@ | @@ -108,7 +108,7 @@ | ||
108 | } | 108 | } |
109 | 109 | ||
110 | this.inSearching = true; | 110 | this.inSearching = true; |
111 | - $.post(this.url, Object.assign({ | 111 | + $.get(this.url, Object.assign({ |
112 | page: this.page | 112 | page: this.page |
113 | }, this.filter, locationQuery)).done(result => { | 113 | }, this.filter, locationQuery)).done(result => { |
114 | if (result.code === 200) { | 114 | if (result.code === 200) { |
-
Please register or login to post a comment