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

'use strict';

const mcHandler = require('../models/menu-crumb-handler');
const orderModel = require('../models/order');

// fakeuid = '10931021',
/**
 * 订单
 */
const index = (req, res) => {
    orderModel.getOrderData().then(result => {
        res.render('index', {
            page: 'order',
            isMe: true,
            content: Object.assign({
                nav: mcHandler.getMeCrumb(),
                navigation: mcHandler.getSideMenu('我的订单'),
                banner: 'http://placehold.it/{width}x{height}'
            }, result)
        });
    });
};

module.exports = {
    index
};