...
|
...
|
@@ -71,10 +71,14 @@ exports.new = (req, res, next) => { |
|
|
* @return {[type]} [description]
|
|
|
*/
|
|
|
exports.brand = (req, res, next) => {
|
|
|
let brandDomain = req.brandDomain || 'sctest1';
|
|
|
let brandDomain = req.params.brandDomain;
|
|
|
let shopId = req.query.shopId;
|
|
|
let resData = {};
|
|
|
|
|
|
if (!brandDomain) {
|
|
|
return next();
|
|
|
}
|
|
|
|
|
|
// shopId存在,直接走店铺
|
|
|
if (shopId) {
|
|
|
return shop(shopId, req, res, next);
|
...
|
...
|
@@ -82,6 +86,7 @@ exports.brand = (req, res, next) => { |
|
|
|
|
|
// 获取品牌信息
|
|
|
list.getBrandInfo({domain: brandDomain}).then(brandInfo => {
|
|
|
|
|
|
switch (parseInt(brandInfo.type, 10)) {
|
|
|
case 1:
|
|
|
// 搜索
|
...
|
...
|
|