index.js 578 Bytes
/**
 * 频道页面
 * @author: Bi Kai<kai.bi@yoho.cn>
 * @date: 2016/05/09
 */
const channelModel = require('../models/channel');
var helpers = require('../../../library/helpers');

const mod = 'channel';

/**
 * 男生首页
 */
exports.boys = (req, res) => {
    channelModel.getChannelDate({
        gender: '1,3'
    }).then(result => {

        res.render('channel', Object.assign({
            module: mod,
            page: 'home',
            homeHeader: {
                searchUrl: helpers.url('/search', null, 'search')
            }
        }, result));
    });
};