redenvelopes.js
394 Bytes
/**
* 个人中心 我的红包
*/
'use strict';
const redenvelopesModel = require('../models/redenvelopes-model');
const index = (req, res, next)=>{
let uid = req.user.uid;
req.ctx(redenvelopesModel).redenvelopesList(uid).then(result => {
res.render('redenvelopes', {
meRedEnvelopes: result
});
}).catch(next);
};
module.exports = {
index
};