...
|
...
|
@@ -7,6 +7,25 @@ |
|
|
|
|
|
// const returns = require('../models/returns');
|
|
|
const mcHandler = require('../models/menu-crumb-handler');
|
|
|
const returnModel = require('../models/returns');
|
|
|
|
|
|
|
|
|
const index = (req, res, next) => {
|
|
|
const uid = global.yoho.uid || '8050560';
|
|
|
const page = req.query.page;
|
|
|
|
|
|
returnModel.getUserReturn(uid, page).then(result => {
|
|
|
res.display('index', {
|
|
|
page: 'order',
|
|
|
isMe: true,
|
|
|
content: Object.assign({
|
|
|
nav: mcHandler.getMeCrumb('我的退/换货'),
|
|
|
navigation: mcHandler.getSideMenu('我的退/换货'),
|
|
|
banner: 'http://placehold.it/{width}x{height}'
|
|
|
}, result)
|
|
|
});
|
|
|
}).catch(next);
|
|
|
};
|
|
|
|
|
|
const detail = (req, res, next) => {
|
|
|
next();
|
...
|
...
|
@@ -37,6 +56,7 @@ const exchange = (req, res, next) => { |
|
|
};
|
|
|
|
|
|
module.exports = {
|
|
|
index,
|
|
|
detail,
|
|
|
refund,
|
|
|
exchange
|
...
|
...
|
|