currency.js 1.03 KB
/**
 * [个人中心]yoho币
 * @author: jiangmin
 * @date: 2016/07/11
 */

'use strict';
const mcHandler = require('../models/menu-crumb-handler');

// const currencyModel = require('../models/currency');

/**
 * yoho币页面加载
 */
const index = (req, res) => {
    res.render('index', {
        module: 'me',
        page: 'currency',
        isMe: true,
        content: {
            nav: mcHandler.getMeCrumb(),
            navigation: mcHandler.getSideMenu('YOHO币'),
            banner: 'http://placehold.it/150x120',
            currency: true,
            tabs: [
                {
                    text: '全部明细',
                    isActive: true,
                    type: 'all'
                },
                {
                    text: '全部收入',
                    type: 'paying'
                },
                {
                    text: '全部支出',
                    type: 'delivering'
                }
            ],
            title: 'YOHO币'
        }
    });
};

module.exports = {
    index
};