order.js 1.69 KB
/**
 * [个人中心]首页/我的订单
 * @author: xuqi<qi.xu@yoho.cn>
 * @date: 2016/07/04
 */

'use strict';

/**
 * 订单
 */
const index = (req, res) => {
    res.render('index', {
        module: 'me',
        page: 'order',
        isMe: true,
        content: {
            nav: [
                {
                    link: '//www.yohoblk.com',
                    name: 'YOHO!BLK首页'
                },
                {
                    link: '//www.yohoblk.com/me',
                    name: '个人中心'
                },
                {
                    link: '//www.yohoblk.com/me',
                    name: '我的订单'
                }
            ],
            navigation: [
                {
                    focus: true,
                    link: '/me/order',
                    name: '我的订单'
                },
                {
                    link: '/me/return',
                    name: '我的退/换货'
                },
                {
                    link: '/me/collection',
                    name: '我的收藏'
                },
                {
                    link: '/me/message',
                    name: '我的消息'
                },
                {
                    link: '/me/currency',
                    name: '我的YOHO币'
                },
                {
                    link: '/me/setting',
                    name: '个人设置'
                },
                {
                    link: '/me/address',
                    name: '收货地址'
                }
            ],
            banner: 'http://placehold.it/150x120',
            order: true
        }
    });
};

module.exports = {
    index
};