...
|
...
|
@@ -16,6 +16,7 @@ const searchModel = require(`${mRoot}/search`); |
|
|
const shopModel = require(`${mRoot}/shop`);
|
|
|
const searchProcess = require(`${utils}/search-process`);
|
|
|
const stringProcess = require(`${utils}/string-process`);
|
|
|
const listParamsProcess = require(`${utils}/list-params-process`);
|
|
|
|
|
|
/**
|
|
|
* 从 useragent 获取 uid
|
...
|
...
|
@@ -212,7 +213,7 @@ const category = (req, res, next) => { |
|
|
}
|
|
|
|
|
|
let params = Object.assign({}, req.query);
|
|
|
let seoTitle = decodeURIComponent(req.query.title || req.query.sort_name);
|
|
|
let seoTitle = decodeURIComponent(req.query.title || req.query.sort_name || '商品列表');
|
|
|
|
|
|
/* 勿修改,唤起 APP 使用 */
|
|
|
let appParams = Object.assign({}, req.query, {
|
...
|
...
|
@@ -269,6 +270,16 @@ const category = (req, res, next) => { |
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 参数处理的前置处理,新的路由
|
|
|
*/
|
|
|
const listNew = (req, res, next) => {
|
|
|
req.query = listParamsProcess.getParams(req.url);
|
|
|
|
|
|
// 转发到旧的处理方法
|
|
|
category(req, res, next);
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 品牌店铺的入口
|
|
|
* @param req
|
|
|
* @param res
|
...
|
...
|
@@ -547,5 +558,6 @@ module.exports = { |
|
|
shopFav,
|
|
|
baseShopFav,
|
|
|
shopCategory,
|
|
|
getBrandCouponsList
|
|
|
getBrandCouponsList,
|
|
|
listNew
|
|
|
}; |
...
|
...
|
|