spread.js
388 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, req.query.page).then(result => {
res.render('spread', {
page: 'spread',
spread: result
});
}).catch(next);
};