...
|
...
|
@@ -12,7 +12,7 @@ const _ = require('lodash'); |
|
|
const helpers = global.yoho.helpers;
|
|
|
|
|
|
/**
|
|
|
* 店铺基础模板
|
|
|
* 店铺 - 基础模板
|
|
|
*/
|
|
|
const _baseShop = (req, res, shopInfo) => {
|
|
|
|
...
|
...
|
@@ -34,7 +34,7 @@ const _baseShop = (req, res, shopInfo) => { |
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 店铺首页 || 若店铺使用基础模板就使用基础模板
|
|
|
* 店铺首页
|
|
|
* @return int
|
|
|
*/
|
|
|
const _shop = (req, res, shopId) => {
|
...
|
...
|
@@ -68,7 +68,7 @@ const _shop = (req, res, shopId) => { |
|
|
listModel.getShopData(req, shopId, uid, isApp).then(result => {
|
|
|
if (result.goBrand) {
|
|
|
|
|
|
// 跳转基础模板
|
|
|
/* 若店铺使用基础模板跳转基础模板 */
|
|
|
_baseShop(req, res, result.goBrand);
|
|
|
} else {
|
|
|
result = _.assign(result, pageHeader);
|
...
|
...
|
@@ -101,7 +101,12 @@ const category = (req, res) => { |
|
|
});
|
|
|
};
|
|
|
|
|
|
// 品牌|店铺落地页
|
|
|
/**
|
|
|
* 品牌店铺的入口
|
|
|
* @param req
|
|
|
* @param res
|
|
|
* @param next
|
|
|
*/
|
|
|
const brand = (req, res, next) => {
|
|
|
let params = Object.assign({}, req.query);
|
|
|
let domain = req.query.domain;
|
...
|
...
|
@@ -179,7 +184,12 @@ const brand = (req, res, next) => { |
|
|
}).catch(next);
|
|
|
};
|
|
|
|
|
|
// 店铺简介
|
|
|
/**
|
|
|
* 店铺简介
|
|
|
* @param req
|
|
|
* @param res
|
|
|
* @param next
|
|
|
*/
|
|
|
const shopIntro = (req, res, next) => {
|
|
|
let shopId = req.query.shop_id;
|
|
|
let appVersion = req.body.appVersion || false;
|
...
|
...
|
|