...
|
...
|
@@ -16,15 +16,18 @@ const index = (req, res, next) => { |
|
|
const uid = req.user.uid;
|
|
|
const page = req.query.page;
|
|
|
|
|
|
returns.getUserReturn(uid, page).then(result => {
|
|
|
Promise.all([returns.getUserReturn(uid, page), mcHandler.getMeThumb()]).then(result => {
|
|
|
const pageData = result[0];
|
|
|
const thumb = result[1];
|
|
|
|
|
|
res.display('index', {
|
|
|
page: 'return-list',
|
|
|
isMe: true,
|
|
|
content: Object.assign({
|
|
|
nav: mcHandler.getMeCrumb('我的退/换货'),
|
|
|
navigation: mcHandler.getSideMenu('我的退/换货'),
|
|
|
banner: 'http://placehold.it/{width}x{height}'
|
|
|
}, result)
|
|
|
banner: thumb
|
|
|
}, pageData)
|
|
|
});
|
|
|
}).catch(next);
|
|
|
};
|
...
|
...
|
|