Authored by biao

update for return list banner

... ... @@ -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);
};
... ...
var _alert = require('../plugins/dialog').Alert;
var lazyLoad = require('yoho-jquery-lazyload');
lazyLoad($('img.banner-img'));
$('.cancel-apply').on('click', function() {
var id = $(this).data('applyId');
... ...