...
|
...
|
@@ -17,6 +17,7 @@ const Query = { |
|
|
index: (req, res, next) => {
|
|
|
let q = req.query;
|
|
|
let query = q.query || '';
|
|
|
let channel = req.cookies._Channel || req.query._Channel || 'men';
|
|
|
|
|
|
q.page = parseInt(q.page || 1, 10);
|
|
|
q.order = q.order || 's_n_desc';
|
...
|
...
|
@@ -36,7 +37,7 @@ const Query = { |
|
|
|
|
|
if (result && result.code === 200 && result.data) {
|
|
|
let data = camelCase(result.data);
|
|
|
let nav = [DataHelper.getChannelNav()];
|
|
|
let nav = [DataHelper.getChannelNav(channel)];
|
|
|
|
|
|
nav.push({
|
|
|
name: query ? `"${query}" 共${data.total}个结果` : `共${data.total}个结果`
|
...
|
...
|
|