Showing
1 changed file
with
3 additions
and
1 deletions
@@ -245,7 +245,7 @@ export function fetchResourceInfo() { | @@ -245,7 +245,7 @@ export function fetchResourceInfo() { | ||
245 | 245 | ||
246 | export function fetchCouponInfo(orderCode, lackNum) { | 246 | export function fetchCouponInfo(orderCode, lackNum) { |
247 | return (dispatch, getState) => { | 247 | return (dispatch, getState) => { |
248 | - let {app: {host}, groupPurchaseDetail: {}} = getState(); | 248 | + let {app: {host}} = getState(); |
249 | 249 | ||
250 | let fetchCouponInfo = (orderCode ,uid) => { | 250 | let fetchCouponInfo = (orderCode ,uid) => { |
251 | dispatch(couponInfoRequest()); | 251 | dispatch(couponInfoRequest()); |
@@ -259,7 +259,9 @@ export function fetchCouponInfo(orderCode, lackNum) { | @@ -259,7 +259,9 @@ export function fetchCouponInfo(orderCode, lackNum) { | ||
259 | } | 259 | } |
260 | }) | 260 | }) |
261 | .catch(error => { | 261 | .catch(error => { |
262 | + if (lackNum != 0) { | ||
262 | dispatch(showShareView(true)); | 263 | dispatch(showShareView(true)); |
264 | + } | ||
263 | dispatch(couponInfoFailure(error)); | 265 | dispatch(couponInfoFailure(error)); |
264 | }); | 266 | }); |
265 | }; | 267 | }; |
-
Please register or login to post a comment