Authored by 孙凯

Merge branch 'brand_store' of http://git.yoho.cn/mobile/YH_RNComponent into brand_store

... ... @@ -2,6 +2,7 @@
import ReactNative from 'react-native';
import CouponService from '../../services/CouponService';
const Platform = require('Platform');
const {
SET_HOST,
... ... @@ -69,7 +70,13 @@ export function couponCenter(reload = false) {
dispatch(couponCenterRequest());
return ReactNative.NativeModules.YH_CouponHelper.couponFloors(contentCode, uid)
.then(json => {
let payload = parseFloors(json);
let payload;
if (Platform.OS === 'android') {
payload = parseFloors(JSON.parse(json));
}else{
payload = parseFloors(json);
}
dispatch(couponCenterSuccess(payload));
})
.catch(error => {
... ...