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
5a894330
Commit
5a894330
authored
Jul 05, 2017
by
lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
f044f0e8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
AppDelegate+Deeplink.m
iCemarose/Class/AppDelegate+Deeplink.m
+3
-3
KWMSearchBrandVC.m
iCemarose/Class/UI/Brand/KWMSearchBrandVC.m
+5
-1
Info.plist
iCemarose/Info.plist
+1
-1
No files found.
iCemarose/Class/AppDelegate+Deeplink.m
View file @
5a894330
...
...
@@ -23,10 +23,10 @@
}];
[
routes
addRoute
:
@"/products/:id"
handler
:
^
BOOL
(
NSDictionary
<
NSString
*
,
id
>
*
_Nonnull
parameters
)
{
NSLog
(
@"product id %@"
,
parameters
[
@"id"
]);
KWMProductDetailVC
*
productDetailVC
=
(
KWMProductDetailVC
*
)[
KWMBaseVC
findControllerBy
:[
KWMProductDetailVC
kwmTag
]
fromStoryboard
:
@"New"
];
//
KWMProductDetailVC *productDetailVC = (KWMProductDetailVC*)[KWMBaseVC findControllerBy:[KWMProductDetailVC kwmTag] fromStoryboard:@"New"];
// productDetailVC.product = brandCell.leftProduct;
productDetailVC
.
handle
=
parameters
[
@"id"
];
[[
AppDelegate
mainViewController
].
selectedViewController
.
navigationController
pushViewController
:
productDetailVC
animated
:
YES
];
//
productDetailVC.handle = parameters[@"id"];
//
[[AppDelegate mainViewController].selectedViewController.navigationController pushViewController:productDetailVC animated:YES];
return
YES
;
}];
}
...
...
iCemarose/Class/UI/Brand/KWMSearchBrandVC.m
View file @
5a894330
...
...
@@ -12,6 +12,7 @@
#import "KWMStringUtil.h"
#import "KWMBrandCaramelVC.h"
#import "KWMSearchBrandsCell.h"
#import <RXCollections/RXCollection.h>
...
...
@@ -298,7 +299,10 @@ static NSString *identify = @"KWMSearchBrandsCell";
if
([
weakSelf
hasCemaroseError
:
result
]){
return
;
}
NSArray
*
indexArray
=
[
result
.
brands
arrayWithPinYinFirstLetterFormat
];
// NSArray *indexArray= [result.brands arrayWithPinYinFirstLetterFormat];
NSArray
*
indexArray
=
[[
result
.
brands
rx_filterWithBlock
:
^
BOOL
(
id
each
)
{
return
each
&&
each
!=
[
NSNull
null
];
}]
arrayWithPinYinFirstLetterFormat
];
_dataArray
=
[
NSMutableArray
arrayWithArray
:
indexArray
];
[
weakSelf
.
tbvSearchBrand
reloadData
];
};
...
...
iCemarose/Info.plist
View file @
5a894330
...
...
@@ -48,7 +48,7 @@
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
20170
63017
<
/string
>
<
string
>
20170
70509
<
/string
>
<
k
e
y
>
LSApplicationQueriesSchemes
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
weixin
<
/string
>
...
...
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