...
|
...
|
@@ -130,7 +130,6 @@ const shop = { |
|
|
|
|
|
let title = brandInfo.title;
|
|
|
let goodsList = productProcess.processProductList(_.get(goodsListApi, 'data.product_list', []));
|
|
|
let goodsTotal = _.get(goodsListApi, 'data.total', 0);
|
|
|
|
|
|
brandInfo.banner = banner;
|
|
|
|
...
|
...
|
@@ -146,7 +145,6 @@ const shop = { |
|
|
keywords: title + ',' + title + '服装服饰,' + title + '潮流服装服饰',
|
|
|
description: title + '|Yoho!Buy有货' + title + '潮流服饰官方授权店!100%品牌正品保证,支持货到付款。',
|
|
|
brandId: brandId,
|
|
|
goodsTotal: goodsTotal,
|
|
|
brandInfo: brandInfo,
|
|
|
goodsList: goodsList,
|
|
|
shopPage: true,
|
...
|
...
|
@@ -164,26 +162,17 @@ const shop = { |
|
|
let channel = req.yoho.channel || 'boys';
|
|
|
let uid = req.user.uid || 0;
|
|
|
let udid = req.sessionID || 'yoho';
|
|
|
let searchParam = {
|
|
|
isApp: req.yoho.isApp,
|
|
|
shop_id: shopId,
|
|
|
app_type: req.query.app_type,
|
|
|
type: 'default',
|
|
|
order: '0',
|
|
|
page: 1
|
|
|
};
|
|
|
|
|
|
if (!shopId) {
|
|
|
return next();
|
|
|
}
|
|
|
|
|
|
co(function* () {
|
|
|
let [bannerData, favCountData, decoratorsData, categoryData, goodsListApi] = yield Promise.all([
|
|
|
let [bannerData, favCountData, decoratorsData, categoryData] = yield Promise.all([
|
|
|
redsShopModel.getBanner(shopId),
|
|
|
redsShopModel.favCount(shopId, uid, channel, udid),
|
|
|
redsShopModel.getShopsdecorator(shopId),
|
|
|
redsShopModel.getShopCategory(shopId, channel),
|
|
|
searchModel.getShopGoods(searchParam)
|
|
|
redsShopModel.getShopCategory(shopId, channel)
|
|
|
]);
|
|
|
|
|
|
let banner = _.get(bannerData, 'data.banner');
|
...
|
...
|
@@ -193,7 +182,6 @@ const shop = { |
|
|
let category = redShopPrcs.category(_.get(categoryData, 'data', []), shopId);
|
|
|
|
|
|
let goodsListBySkn = yield listModel.searchProductBySkn(decoratorsAll.skns);
|
|
|
let goodsTotal = _.get(goodsListApi, 'data.total', 0);
|
|
|
let decorators = redShopPrcs.pushGoodsInfo(decoratorsAll.decorators, goodsListBySkn);
|
|
|
|
|
|
res.render('newshop/shop-reds', {
|
...
|
...
|
@@ -224,7 +212,6 @@ const shop = { |
|
|
module: 'product',
|
|
|
page: 'shop-reds',
|
|
|
shopId,
|
|
|
goodsTotal,
|
|
|
banner, shopInfo, favCount, decorators, category
|
|
|
});
|
|
|
})().catch(next);
|
...
|
...
|
|