list.js 1.16 KB

'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;