list.js
1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
'use strict';
const headerModel = require('../../../doraemon/models/header');
const _ = require('lodash');
const list = {
index: (req, res) => {
let channel = req.query.channel || req.cookies._Channel || 'boys';
headerModel.requestHeaderData(channel).then(header => {
res.render('list', _.assign(header, {
navPath: {
nav: true,
pathNav: [
{
link: true,
href: '',
pathTitle: '',
name: 'MEN首页'
},
{
link: true,
href: '',
pathTitle: '',
name: '咨询'
},
{
link: false,
href: '',
pathTitle: '',
name: '咨询'
}
]
}
}));
});
}
};
module.exports = list;