|
@@ -91,10 +91,6 @@ const miniCart = (req, res, next) => { |
|
@@ -91,10 +91,6 @@ const miniCart = (req, res, next) => { |
91
|
data: ret
|
91
|
data: ret
|
92
|
};
|
92
|
};
|
93
|
|
93
|
|
94
|
- if (req.query.json === '1') {
|
|
|
95
|
- return res.send(dest);
|
|
|
96
|
- }
|
|
|
97
|
-
|
|
|
98
|
res.type('text/javascript');
|
94
|
res.type('text/javascript');
|
99
|
res.send(req.query.callback + '(' + JSON.stringify(dest) + ')');
|
95
|
res.send(req.query.callback + '(' + JSON.stringify(dest) + ')');
|
100
|
}).catch(next);
|
96
|
}).catch(next);
|
|
@@ -153,10 +149,6 @@ const cart = (req, res, next) => { |
|
@@ -153,10 +149,6 @@ const cart = (req, res, next) => { |
153
|
service.getCartData(uid, shoppingKey)
|
149
|
service.getCartData(uid, shoppingKey)
|
154
|
.then(ret => {
|
150
|
.then(ret => {
|
155
|
|
151
|
|
156
|
- if (req.query.json === '1') {
|
|
|
157
|
- return res.send(ret);
|
|
|
158
|
- }
|
|
|
159
|
-
|
|
|
160
|
return res.render('cart', {
|
152
|
return res.render('cart', {
|
161
|
title: '购物车 | ' + (res.locals.title || ''),
|
153
|
title: '购物车 | ' + (res.locals.title || ''),
|
162
|
module: 'cart',
|
154
|
module: 'cart',
|