index.js
466 Bytes
/**
* 个人中心二维码 controller
* @author: chengyao.guo<chengyao.guo@yoho.cn>
* @date: 2016/08/10
*/
'use strict';
// const indexModel = require('../models/index');
exports.index = (req, res, next) => {
let params = {
uid: req.user.uid || ''
};
// indexModel.index(params).then(result => {
// if (result) {
// res.render('index', result);
// }
// }).catch(next);
res.render('index', params);
};