...
|
...
|
@@ -56,7 +56,7 @@ const _baseShop = (req, res, data) => { |
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 店铺首页 || 若店铺使用基础模板跳转品牌页
|
|
|
* 店铺首页 || 若店铺使用基础模板就使用基础模板
|
|
|
* @return int
|
|
|
*/
|
|
|
const _shop = (req, res, shopId) => {
|
...
|
...
|
@@ -125,12 +125,18 @@ const category = (req, res) => { |
|
|
// 品牌|店铺落地页
|
|
|
const brand = (req, res, next) => {
|
|
|
let params = Object.assign({}, req.query);
|
|
|
let domain = req.query.domain || 'colormad';
|
|
|
let domain = req.query.domain;
|
|
|
let uid = req.user.uid;
|
|
|
let brandId = 0;
|
|
|
let brandLogo = {};
|
|
|
let title = '';
|
|
|
|
|
|
/* tar add 160909 如果有 shop_id 直接跳转 */
|
|
|
if (req.query.shop_id) {
|
|
|
_shop(req, res, req.query.shop_id);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (!domain) {
|
|
|
res.redirect('/?go=1');
|
|
|
}
|
...
|
...
|
|