...
|
...
|
@@ -67,7 +67,7 @@ export function couponCenter(reload = false) { |
|
|
|
|
|
let fetchCouponInfo = (contentCode, uid) => {
|
|
|
dispatch(couponCenterRequest());
|
|
|
return new CouponService(getState().coupon.host).fetchFloors(contentCode, uid)
|
|
|
return ReactNative.NativeModules.YH_CouponHelper.couponFloors(contentCode, uid)
|
|
|
.then(json => {
|
|
|
let payload = parseFloors(json);
|
|
|
dispatch(couponCenterSuccess(payload));
|
...
|
...
|
@@ -213,7 +213,7 @@ export function getCoupon(couponID) { |
|
|
}
|
|
|
|
|
|
dispatch(getCouponRequest());
|
|
|
return new CouponService(getState().coupon.host).getCoupon(couponID, uid)
|
|
|
return ReactNative.NativeModules.YH_CouponHelper.getCoupon(couponID, uid)
|
|
|
.then(json => {
|
|
|
success();
|
|
|
})
|
...
|
...
|
|