Authored by 郭成尧

'shopGoodsGet'

... ... @@ -33,20 +33,20 @@ module.exports = {
/* 获取商品列表 */
getBrandShopGoods: (req, res, next) => {
shopModel.getBrandShopGoodsData({
domain: req.body.domain,
sort: req.body.sort,
page: req.body.page,
channel: req.body.channel || 'men',
gender: req.body.gender || '1,2,3',
brand: req.body.brand,
shopId: req.body.shopId,
order: req.body.order || 's_t_desc',
limit: req.body.limit || '60',
color: req.body.color,
price: req.body.price,
size: req.body.size,
pd: req.body.pd,
tagsFilter: req.body.tagsFilter
domain: req.query.domain,
sort: req.query.sort,
page: req.query.page,
channel: req.query.channel || 'men',
gender: req.query.gender || '1,2,3',
brand: req.query.brand,
shopId: req.query.shopId,
order: req.query.order || 's_t_desc',
limit: req.query.limit || '60',
color: req.query.color,
price: req.query.price,
size: req.query.size,
pd: req.query.pd,
tagsFilter: req.query.tagsFilter
}).then(result => {
res.json(result);
}).catch(next);
... ...
... ... @@ -35,7 +35,7 @@ const shop = require(`${cRoot}/shop`);
router.get(/\/brand\/share\/(.*)/, shop.shopShare); // 品牌店铺分享页面
router.get(/\/brand\/(.*)/, shop.index); // 店铺首页
router.get('/product/shop/info.json', shop.getShopInfo); // 店铺介绍
router.post('/product/shop/goods.json', shop.getBrandShopGoods); // 店铺商品列表
router.get('/product/shop/goods.json', shop.getBrandShopGoods); // 店铺商品列表
router.post('/product/shop/collect.json', shop.collectShop); // 收藏品牌店铺
// 商品详情controller
... ...
... ... @@ -108,7 +108,7 @@
}
this.inSearching = true;
$.post(this.url, Object.assign({
$.get(this.url, Object.assign({
page: this.page
}, this.filter, locationQuery)).done(result => {
if (result.code === 200) {
... ...