• This project
    • Loading...
  • Sign in

张泽世 / yohobuywap-node · Files

Go to a project

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • yohobuywap-node
  • apps
  • channel
  • controllers
  • index.js
  • 增加频道页面
    9c6ea902
    by 毕凯
    2016-05-09 17:43:13 +0800  
    Browse Files
index.js 395 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/**
 * 频道页面
 * @author: Bi Kai<kai.bi@yoho.cn>
 * @date: 2016/05/09
 */
const channelModel = require('../models/channel');

const mod = 'channel';

/**
 * 男生首页
 */
exports.boys = (req, res) => {
    channelModel.getChannelResource().then(result => {

        res.render('channel', Object.assign({
            module: mod,
            page: 'home'
        }, result));
    });
};