...
|
...
|
@@ -575,9 +575,19 @@ export function getShopCartCount() { |
|
|
return new NewArrivalService(app.host).getShopCartCount(uid,'NewArrival')
|
|
|
.then(json => {
|
|
|
let cart_goods_count = json ? json.cart_goods_count: 0;
|
|
|
|
|
|
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));
|
|
|
});
|
|
|
};
|
...
|
...
|
|