Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
Opple-iOS
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
张杰
Opple-iOS
Commits
6d9432e9
Commit
6d9432e9
authored
May 11, 2016
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
caoyunxiao
parent
6b88076d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
10 deletions
+16
-10
ProductLibraryViewController.m
Lighting/Class/ProductLibraryViewController.m
+13
-5
screeningSecondView.m
Lighting/Class/screeningSecondView.m
+1
-1
NetworkRequestClassManager.m
Lighting/Tools/NetworkRequestClassManager.m
+2
-4
No files found.
Lighting/Class/ProductLibraryViewController.m
View file @
6d9432e9
...
@@ -482,10 +482,18 @@
...
@@ -482,10 +482,18 @@
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
0
;
page
.
page
=
0
;
condition
.
page
=
page
;
condition
.
page
=
page
;
if
(
styleCode
.
length
!=
0
)
{
condition
.
styleEquals
=
styleCode
;
condition
.
styleEquals
=
styleCode
;
}
if
(
categoriesCode
.
length
!=
0
)
{
condition
.
categoryEquals
=
categoriesCode
;
condition
.
categoryEquals
=
categoriesCode
;
}
if
(
spaceCode
.
length
!=
0
)
{
condition
.
spaceEquals
=
spaceCode
;
condition
.
spaceEquals
=
spaceCode
;
}
if
(
materialCode
.
length
!=
0
)
{
condition
.
materialEqueals
=
materialCode
;
condition
.
materialEqueals
=
materialCode
;
}
if
(
!
[
priceTitle
isEqualToString
:
@"全部"
])
{
if
(
!
[
priceTitle
isEqualToString
:
@"全部"
])
{
...
@@ -497,7 +505,7 @@
...
@@ -497,7 +505,7 @@
__weak
typeof
(
self
)
Weakself
=
self
;
__weak
typeof
(
self
)
Weakself
=
self
;
//
NSLog(@"%@",[condition toDictionary]);
NSLog
(
@"%@"
,[
condition
toDictionary
]);
[
self
getGoodsListdatas
:
condition
returnResponse
:
^
(
GoodsResponse
*
response
)
{
[
self
getGoodsListdatas
:
condition
returnResponse
:
^
(
GoodsResponse
*
response
)
{
Weakself
.
screenSecondView
.
totalNumber
=
response
.
total
;
Weakself
.
screenSecondView
.
totalNumber
=
response
.
total
;
...
...
Lighting/Class/screeningSecondView.m
View file @
6d9432e9
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
self
.
defaultDatasArray
=
[
NSMutableArray
array
];
self
.
defaultDatasArray
=
[
NSMutableArray
array
];
for
(
int
i
=
0
;
i
<
5
;
i
++
)
{
for
(
int
i
=
0
;
i
<
5
;
i
++
)
{
NSDictionary
*
defaultDict
=
@{
@"typecode"
:
@"
"
,
@"typename"
:
@"全部"
};
NSDictionary
*
defaultDict
=
@{
@"typecode"
:
@""
,
@"typename"
:
@"全部"
};
[
self
.
defaultDatasArray
addObject
:
defaultDict
];
[
self
.
defaultDatasArray
addObject
:
defaultDict
];
}
}
[
self
uiConfigAction
];
[
self
uiConfigAction
];
...
...
Lighting/Tools/NetworkRequestClassManager.m
View file @
6d9432e9
...
@@ -74,10 +74,8 @@ static NetworkRequestClassManager *manager = nil;
...
@@ -74,10 +74,8 @@ static NetworkRequestClassManager *manager = nil;
if
(
requestType
==
0
)
{
if
(
requestType
==
0
)
{
NSLog
(
@"%@"
,[
jastorobject
toDictionary
]);
// toDictionary 转字典
[
manager
POST
:
requestURLString
parameters
:[
jastorobject
toDictionary
]
progress
:
nil
success
:^
(
NSURLSessionDataTask
*
_Nonnull
task
,
id
_Nullable
responseObject
)
{
[
manager
POST
:
requestURLString
parameters
:[
jastorobject
toJSONString
]
progress
:
nil
success
:^
(
NSURLSessionDataTask
*
_Nonnull
task
,
id
_Nullable
responseObject
)
{
successBlock
(
responseObject
);
successBlock
(
responseObject
);
...
@@ -89,7 +87,7 @@ static NetworkRequestClassManager *manager = nil;
...
@@ -89,7 +87,7 @@ static NetworkRequestClassManager *manager = nil;
}
else
if
(
requestType
==
1
){
}
else
if
(
requestType
==
1
){
[
manager
GET
:
requestURLString
parameters
:[
jastorobject
to
JSONString
]
progress
:
nil
success
:^
(
NSURLSessionDataTask
*
_Nonnull
task
,
id
_Nullable
responseObject
)
{
[
manager
GET
:
requestURLString
parameters
:[
jastorobject
to
Dictionary
]
progress
:
nil
success
:^
(
NSURLSessionDataTask
*
_Nonnull
task
,
id
_Nullable
responseObject
)
{
successBlock
(
responseObject
);
successBlock
(
responseObject
);
...
...
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