Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
ios1x
Overview
Overview
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
cemarose
ios1x
Commits
a0e3bcda
Commit
a0e3bcda
authored
Jul 14, 2017
by
lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
a07e140b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
KWMAPIManager.m
iCemarose/Class/Api/KWMAPIManager.m
+1
-1
KWMNewHomeVC.m
iCemarose/Class/UI/NewHome/KWMNewHomeVC.m
+3
-2
No files found.
iCemarose/Class/Api/KWMAPIManager.m
View file @
a0e3bcda
...
...
@@ -696,7 +696,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
}
-
(
NSURLSessionDataTask
*
)
getHomeDataWithSuccess
:
(
void
(
^
)(
NSURLSessionDataTask
*
,
KWMHomeDataResult
*
))
success
failure
:
(
void
(
^
)(
NSURLSessionDataTask
*
,
NSError
*
))
failure
{
NSString
*
apiPath
=
@"https://ogbgohpla.qnssl.com/App.Home.json"
;
NSString
*
apiPath
=
@"https://ogbgohpla.qnssl.com/App.Home.json
?32
"
;
return
[
self
startSessionTask
:
KWMHTTPMethodGET
apiPath
:
apiPath
parameters
:
nil
result
:
[
KWMHomeDataResult
class
]
model
:
nil
success
:
success
failure
:
failure
];
}
...
...
iCemarose/Class/UI/NewHome/KWMNewHomeVC.m
View file @
a0e3bcda
...
...
@@ -374,8 +374,9 @@ typedef enum{
self
.
adHeader
.
adArray
=
self
.
homeData
.
ad_banner
;
// self.homeData.hot_sales.single_show_count = @(1);
self
.
clothingSetsHeader
.
headerImage
=
self
.
homeData
.
clothing_sets
.
image
;
// self.homeData.clothing_sets.url =@"https://www.cemarose.cn/collections/skirts/girls+spring-summer-2016";
NSArray
*
clothingParam
=
[
self
.
homeData
.
clothing_sets
.
url
arrayOfCaptureComponentsMatchedByRegex
:
@"collections
\\
/([^/]*+)
\\
/?(.*)$"
];
// self.homeData.clothing_sets.url =@"https://www.cemarose.cn/collections/skirts/girls+spring-summer-2016?title=ml";
NSURL
*
url
=
[[
NSURL
alloc
]
initWithString
:
self
.
homeData
.
clothing_sets
.
url
];
NSArray
*
clothingParam
=
[
url
.
path
arrayOfCaptureComponentsMatchedByRegex
:
@"collections
\\
/([^/]*+)
\\
/?(.*)$"
];
if
(
clothingParam
.
count
)
{
clothingParam
=
clothingParam
.
firstObject
;
NSString
*
handle
=
clothingParam
.
count
>
1
?
clothingParam
[
1
]
:
nil
;
...
...
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