Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
万
万科
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
万科
Commits
3569c83a
Commit
3569c83a
authored
Apr 19, 2016
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加了请求的方法
parent
d2b761d6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
ICRHTTPController.h
vanke/3rd/HTTPController/ICRHTTPController.h
+3
-0
ICRHTTPController.m
vanke/3rd/HTTPController/ICRHTTPController.m
+13
-0
SalesInputViewController.m
...emplates/salesInput/Controller/SalesInputViewController.m
+13
-0
No files found.
vanke/3rd/HTTPController/ICRHTTPController.h
View file @
3569c83a
...
...
@@ -93,6 +93,9 @@ typedef NS_ENUM(NSUInteger, ICRAttachmentType) {
failure
:(
void
(
^
)(
id
))
fail
;
-
(
void
)
postUrl
:(
NSString
*
)
url
params
:(
id
)
params
success
:(
void
(
^
)(
id
data
))
succ
failure
:(
void
(
^
)(
id
data
))
fail
;
-
(
void
)
getUrl
:(
NSString
*
)
url
params
:(
id
)
params
success
:(
void
(
^
)(
id
data
))
succ
failure
:(
void
(
^
)(
id
data
))
fail
;
@end
vanke/3rd/HTTPController/ICRHTTPController.m
View file @
3569c83a
...
...
@@ -705,4 +705,17 @@ acceptTypeJson:YES
// TODO
}
-
(
void
)
getUrl
:
(
NSString
*
)
url
params
:
(
id
)
params
success
:
(
void
(
^
)(
id
data
))
succ
failure
:
(
void
(
^
)(
id
data
))
fail
{
[
self
GET
:
url
parameters
:
params
needToken
:
YES
acceptTypeJson
:
YES
success
:^
(
AFHTTPRequestOperation
*
operation
,
id
responseObject
)
{
succ
(
responseObject
);
}
failure
:^
(
AFHTTPRequestOperation
*
operation
,
NSError
*
error
)
{
fail
(
error
);
}];
}
@end
vanke/view_iPhone/templates/salesInput/Controller/SalesInputViewController.m
View file @
3569c83a
...
...
@@ -12,6 +12,8 @@
#import "VankeAppBoard_iPhone.h"
#import "HistoryViewController.h"
#import "ChooseShopViewController.h"
#import "VankeUserLoginAPI.h"
#import "ICRHTTPController.h"
#define kCellID @"SalesInputTableViewCell.h"
@interface
SalesInputViewController
()
<
UITableViewDelegate
,
UITableViewDataSource
>
...
...
@@ -148,6 +150,17 @@ ON_WILL_APPEAR( signal )
[
self
.
navigationController
pushViewController
:
history
animated
:
YES
];
}
-
(
void
)
setUpData
{
ICRHTTPController
*
httpCtrl
=
[
ICRHTTPController
sharedController
];
NSDictionary
*
myDictionary
=
@{
@"shopCodeEquals"
:
@"a"
,
@"beginDateEquals"
:
@"a"
,
@"endDateEquals"
:
@"a"
,
@"pageNumber"
:
@0
,
@"pageSize"
:
@0
};
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment