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
c5965b3d
Commit
c5965b3d
authored
Jul 14, 2017
by
lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
81145eba
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
26 additions
and
19 deletions
+26
-19
AppDelegate+Deeplink.m
iCemarose/Class/AppDelegate+Deeplink.m
+2
-2
UIViewController+HTTP.m
iCemarose/Class/Classify/UIViewController+HTTP.m
+9
-2
KWMBrandCaramelVC.m
iCemarose/Class/UI/Brand/KWMBrandCaramelVC.m
+3
-3
KWMCategoryVC.m
iCemarose/Class/UI/Category/KWMCategoryVC.m
+1
-1
KWMBlogDetailVC.m
iCemarose/Class/UI/Home/KWMBlogDetailVC.m
+1
-1
KWMNewHomeVC.m
iCemarose/Class/UI/NewHome/KWMNewHomeVC.m
+3
-3
KWMProductDetailVC.m
iCemarose/Class/UI/Product/KWMProductDetailVC.m
+1
-1
KWMSearchFeedbackVC.m
iCemarose/Class/UI/Product/KWMSearchFeedbackVC.m
+3
-3
KWMSelectedGoodsVC.m
iCemarose/Class/UI/Product/KWMSelectedGoodsVC.m
+3
-3
No files found.
iCemarose/Class/AppDelegate+Deeplink.m
View file @
c5965b3d
...
...
@@ -9,7 +9,7 @@
#import "AppDelegate+Deeplink.h"
#import <JLRoutes/JLRoutes.h>
#import "AppDelegate.h"
#import "KWM
ProductDetail
VC.h"
#import "KWM
NewProduct
VC.h"
#import "KWMSelectedGoodsVC.h"
#import "KWMBlogDetailVC.h"
#import "KWMNewProductVC.h"
...
...
@@ -34,7 +34,7 @@
[
routes
addRoute
:
@"/products/:id"
handler
:
^
BOOL
(
NSDictionary
<
NSString
*
,
id
>
*
_Nonnull
parameters
)
{
NSLog
(
@"product id %@"
,
parameters
[
@"id"
]);
KWMNewProductVC
*
vc
=
[
KWMNewProductVC
getNewInstance
];
// KWM
ProductDetailVC *productDetailVC = (KWMProductDetailVC*)[KWMBaseVC findControllerBy:[KWMProductDetailVC kwmTag] fromStoryboard:@"New"
];
// KWM
NewProductVC *productDetailVC = [KWMNewProductVC getNewInstance
];
// productDetailVC.product = brandCell.leftProduct;
vc
.
handle
=
parameters
[
@"id"
];
// NSLog(@"%@",[AppDelegate mainViewController].selectedViewController);
...
...
iCemarose/Class/Classify/UIViewController+HTTP.m
View file @
c5965b3d
...
...
@@ -15,8 +15,15 @@
@implementation
UIViewController
(
HTTP
)
-
(
void
)
openURLWithString
:(
NSString
*
)
URLString
{
UIApplication
*
application
=
[
UIApplication
sharedApplication
];
NSURL
*
url
=
[[
NSURL
alloc
]
initWithString
:[
URLString
stringByReplacingOccurrencesOfRegex
:
@"^https?"
withString
:
@"cemarose"
]];
NSString
*
parten
=
@"[^%
\\
da-zA-Z:/.?&=]+"
;
NSRegularExpression
*
reg
=
[
NSRegularExpression
regularExpressionWithPattern
:
parten
options
:
0
error
:
nil
];
NSArray
*
matchs
=
[
reg
matchesInString
:
URLString
options
:
0
range
:
NSMakeRange
(
0
,
[
URLString
length
])];
NSString
*
encodeURL
=
[
NSString
stringWithString
:
URLString
];
for
(
long
i
=
matchs
.
count
-
1
;
i
>=
0
;
--
i
)
{
NSTextCheckingResult
*
tcr
=
matchs
[
i
];
encodeURL
=
[
encodeURL
stringByReplacingCharactersInRange
:
tcr
.
range
withString
:[[
encodeURL
substringWithRange
:
tcr
.
range
]
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
]];
}
NSURL
*
url
=
[[
NSURL
alloc
]
initWithString
:[
encodeURL
stringByReplacingOccurrencesOfRegex
:
@"^https?"
withString
:
@"cemarose"
]];
if
([
JLRoutes
canRouteURL
:
url
])
{
[
JLRoutes
routeURL
:
url
];
// }else if ([application respondsToSelector:@selector(openURL:options:completionHandler:)]) {
...
...
iCemarose/Class/UI/Brand/KWMBrandCaramelVC.m
View file @
c5965b3d
...
...
@@ -9,7 +9,7 @@
#import "KWMBrandCaramelVC.h"
#import "KWMBrandCaramelCell.h"
#import "KWMBarandSelectView.h"
#import "KWM
ProductDetail
VC.h"
#import "KWM
NewProduct
VC.h"
#import "KWMShopCartVC.h"
#import "KWMShopCartData.h"
#import "UIImageView+WebCache.h"
...
...
@@ -232,14 +232,14 @@ static NSString *idStr = @"KWMBrandCaramelCell";
//点击左边商品回调
-
(
void
)
kwm_onClickLeftIamge
:
(
KWMBrandCaramelCell
*
)
brandCell
{
KWM
ProductDetailVC
*
productDetailVC
=
(
KWMProductDetailVC
*
)[
KWMBaseVC
findControllerBy
:[
KWMProductDetailVC
kwmTag
]
fromStoryboard
:
@"New"
];
KWM
NewProductVC
*
productDetailVC
=
[
KWMNewProductVC
getNewInstance
];
productDetailVC
.
product
=
brandCell
.
leftProduct
;
[
self
.
navigationController
pushViewController
:
productDetailVC
animated
:
YES
];
}
//点击右边商品回调
-
(
void
)
kwm_onClickRightIamge
:
(
KWMBrandCaramelCell
*
)
brandCell
{
KWM
ProductDetailVC
*
productDetailVC
=
(
KWMProductDetailVC
*
)[
KWMBaseVC
findControllerBy
:[
KWMProductDetailVC
kwmTag
]
fromStoryboard
:
@"New"
];
KWM
NewProductVC
*
productDetailVC
=
[
KWMNewProductVC
getNewInstance
];
productDetailVC
.
product
=
brandCell
.
rightProduct
;
[
self
.
navigationController
pushViewController
:
productDetailVC
animated
:
YES
];
}
...
...
iCemarose/Class/UI/Category/KWMCategoryVC.m
View file @
c5965b3d
...
...
@@ -7,7 +7,7 @@
//
#import "KWMCategoryVC.h"
#import "KWM
ProductDetail
VC.h"
#import "KWM
NewProduct
VC.h"
#import "KWMShopCartVC.h"
#import "KWMNewProductVC.h"
#import "KWMSearchFeedbackVC.h"
...
...
iCemarose/Class/UI/Home/KWMBlogDetailVC.m
View file @
c5965b3d
...
...
@@ -21,7 +21,7 @@
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
// Do any additional setup after loading the view
self
.
title
=
@"正文"
;
if
(
!
self
.
title
)
self
.
title
=
@"正文"
;
self
.
automaticallyAdjustsScrollViewInsets
=
NO
;
if
(
!
self
.
handle
)
{
[
self
initData
];
...
...
iCemarose/Class/UI/NewHome/KWMNewHomeVC.m
View file @
c5965b3d
...
...
@@ -154,7 +154,7 @@ typedef enum{
#pragma mark - KWMMenuDelegate
-
(
void
)
kwm_onClickHotMenu
{
[
self
openURLWithString
:
@"https://cemarose.myshopify.com/collections/new?title=
%E6%9C%80%E6%96%B0%E5%8D%95%E5%93%81
"
];
[
self
openURLWithString
:
@"https://cemarose.myshopify.com/collections/new?title=
最新单品
"
];
}
-
(
void
)
kwm_onClickNewMenu
{
...
...
@@ -173,12 +173,12 @@ typedef enum{
-
(
void
)
kwm_onClickDeliveryMenu
{
NSLog
(
@"deliverymenu"
);
[
self
openURLWithString
:
@"https://www.cemarose.com/pages/service-description/"
];
[
self
openURLWithString
:
@"https://www.cemarose.com/pages/service-description/
?title=服务说明
"
];
}
#pragma mark - KWMRecommendDelegate
-
(
void
)
kwm_gotoRecommendPage
{
[
self
openURLWithString
:
@"https://cemarose.myshopify.com/collections/hot-sell-app"
];
[
self
openURLWithString
:
@"https://cemarose.myshopify.com/collections/hot-sell-app
?title=主推单品
"
];
}
#pragma mark - KWMRecommendDelegate KWMClothingSetsDelegate KWMHotSalesDelegate
...
...
iCemarose/Class/UI/Product/KWMProductDetailVC.m
View file @
c5965b3d
...
...
@@ -6,7 +6,7 @@
//// Copyright © 2017年 kollway. All rights reserved.
////
//
//#import "KWM
ProductDetail
VC.h"
//#import "KWM
NewProduct
VC.h"
//#import "KWMProductDetailView.h"
//#import "KWMBottomView.h"
//#import "KWMUserModel.h"
...
...
iCemarose/Class/UI/Product/KWMSearchFeedbackVC.m
View file @
c5965b3d
...
...
@@ -9,7 +9,7 @@
#import "KWMSearchFeedbackVC.h"
#import "KWMBrandCaramelCell.h"
#import "KWMSearchFeedBackView.h"
#import "KWM
ProductDetail
VC.h"
#import "KWM
NewProduct
VC.h"
@interface
KWMSearchFeedbackVC
()
<
UITableViewDelegate
,
UITableViewDataSource
,
KWMSearchFeedBackViewDelegate
,
KWMBrandCaramelCellDelegate
>
@property
(
nonatomic
)
KWMSearchFeedBackView
*
vSearchFB
;
...
...
@@ -90,14 +90,14 @@ static NSString *idStr = @"KWMBrandCaramelCell";
#pragma mark -- KWMBrandCaramelCellDelegate
//点击左边商品回调
-
(
void
)
kwm_onClickLeftIamge
:
(
KWMBrandCaramelCell
*
)
brandCell
{
KWM
ProductDetailVC
*
productDetailVC
=
(
KWMProductDetailVC
*
)[
KWMBaseVC
findControllerBy
:[
KWMProductDetailVC
kwmTag
]
fromStoryboard
:
@"New"
];
KWM
NewProductVC
*
productDetailVC
=
[
KWMNewProductVC
getNewInstance
];
productDetailVC
.
productId
=
brandCell
.
leftDataProduct
.
id
;
[
self
.
navigationController
pushViewController
:
productDetailVC
animated
:
YES
];
}
//点击右边商品回调
-
(
void
)
kwm_onClickRightIamge
:
(
KWMBrandCaramelCell
*
)
brandCell
{
KWM
ProductDetailVC
*
productDetailVC
=
(
KWMProductDetailVC
*
)[
KWMBaseVC
findControllerBy
:[
KWMProductDetailVC
kwmTag
]
fromStoryboard
:
@"New"
];
KWM
NewProductVC
*
productDetailVC
=
[
KWMNewProductVC
getNewInstance
];
productDetailVC
.
productId
=
brandCell
.
rightDataProduct
.
id
;
[
self
.
navigationController
pushViewController
:
productDetailVC
animated
:
YES
];
}
...
...
iCemarose/Class/UI/Product/KWMSelectedGoodsVC.m
View file @
c5965b3d
...
...
@@ -7,7 +7,7 @@
//
#import "KWMSelectedGoodsVC.h"
#import "KWM
ProductDetail
VC.h"
#import "KWM
NewProduct
VC.h"
#import "KWMBeforePayVC.h"
#import "KWMMineTitleView.h"
#import "MJRefresh.h"
...
...
@@ -168,14 +168,14 @@ static NSString *idStr = @"KWMBrandCaramelCell";
//点击左边商品回调
-
(
void
)
kwm_onClickLeftIamge
:
(
KWMBrandCaramelCell
*
)
brandCell
{
KWM
ProductDetailVC
*
productDetailVC
=
(
KWMProductDetailVC
*
)[
KWMBaseVC
findControllerBy
:[
KWMProductDetailVC
kwmTag
]
fromStoryboard
:
@"New"
];
KWM
NewProductVC
*
productDetailVC
=
[
KWMNewProductVC
getNewInstance
];
productDetailVC
.
product
=
brandCell
.
leftProduct
;
[
self
.
navigationController
pushViewController
:
productDetailVC
animated
:
YES
];
}
//点击右边商品回调
-
(
void
)
kwm_onClickRightIamge
:
(
KWMBrandCaramelCell
*
)
brandCell
{
KWM
ProductDetailVC
*
productDetailVC
=
(
KWMProductDetailVC
*
)[
KWMBaseVC
findControllerBy
:[
KWMProductDetailVC
kwmTag
]
fromStoryboard
:
@"New"
];
KWM
NewProductVC
*
productDetailVC
=
[
KWMNewProductVC
getNewInstance
];
productDetailVC
.
product
=
brandCell
.
rightProduct
;
[
self
.
navigationController
pushViewController
:
productDetailVC
animated
:
YES
];
}
...
...
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