spread.js
372 Bytes
/**
* 个人中心---我的推广
* @author yyq <yanqing.yang@yoho.cn>
*/
'use strict';
const spreadModel = require('../models/spread');
exports.index = (req, res, next) => {
req.ctx(spreadModel).getIndexData(req.user.uid).then(result => {
res.render('spread', {
page: 'spread',
spread: result
});
}).catch(next);
};