...
|
...
|
@@ -121,14 +121,14 @@ const shop = { |
|
|
co(function* () {
|
|
|
let banner = yield listModel.getBrandBanner(brandId);
|
|
|
let brandInfo = yield listModel.getBrandIntro(brandId, uid);
|
|
|
let goodListApi = yield searchModel.getBrandGoods(searchParam);
|
|
|
let goodsListApi = yield searchModel.getBrandGoods(searchParam);
|
|
|
|
|
|
let title = brandInfo.title;
|
|
|
let goodList = productProcess.processProductList(_.get(goodListApi, 'data.product_list', []));
|
|
|
let goodsList = productProcess.processProductList(_.get(goodsListApi, 'data.product_list', []));
|
|
|
|
|
|
brandInfo.banner = banner;
|
|
|
|
|
|
res.render('newshop/brand', {
|
|
|
res.render('newshop/shop-brand', {
|
|
|
module: 'product',
|
|
|
page: 'brand-index',
|
|
|
pageHeader: headerModel.setNav({
|
...
|
...
|
@@ -141,7 +141,7 @@ const shop = { |
|
|
description: title + '|Yoho!Buy有货' + title + '潮流服饰官方授权店!100%品牌正品保证,支持货到付款。',
|
|
|
brandId: brandId,
|
|
|
brandInfo: brandInfo,
|
|
|
newGoods: goodList,
|
|
|
goodsList: goodsList,
|
|
|
shopPage: true,
|
|
|
_noLazy: true,
|
|
|
localCss: true
|
...
|
...
|
@@ -153,7 +153,7 @@ const shop = { |
|
|
* 红人店铺
|
|
|
*/
|
|
|
redShop(req, res, next) {
|
|
|
let shopId = req.shopInfo.shopId; // test3 792
|
|
|
let shopId = req.shopInfo.shopId;
|
|
|
let channel = req.yoho.channel || 'boys';
|
|
|
let uid = req.user.uid || 0;
|
|
|
let udid = req.sessionID || 'yoho';
|
...
|
...
|
@@ -216,6 +216,37 @@ const shop = { |
|
|
*/
|
|
|
list(req, res, next) {
|
|
|
co(function* () {
|
|
|
let title = '商品列表';
|
|
|
let shopId = req.shopInfo.shopId;
|
|
|
let searchParam = {
|
|
|
isApp: req.yoho.isApp,
|
|
|
shop_id: shopId,
|
|
|
app_type: req.query.app_type,
|
|
|
type: 'default',
|
|
|
order: '0',
|
|
|
page: 1
|
|
|
};
|
|
|
|
|
|
let goodsListApi = yield searchModel.getShopGoods(searchParam);
|
|
|
let goodsList = productProcess.processProductList(_.get(goodsListApi, 'data.product_list', []));
|
|
|
|
|
|
res.render('newshop/shop-list', {
|
|
|
module: 'product',
|
|
|
page: 'shop-list',
|
|
|
pageHeader: headerModel.setNav({
|
|
|
navTitle: title
|
|
|
}),
|
|
|
showDownloadApp: true,
|
|
|
pageFooter: true,
|
|
|
title: title + '|' + title + '潮流服装服饰-Yoho!Buy有货',
|
|
|
keywords: title + ',' + title + '服装服饰,' + title + '潮流服装服饰',
|
|
|
description: title + '|Yoho!Buy有货' + title + '潮流服饰官方授权店!100%品牌正品保证,支持货到付款。',
|
|
|
shopId: shopId,
|
|
|
goodsList: goodsList,
|
|
|
shopPage: true,
|
|
|
_noLazy: true,
|
|
|
localCss: true
|
|
|
});
|
|
|
|
|
|
})().catch(next);
|
|
|
},
|
...
|
...
|
|