index.js
641 Bytes
/**
* 主页
* @author: shenzm<zhimin.shen@yoho.cn>
* @date: 2016/07/18
*/
'use strict';
const _ = require('lodash');
const helpers = global.yoho.helpers;
/**
* 个人中心主页
*/
const component = {
index: (req, res, next) => {
var testData = {
isLogin: false,
head_ico: '',
profile_name: 'XXX',
signinUrl: '/home',
wait_pay_num: 1,
wait_cargo_num: 2,
send_cargo_num: 3
};
res.render('index', _.merge({
module: 'home',
page: 'index'
}, testData));
}
};
module.exports = component;