...
|
...
|
@@ -35,7 +35,7 @@ const shop = { |
|
|
return shop.brand(req, res, next); // 品牌列表,有品牌ID就直接展示为品牌
|
|
|
}
|
|
|
|
|
|
return co(function*() {
|
|
|
return co(function* () {
|
|
|
if (shopId) {
|
|
|
let shopInfoApi = (yield shopModel.getShopInfo(shopId, uid)) || {};
|
|
|
let shopInfo = _.get(shopInfoApi, 'data', {});
|
...
|
...
|
@@ -97,7 +97,7 @@ const shop = { |
|
|
let uid = req.user.uid;
|
|
|
|
|
|
if (!brandId) {
|
|
|
return res.json({code: 404});
|
|
|
return res.json({ code: 404 });
|
|
|
}
|
|
|
return shopModel.getBrandIntro(brandId, uid).then(result => {
|
|
|
res.json(result);
|
...
|
...
|
@@ -112,7 +112,7 @@ const shop = { |
|
|
let isApp = req.query.app_version || req.query.appVersion || false;
|
|
|
|
|
|
return searchModel.searchProductBySkn(skns).then(hotList => {
|
|
|
hotList = productProcess.processProductList(hotList, {isApp: isApp});
|
|
|
hotList = productProcess.processProductList(hotList, { isApp: isApp });
|
|
|
_.forEach(hotList, (value, key) => {
|
|
|
hotList[key].tags = {};
|
|
|
hotList[key].is_soon_sold_out = false;
|
...
|
...
|
@@ -202,7 +202,7 @@ const shop = { |
|
|
let goodsListBySkn = yield searchModel.searchProductBySkn(decoratorsAll.skns);
|
|
|
let decorators = shopPrcs.pushGoodsInfo(decoratorsAll.decorators, goodsListBySkn);
|
|
|
|
|
|
shopInfo.shop_intro_link = helpers.urlFormat('/product/index/intro', {shop_id: shopId});
|
|
|
shopInfo.shop_intro_link = helpers.urlFormat('/product/index/intro', { shop_id: shopId });
|
|
|
|
|
|
res.render('newshop/shop-reds', {
|
|
|
title: shopInfo.shop_name + '|' + shopInfo.shop_name + '潮流服装服饰-Yoho!Buy有货',
|
...
|
...
|
@@ -270,6 +270,9 @@ const shop = { |
|
|
}
|
|
|
}
|
|
|
|
|
|
let appPath = 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"1","shop_id":"' +
|
|
|
shopId + '","shop_name":"' + shopInfo.shop_name + '"}}';
|
|
|
|
|
|
res.render('newshop/shop-list', {
|
|
|
module: 'product',
|
|
|
page: 'shop-list',
|
...
|
...
|
@@ -284,6 +287,7 @@ const shop = { |
|
|
shopId: shopId,
|
|
|
shopInfo: shopInfo,
|
|
|
goodsList: goodsList,
|
|
|
appPath: appPath,
|
|
|
shopPage: true,
|
|
|
_noLazy: true,
|
|
|
localCss: true,
|
...
|
...
|
|