Authored by Zhu-Arthur

拼团BUG修复以及拼团发券关闭判断剩余人数

... ... @@ -245,7 +245,7 @@ export function fetchResourceInfo() {
export function fetchCouponInfo(orderCode, lackNum) {
return (dispatch, getState) => {
let {app: {host}, groupPurchaseDetail: {}} = getState();
let {app: {host}} = getState();
let fetchCouponInfo = (orderCode ,uid) => {
dispatch(couponInfoRequest());
... ... @@ -259,7 +259,9 @@ export function fetchCouponInfo(orderCode, lackNum) {
}
})
.catch(error => {
if (lackNum != 0) {
dispatch(showShareView(true));
}
dispatch(couponInfoFailure(error));
});
};
... ...