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
961869d1
Commit
961869d1
authored
7 years ago
by
lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u home
parent
ebf81198
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
2 deletions
+19
-2
AppDelegate+Deeplink.m
iCemarose/Class/AppDelegate+Deeplink.m
+3
-1
UIViewController+HTTP.m
iCemarose/Class/Classify/UIViewController+HTTP.m
+11
-1
KWMClothingSetsHeader.m
iCemarose/Class/UI/NewHome/Cell/KWMClothingSetsHeader.m
+4
-0
KWMHotSalesHeader.m
iCemarose/Class/UI/NewHome/Cell/KWMHotSalesHeader.m
+1
-0
No files found.
iCemarose/Class/AppDelegate+Deeplink.m
View file @
961869d1
...
...
@@ -17,7 +17,9 @@
-
(
void
)
registerRouter
{
JLRoutes
*
routes
=
[
JLRoutes
routesForScheme
:
@"cemarose"
];
[
routes
addRoute
:
@"/collections/:handle/*"
handler
:
^
BOOL
(
NSDictionary
<
NSString
*
,
id
>
*
_Nonnull
parameters
)
{
NSArray
*
tags
=
[
parameters
[
JLRouteWildcardComponentsKey
]
componentsSeparatedByString
:
@"+"
];
NSArray
*
tags
=
parameters
[
JLRouteWildcardComponentsKey
];
tags
=
tags
.
count
>
0
?
[
tags
[
0
]
componentsSeparatedByString
:
@"+"
]
:
nil
;
// NSArray *tags = [parameters[JLRouteWildcardComponentsKey] componentsSeparatedByString:@"+"];
NSLog
(
@"trace tags %@"
,[
tags
componentsJoinedByString
:
@","
]);
KWMSelectedGoodsVC
*
selectedGoodsVC
=
(
KWMSelectedGoodsVC
*
)[
KWMBaseVC
findControllerBy
:[
KWMSelectedGoodsVC
kwmTag
]
fromStoryboard
:
@"New"
];
selectedGoodsVC
.
handle
=
parameters
[
@"handle"
];
...
...
This diff is collapsed.
Click to expand it.
iCemarose/Class/Classify/UIViewController+HTTP.m
View file @
961869d1
...
...
@@ -7,11 +7,21 @@
//
#import "UIViewController+HTTP.h"
#import <JLRoutes/JLRoutes.h>
#import <RegexKitLite/RegexKitLite.h>
@implementation
UIViewController
(
HTTP
)
-
(
void
)
openURLWithString
:(
NSString
*
)
URLString
{
[[
UIApplication
sharedApplication
]
openURL
:[
NSURL
URLWithString
:
URLString
]];
UIApplication
*
application
=
[
UIApplication
sharedApplication
];
NSURL
*
url
=
[[
NSURL
alloc
]
initWithString
:[
URLString
stringByReplacingOccurrencesOfRegex
:
@"^https?"
withString
:
@"cemarose"
]];
if
([
JLRoutes
canRouteURL
:
url
])
{
[
JLRoutes
routeURL
:
url
];
}
else
if
([
application
respondsToSelector
:
@selector
(
openURL
:
options
:
completionHandler
:
)])
{
[
application
openURL
:[
NSURL
URLWithString
:
URLString
]
options
:@{}
completionHandler
:
nil
];
}
else
{
[
application
openURL
:[
NSURL
URLWithString
:
URLString
]];
}
}
@end
This diff is collapsed.
Click to expand it.
iCemarose/Class/UI/NewHome/Cell/KWMClothingSetsHeader.m
View file @
961869d1
...
...
@@ -108,5 +108,9 @@
return
self
.
productArray
?
self
.
productArray
.
count
:
0
;
}
-
(
void
)
collectionView
:
(
UICollectionView
*
)
collectionView
didSelectItemAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
[
self
.
delegate
kwm_onClickProduct
:
self
.
productArray
[
indexPath
.
item
]];
}
@end
This diff is collapsed.
Click to expand it.
iCemarose/Class/UI/NewHome/Cell/KWMHotSalesHeader.m
View file @
961869d1
...
...
@@ -106,6 +106,7 @@
homeCell
.
singleShow
=
YES
;
homeCell
.
tag
=
i
;
homeCell
.
product
=
product
;
[
self
.
singleShowView
addSubview
:
homeCell
];
}
self
.
heightSingleShowView
.
constant
=
itemHeight
*
singleShowArray
.
count
;
...
...
This diff is collapsed.
Click to expand it.
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