Authored by 于良

使用native http请求 review by chenlin

'use strict';
import Request from '../../common/services/Request';
import Request from '../../common/services/NativeRequest';
export default class BrandStoreService {
... ...
'use strict';
import Request from '../../common/services/Request';
import Request from '../../common/services/NativeRequest';
export default class BrandService {
... ...
'use strict';
import Request from '../../common/services/Request';
import Request from '../../common/services/NativeRequest';
export default class CategoryBService {
... ...
'use strict';
import Request from '../../common/services/Request';
import Request from '../../common/services/NativeRequest';
export default class CategoryService {
... ...
'use strict';
import Request from '../../common/services/Request';
import Request from '../../common/services/NativeRequest';
export default class InterestService {
... ...
... ... @@ -51,7 +51,7 @@ export default class NativeRequest {
url,
body,
};
let response = await ReactNative.NativeModules.YH_CouponHelper.get(params);
let response = await ReactNative.NativeModules.YH_NativeRequest.get(params);
let data = await this._parseResponse(response);
return data;
... ... @@ -92,7 +92,7 @@ export default class NativeRequest {
url,
body,
};
let response = await ReactNative.NativeModules.YH_CouponHelper.post(params);
let response = await ReactNative.NativeModules.YH_NativeRequest.post(params);
let data = await this._parseResponse(response);
return data;
... ...
'use strict';
import Request from '../../common/services/Request';
import Request from '../../common/services/NativeRequest';
export default class DetailService {
... ...
'use strict';
import Request from '../../common/services/Request';
import Request from '../../common/services/NativeRequest';
export default class ListService {
... ...
'use strict';
import Request from '../../common/services/Request';
import Request from '../../common/services/NativeRequest';
export default class MessageListService {
... ...
'use strict';
import Request from '../../common/services/Request';
import Request from '../../common/services/NativeRequest';
export default class MessageService {
... ...
'use strict';
import Request from '../../common/services/Request';
import Request from '../../common/services/NativeRequest';
export default class HomeService {
... ...
'use strict';
import Request from '../../common/services/Request';
import Request from '../../common/services/NativeRequest';
export default class DetailService {
... ...
'use strict';
import Request from '../../common/services/Request';
import Request from '../../common/services/NativeRequest';
export default class PlustarService {
... ...
'use strict';
import Request from '../../common/services/Request';
import Request from '../../common/services/NativeRequest';
export default class QRCodeService {
... ...
'use strict';
import Request from '../../common/services/Request';
import Request from '../../common/services/NativeRequest';
export default class SearchService {
... ...
'use strict';
import Request from '../../common/services/Request';
import Request from '../../common/services/NativeRequest';
export default class SeckillService {
... ...