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
4f1fd299
Commit
4f1fd299
authored
Aug 08, 2017
by
lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
4e9eb9b8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
29 deletions
+32
-29
UIViewController+HTTP.m
iCemarose/Class/Classify/UIViewController+HTTP.m
+3
-3
KWMHotSalesHeader.xib
iCemarose/Class/UI/NewHome/Cell/KWMHotSalesHeader.xib
+24
-24
KWMNewHomeVC.m
iCemarose/Class/UI/NewHome/KWMNewHomeVC.m
+3
-0
Info.plist
iCemarose/Info.plist
+2
-2
No files found.
iCemarose/Class/Classify/UIViewController+HTTP.m
View file @
4f1fd299
...
@@ -26,14 +26,14 @@
...
@@ -26,14 +26,14 @@
encodeURL
=
[
encodeURL
stringByReplacingCharactersInRange
:
tcr
.
range
withString
:[[
encodeURL
substringWithRange
:
tcr
.
range
]
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
]];
encodeURL
=
[
encodeURL
stringByReplacingCharactersInRange
:
tcr
.
range
withString
:[[
encodeURL
substringWithRange
:
tcr
.
range
]
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
]];
}
}
// NSURL *url = [[NSURL alloc] initWithString:[encodeURL stringByReplacingOccurrencesOfRegex:@"^https?" withString:@"cemarose"]];
// NSURL *url = [[NSURL alloc] initWithString:[encodeURL stringByReplacingOccurrencesOfRegex:@"^https?" withString:@"cemarose"]];
NSURL
*
url
=
[[
NSURL
alloc
]
initWithString
:
URLString
];
NSURL
*
url
=
[[
NSURL
alloc
]
initWithString
:
encodeURL
];
if
([
JLRoutes
canRouteURL
:
url
])
{
if
([
JLRoutes
canRouteURL
:
url
])
{
[
JLRoutes
routeURL
:
url
];
[
JLRoutes
routeURL
:
url
];
// }else if ([application respondsToSelector:@selector(openURL:options:completionHandler:)]) {
// }else if ([application respondsToSelector:@selector(openURL:options:completionHandler:)]) {
// [application openURL:[NSURL URLWithString:URLString] options:@{} completionHandler:nil];
// [application openURL:[NSURL URLWithString:URLString] options:@{} completionHandler:nil];
}
else
{
}
else
if
(
url
)
{
// [application openURL:[NSURL URLWithString:URLString]];
// [application openURL:[NSURL URLWithString:URLString]];
TOWebViewController
*
wv
=
[[
DPWebViewController
alloc
]
initWithURLString
:
URLString
];
TOWebViewController
*
wv
=
[[
DPWebViewController
alloc
]
initWithURLString
:
encodeURL
];
wv
.
hidesBottomBarWhenPushed
=
YES
;
wv
.
hidesBottomBarWhenPushed
=
YES
;
[[
AppDelegate
mainViewController
].
selectedViewController
pushViewController
:
wv
animated
:
YES
];
[[
AppDelegate
mainViewController
].
selectedViewController
pushViewController
:
wv
animated
:
YES
];
}
}
...
...
iCemarose/Class/UI/NewHome/Cell/KWMHotSalesHeader.xib
View file @
4f1fd299
...
@@ -23,8 +23,28 @@
...
@@ -23,8 +23,28 @@
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"300"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"300"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Ruv-UI-DGw"
userLabel=
"热卖单品Banner"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"190"
/>
<color
key=
"backgroundColor"
red=
"0.90588235289999997"
green=
"0.81960784310000001"
blue=
"0.74117647060000003"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"190"
id=
"NbW-Kh-s5O"
/>
</constraints>
</view>
<collectionView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
scrollEnabled=
"NO"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
dataMode=
"none"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"UGY-II-IMu"
>
<rect
key=
"frame"
x=
"0.0"
y=
"250"
width=
"375"
height=
"0.0"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<constraints>
<constraint
firstAttribute=
"height"
id=
"SEw-Tw-g0a"
/>
</constraints>
<collectionViewFlowLayout
key=
"collectionViewLayout"
minimumLineSpacing=
"10"
minimumInteritemSpacing=
"10"
id=
"Bjo-LO-kzZ"
>
<size
key=
"itemSize"
width=
"50"
height=
"50"
/>
<size
key=
"headerReferenceSize"
width=
"0.0"
height=
"0.0"
/>
<size
key=
"footerReferenceSize"
width=
"0.0"
height=
"0.0"
/>
<inset
key=
"sectionInset"
minX=
"0.0"
minY=
"0.0"
maxX=
"0.0"
maxY=
"0.0"
/>
</collectionViewFlowLayout>
</collectionView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"d0n-L5-xP1"
userLabel=
"热卖单品title view"
>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"d0n-L5-xP1"
userLabel=
"热卖单品title view"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
1
0"
width=
"375"
height=
"50"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
20
0"
width=
"375"
height=
"50"
/>
<subviews>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"uhq-ZL-9OL"
>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"uhq-ZL-9OL"
>
<rect
key=
"frame"
x=
"97.5"
y=
"24.5"
width=
"40"
height=
"1"
/>
<rect
key=
"frame"
x=
"97.5"
y=
"24.5"
width=
"40"
height=
"1"
/>
...
@@ -60,35 +80,15 @@
...
@@ -60,35 +80,15 @@
<constraint
firstItem=
"ILX-tg-IwY"
firstAttribute=
"centerY"
secondItem=
"d0n-L5-xP1"
secondAttribute=
"centerY"
id=
"r8p-Ru-bb6"
/>
<constraint
firstItem=
"ILX-tg-IwY"
firstAttribute=
"centerY"
secondItem=
"d0n-L5-xP1"
secondAttribute=
"centerY"
id=
"r8p-Ru-bb6"
/>
</constraints>
</constraints>
</view>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Ruv-UI-DGw"
userLabel=
"热卖单品Banner"
>
<rect
key=
"frame"
x=
"0.0"
y=
"60"
width=
"375"
height=
"190"
/>
<color
key=
"backgroundColor"
red=
"0.90588235289999997"
green=
"0.81960784310000001"
blue=
"0.74117647060000003"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"190"
id=
"NbW-Kh-s5O"
/>
</constraints>
</view>
<collectionView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
scrollEnabled=
"NO"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
dataMode=
"none"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"UGY-II-IMu"
>
<rect
key=
"frame"
x=
"0.0"
y=
"250"
width=
"375"
height=
"0.0"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<constraints>
<constraint
firstAttribute=
"height"
id=
"SEw-Tw-g0a"
/>
</constraints>
<collectionViewFlowLayout
key=
"collectionViewLayout"
minimumLineSpacing=
"10"
minimumInteritemSpacing=
"10"
id=
"Bjo-LO-kzZ"
>
<size
key=
"itemSize"
width=
"50"
height=
"50"
/>
<size
key=
"headerReferenceSize"
width=
"0.0"
height=
"0.0"
/>
<size
key=
"footerReferenceSize"
width=
"0.0"
height=
"0.0"
/>
<inset
key=
"sectionInset"
minX=
"0.0"
minY=
"0.0"
maxX=
"0.0"
maxY=
"0.0"
/>
</collectionViewFlowLayout>
</collectionView>
</subviews>
</subviews>
<constraints>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"UGY-II-IMu"
secondAttribute=
"trailing"
id=
"6ji-Iq-sFG"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"UGY-II-IMu"
secondAttribute=
"trailing"
id=
"6ji-Iq-sFG"
/>
<constraint
firstItem=
"Ruv-UI-DGw"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
id=
"9fw-Ph-Q4P"
/>
<constraint
firstItem=
"Ruv-UI-DGw"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
id=
"9fw-Ph-Q4P"
/>
<constraint
firstItem=
"Ruv-UI-DGw"
firstAttribute=
"top"
secondItem=
"d0n-L5-xP1"
secondAttribute=
"bottom"
id=
"BTm-DX-XK4"
/>
<constraint
firstItem=
"Ruv-UI-DGw"
firstAttribute=
"top"
secondItem=
"iN0-l3-epB"
secondAttribute=
"top"
id=
"AWZ-Bt-2gv"
/>
<constraint
firstItem=
"d0n-L5-xP1"
firstAttribute=
"top"
secondItem=
"Ruv-UI-DGw"
secondAttribute=
"bottom"
constant=
"10"
id=
"PCa-LX-p7a"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Ruv-UI-DGw"
secondAttribute=
"trailing"
id=
"RLP-eB-Asb"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Ruv-UI-DGw"
secondAttribute=
"trailing"
id=
"RLP-eB-Asb"
/>
<constraint
firstItem=
"UGY-II-IMu"
firstAttribute=
"top"
secondItem=
"Ruv-UI-DGw"
secondAttribute=
"bottom"
id=
"VJK-eY-4rm"
/>
<constraint
firstItem=
"d0n-L5-xP1"
firstAttribute=
"top"
secondItem=
"iN0-l3-epB"
secondAttribute=
"top"
constant=
"10"
id=
"aWf-1E-iKC"
/>
<constraint
firstItem=
"d0n-L5-xP1"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
id=
"g82-sr-LTG"
/>
<constraint
firstItem=
"d0n-L5-xP1"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
id=
"g82-sr-LTG"
/>
<constraint
firstItem=
"UGY-II-IMu"
firstAttribute=
"top"
secondItem=
"d0n-L5-xP1"
secondAttribute=
"bottom"
id=
"gsh-qH-TNQ"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"d0n-L5-xP1"
secondAttribute=
"trailing"
id=
"iHt-uY-XiY"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"d0n-L5-xP1"
secondAttribute=
"trailing"
id=
"iHt-uY-XiY"
/>
<constraint
firstItem=
"UGY-II-IMu"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
id=
"whN-vO-ZIi"
/>
<constraint
firstItem=
"UGY-II-IMu"
firstAttribute=
"leading"
secondItem=
"iN0-l3-epB"
secondAttribute=
"leading"
id=
"whN-vO-ZIi"
/>
</constraints>
</constraints>
...
...
iCemarose/Class/UI/NewHome/KWMNewHomeVC.m
View file @
4f1fd299
...
@@ -396,6 +396,9 @@ typedef enum{
...
@@ -396,6 +396,9 @@ typedef enum{
-
(
void
)
setHomeData
:
(
KWMHomeData
*
)
homeData
{
-
(
void
)
setHomeData
:
(
KWMHomeData
*
)
homeData
{
_homeData
=
homeData
;
_homeData
=
homeData
;
//#if DEBUG
// [self.homeData.ad_banner[0] setUrl:@"https://www.cemarose.com/pages/sale_test_111"];
//#endif
// [self.homeData.ad_banner[0] setUrl:@"https://www.cemarose.cn/collections/skirts/girls"];
// [self.homeData.ad_banner[0] setUrl:@"https://www.cemarose.cn/collections/skirts/girls"];
self
.
adHeader
.
adArray
=
self
.
homeData
.
ad_banner
;
self
.
adHeader
.
adArray
=
self
.
homeData
.
ad_banner
;
self
.
hotSalesHeader
.
bannerArray
=
self
.
homeData
.
hot_sales_ads
;
self
.
hotSalesHeader
.
bannerArray
=
self
.
homeData
.
hot_sales_ads
;
...
...
iCemarose/Info.plist
View file @
4f1fd299
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.5.
3
<
/string
>
<
string
>
1.5.
4
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleURLTypes
<
/k
e
y
>
<
k
e
y
>
CFBundleURLTypes
<
/k
e
y
>
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
2017080
418
<
/string
>
<
string
>
2017080
814
<
/string
>
<
k
e
y
>
ITSAppUsesNonExemptEncryption
<
/k
e
y
>
<
k
e
y
>
ITSAppUsesNonExemptEncryption
<
/k
e
y
>
<
fa
ls
e
/
>
<
fa
ls
e
/
>
<
k
e
y
>
LSApplicationQueriesSchemes
<
/k
e
y
>
<
k
e
y
>
LSApplicationQueriesSchemes
<
/k
e
y
>
...
...
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