...
|
...
|
@@ -575,7 +575,17 @@ export function getShopCartCount() { |
|
|
return new NewArrivalService(app.host).getShopCartCount(uid,'NewArrival')
|
|
|
.then(json => {
|
|
|
let cart_goods_count = json ? json.cart_goods_count: 0;
|
|
|
dispatch(getShopCartCountSuccess(cart_goods_count));
|
|
|
|
|
|
new NewArrivalService(app.globalHost).getGlobalShopCartCount(uid,'NewArrival')
|
|
|
.then(json => {
|
|
|
let count = json ? json.cart_goods_count: 0;
|
|
|
cart_goods_count = cart_goods_count + count;
|
|
|
dispatch(getShopCartCountSuccess(cart_goods_count));
|
|
|
})
|
|
|
.catch(error => {
|
|
|
dispatch(getShopCartCountSuccess(cart_goods_count));
|
|
|
});
|
|
|
|
|
|
})
|
|
|
.catch(error => {
|
|
|
dispatch(getShopCartCountFailure(error));
|
...
|
...
|
|