...
|
...
|
@@ -91,10 +91,6 @@ const miniCart = (req, res, next) => { |
|
|
data: ret
|
|
|
};
|
|
|
|
|
|
if (req.query.json === '1') {
|
|
|
return res.send(dest);
|
|
|
}
|
|
|
|
|
|
res.type('text/javascript');
|
|
|
res.send(req.query.callback + '(' + JSON.stringify(dest) + ')');
|
|
|
}).catch(next);
|
...
|
...
|
@@ -153,10 +149,6 @@ const cart = (req, res, next) => { |
|
|
service.getCartData(uid, shoppingKey)
|
|
|
.then(ret => {
|
|
|
|
|
|
if (req.query.json === '1') {
|
|
|
return res.send(ret);
|
|
|
}
|
|
|
|
|
|
return res.render('cart', {
|
|
|
title: '购物车 | ' + (res.locals.title || ''),
|
|
|
module: 'cart',
|
...
|
...
|
|