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
e10d4c3f
Commit
e10d4c3f
authored
Feb 08, 2018
by
lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.6.5(1.6.5.4)
parent
27ec3fbb
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
277 additions
and
34 deletions
+277
-34
LaunchScreen.storyboard
iCemarose/Base.lproj/LaunchScreen.storyboard
+1
-1
KWMAPIManager.h
iCemarose/Class/Api/KWMAPIManager.h
+4
-0
KWMAPIManager.m
iCemarose/Class/Api/KWMAPIManager.m
+5
-0
AppDelegate+Deeplink.m
iCemarose/Class/AppDelegate+Deeplink.m
+2
-2
Brand.storyboard
iCemarose/Class/UI/Brand/Brand.storyboard
+7
-6
KWMBrandCaramelVC.m
iCemarose/Class/UI/Brand/KWMBrandCaramelVC.m
+9
-0
KWMNewProductVC.m
iCemarose/Class/UI/NewProduct/KWMNewProductVC.m
+20
-0
KWMVariantsVC.m
iCemarose/Class/UI/NewProduct/KWMVariantsVC.m
+30
-0
NewProduct.storyboard
iCemarose/Class/UI/NewProduct/NewProduct.storyboard
+197
-23
Info.plist
iCemarose/Info.plist
+2
-2
No files found.
iCemarose/Base.lproj/LaunchScreen.storyboard
View file @
e10d4c3f
...
...
@@ -35,7 +35,7 @@
<constraint
firstAttribute=
"height"
constant=
"24"
id=
"x1H-Jw-5lD"
/>
</constraints>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"v 1.6.
4
"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ytF-B2-drm"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"v 1.6.
5
"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ytF-B2-drm"
>
<rect
key=
"frame"
x=
"168"
y=
"631"
width=
"39"
height=
"16"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
red=
"0.40000000000000002"
green=
"0.40000000000000002"
blue=
"0.40000000000000002"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
...
...
iCemarose/Class/Api/KWMAPIManager.h
View file @
e10d4c3f
...
...
@@ -190,6 +190,10 @@
success
:(
void
(
^
)(
NSURLSessionDataTask
*
task
,
KWMNewProducts
*
result
))
success
failure
:(
void
(
^
)(
NSURLSessionDataTask
*
task
,
NSError
*
error
))
failure
;
-
(
NSURLSessionDataTask
*
)
checkStockInChina
:(
NSDictionary
*
)
parameters
success
:(
void
(
^
)(
NSURLSessionDataTask
*
task
,
KWMDictionaryResult
*
result
))
success
failure
:(
void
(
^
)(
NSURLSessionDataTask
*
task
,
NSError
*
error
))
failure
;
/**
* 商品——打折API
* @return NSURLSessionDataTask
...
...
iCemarose/Class/Api/KWMAPIManager.m
View file @
e10d4c3f
...
...
@@ -778,6 +778,11 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
failure
:
failure
];
}
-
(
NSURLSessionDataTask
*
)
checkStockInChina
:
(
NSDictionary
*
)
parameters
success
:
(
void
(
^
)(
NSURLSessionDataTask
*
,
KWMDictionaryResult
*
))
success
failure
:
(
void
(
^
)(
NSURLSessionDataTask
*
,
NSError
*
))
failure
{
NSString
*
apiPath
=
[
NSString
stringWithFormat
:
@"https://%@/app/variant-inventory"
,
WishList_API_DOMAIN
];
return
[
self
startSessionTask
:
KWMHTTPMethodGET
apiPath
:
apiPath
parameters
:
parameters
result
:
[
KWMDictionaryResult
class
]
model
:
nil
success
:
success
failure
:
failure
];
}
/**
* 商品——打折API
*/
...
...
iCemarose/Class/AppDelegate+Deeplink.m
View file @
e10d4c3f
...
...
@@ -46,8 +46,8 @@ static NSMutableDictionary *controllerCache = nil;
tags
=
tags
.
count
>
0
?
[
tags
[
0
]
componentsSeparatedByString
:
@"+"
]
:
nil
;
// NSArray *tags = [parameters[JLRouteWildcardComponentsKey] componentsSeparatedByString:@"+"];
NSLog
(
@"trace tags %@"
,[
tags
componentsJoinedByString
:
@","
]);
NSArray
*
brands
=
@[
@"amelie-wang"
,
@"babywalker"
,
@"beau-loves"
,
@"billieblush"
,
@"billybandit"
,
@"bonpoint"
,
@"burberry"
,
@"caramel"
,
@"chloe"
,
@"collegien"
,
@"dolce-gabbana"
,
@"emile-et-ida"
,
@"fendi"
,
@"gucci"
,
@"hucklebones"
,
@"il-gufo"
,
@"indikidual"
,
@"karl-lagerfeld-kids"
,
@"kenzo"
,
@"lanvin"
,
@"little-marc-jacobs"
,
@"loud-apparel"
,
@"louis-louise"
,
@"louise-misha"
,
@"marie-chantal"
,
@"marni"
,
@"mini-melissa"
,
@"mini-rodini"
,
@"mischka-aoki"
,
@"moncler"
,
@"moschino"
,
@"msgm"
,
@"nailmatic"
,
@"nana-huchy"
,
@"noukies"
,
@"oeuf"
,
@"patachou"
,
@"paul-smith"
,
@"pepe"
,
@"sons-daughters-eyewear"
,
@"stella-mccartney-kids"
,
@"story-loris"
,
@"tartine-et-chocolat"
,
@"the-animals-observatory"
,
@"tiny-cottons"
,
@"veja"
,
@"young-versace"
,
@"zadig-voltaire"
,
@"wolf-rita"
,
@"tip-toey-joey"
,
@"givenchy"
];
NSDictionary
*
brandNames
=
@{
@"amelie-wang"
:
@"Amelie Wang"
,
@"babywalker"
:
@"Babywalker"
,
@"beau-loves"
:
@"Beau Loves"
,
@"billieblush"
:
@"Billieblush"
,
@"billybandit"
:
@"Billybandit"
,
@"bonpoint"
:
@"Bonpoint"
,
@"burberry"
:
@"Burberry"
,
@"caramel"
:
@"Caramel"
,
@"chloe"
:
@"Chloé"
,
@"dolce-gabbana"
:
@"Dolce & Gabbana"
,
@"emile-et-ida"
:
@"Emile et Ida"
,
@"fendi"
:
@"Fendi"
,
@"givenchy"
:
@"Givenchy"
,
@"gucci"
:
@"Gucci"
,
@"hucklebones"
:
@"Hucklebones"
,
@"il-gufo"
:
@"Il Gufo"
,
@"indikidual"
:
@"Indikidual"
,
@"karl-lagerfeld-kids"
:
@"Karl Lagerfeld Kids"
,
@"kenzo"
:
@"Kenzo"
,
@"lanvin"
:
@"Lanvin"
,
@"little-marc-jacobs"
:
@"Little Marc Jacobs"
,
@"loud-apparel"
:
@"Loud Apparel"
,
@"louis-louise"
:
@"Louis Louise"
,
@"louise-misha"
:
@"Louise Misha"
,
@"marie-chantal"
:
@"Marie-Chantal"
,
@"marni"
:
@"Marni"
,
@"mini-melissa"
:
@"Mini Melissa"
,
@"mini-rodini"
:
@"Mini Rodini"
,
@"mischka-aoki"
:
@"Mischka Aoki"
,
@"moncler"
:
@"Moncler"
,
@"moschino"
:
@"MOSCHINO"
,
@"msgm"
:
@"MSGM"
,
@"nailmatic"
:
@"Nailmatic"
,
@"nana-huchy"
:
@"Nana Huchy"
,
@"noukies"
:
@"Noukie's"
,
@"oeuf"
:
@"Oeuf"
,
@"patachou"
:
@"Patachou"
,
@"paul-smith"
:
@"Paul Smith"
,
@"pepe"
:
@"PèPè"
,
@"sons-daughters-eyewear"
:
@"Sons + Daughters Eyewear"
,
@"stella-mccartney-kids"
:
@"Stella McCartney Kids"
,
@"story-loris"
:
@"Story Loris"
,
@"tartine-et-chocolat"
:
@"Tartine et Chocolat"
,
@"the-animals-observatory"
:
@"The Animals Observatory"
,
@"tiny-cottons"
:
@"Tiny Cottons"
,
@"tip-toey-joey"
:
@"Tip Toey Joey"
,
@"veja"
:
@"Veja"
,
@"young-versace"
:
@"Young Versace"
,
@"zadig-voltaire"
:
@"Zadig & Voltaire"
,
@"wolf-rita"
:
@"Wolf & Rita"
};
NSArray
*
brands
=
@[
@"amelie-wang"
,
@"babywalker"
,
@"beau-loves"
,
@"billieblush"
,
@"billybandit"
,
@"bonpoint"
,
@"burberry"
,
@"caramel"
,
@"chloe"
,
@"collegien"
,
@"dolce-gabbana"
,
@"emile-et-ida"
,
@"fendi"
,
@"gucci"
,
@"hucklebones"
,
@"il-gufo"
,
@"indikidual"
,
@"karl-lagerfeld-kids"
,
@"kenzo"
,
@"lanvin"
,
@"little-marc-jacobs"
,
@"loud-apparel"
,
@"louis-louise"
,
@"louise-misha"
,
@"marie-chantal"
,
@"marni"
,
@"mini-melissa"
,
@"mini-rodini"
,
@"mischka-aoki"
,
@"moncler"
,
@"moschino"
,
@"msgm"
,
@"nailmatic"
,
@"nana-huchy"
,
@"noukies"
,
@"oeuf"
,
@"patachou"
,
@"paul-smith"
,
@"pepe"
,
@"sons-daughters-eyewear"
,
@"stella-mccartney-kids"
,
@"story-loris"
,
@"tartine-et-chocolat"
,
@"the-animals-observatory"
,
@"tiny-cottons"
,
@"veja"
,
@"young-versace"
,
@"zadig-voltaire"
,
@"wolf-rita"
,
@"tip-toey-joey"
,
@"givenchy"
,
@"pintuan"
];
NSDictionary
*
brandNames
=
@{
@"amelie-wang"
:
@"Amelie Wang"
,
@"babywalker"
:
@"Babywalker"
,
@"beau-loves"
:
@"Beau Loves"
,
@"billieblush"
:
@"Billieblush"
,
@"billybandit"
:
@"Billybandit"
,
@"bonpoint"
:
@"Bonpoint"
,
@"burberry"
:
@"Burberry"
,
@"caramel"
:
@"Caramel"
,
@"chloe"
:
@"Chloé"
,
@"dolce-gabbana"
:
@"Dolce & Gabbana"
,
@"emile-et-ida"
:
@"Emile et Ida"
,
@"fendi"
:
@"Fendi"
,
@"givenchy"
:
@"Givenchy"
,
@"gucci"
:
@"Gucci"
,
@"hucklebones"
:
@"Hucklebones"
,
@"il-gufo"
:
@"Il Gufo"
,
@"indikidual"
:
@"Indikidual"
,
@"karl-lagerfeld-kids"
:
@"Karl Lagerfeld Kids"
,
@"kenzo"
:
@"Kenzo"
,
@"lanvin"
:
@"Lanvin"
,
@"little-marc-jacobs"
:
@"Little Marc Jacobs"
,
@"loud-apparel"
:
@"Loud Apparel"
,
@"louis-louise"
:
@"Louis Louise"
,
@"louise-misha"
:
@"Louise Misha"
,
@"marie-chantal"
:
@"Marie-Chantal"
,
@"marni"
:
@"Marni"
,
@"mini-melissa"
:
@"Mini Melissa"
,
@"mini-rodini"
:
@"Mini Rodini"
,
@"mischka-aoki"
:
@"Mischka Aoki"
,
@"moncler"
:
@"Moncler"
,
@"moschino"
:
@"MOSCHINO"
,
@"msgm"
:
@"MSGM"
,
@"nailmatic"
:
@"Nailmatic"
,
@"nana-huchy"
:
@"Nana Huchy"
,
@"noukies"
:
@"Noukie's"
,
@"oeuf"
:
@"Oeuf"
,
@"patachou"
:
@"Patachou"
,
@"paul-smith"
:
@"Paul Smith"
,
@"pepe"
:
@"PèPè"
,
@"sons-daughters-eyewear"
:
@"Sons + Daughters Eyewear"
,
@"stella-mccartney-kids"
:
@"Stella McCartney Kids"
,
@"story-loris"
:
@"Story Loris"
,
@"tartine-et-chocolat"
:
@"Tartine et Chocolat"
,
@"the-animals-observatory"
:
@"The Animals Observatory"
,
@"tiny-cottons"
:
@"Tiny Cottons"
,
@"tip-toey-joey"
:
@"Tip Toey Joey"
,
@"veja"
:
@"Veja"
,
@"young-versace"
:
@"Young Versace"
,
@"zadig-voltaire"
:
@"Zadig & Voltaire"
,
@"wolf-rita"
:
@"Wolf & Rita"
,
@"pintuan"
:
@"拼团专场"
};
//将handle的转化放到这里,转化之前将没转化过的handle存为标题
NSString
*
title
=
handle
;
// handle = [[KWMStringUtil deleteOtherCharExceptLetterWithLine:handle] lowercaseString];
...
...
iCemarose/Class/UI/Brand/Brand.storyboard
View file @
e10d4c3f
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"13
529
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"13
771
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina4_7"
orientation=
"portrait"
>
<adaptation
id=
"fullscreen"
/>
</device>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"13
527
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"13
772
"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<customFonts
key=
"customFonts"
>
...
...
@@ -26,6 +26,10 @@
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"667"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"kkz-NK-BGC"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"64"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"plain"
separatorStyle=
"none"
rowHeight=
"44"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"IcS-3H-XUB"
>
<rect
key=
"frame"
x=
"0.0"
y=
"94"
width=
"375"
height=
"573"
/>
<color
key=
"backgroundColor"
red=
"0.95686274509803915"
green=
"0.96078431372549022"
blue=
"0.96862745098039216"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
@@ -128,10 +132,6 @@
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"HK4-OE-vEa"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"kkz-NK-BGC"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"64"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</view>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<constraints>
...
...
@@ -161,6 +161,7 @@
<connections>
<outlet
property=
"btnBottom"
destination=
"lgS-Wb-cuc"
id=
"yWf-RS-4uY"
/>
<outlet
property=
"filterTab"
destination=
"hDa-nl-Tlr"
id=
"bN8-Bj-AEj"
/>
<outlet
property=
"filterTabTopConstraint"
destination=
"5UQ-kj-JaO"
id=
"6sK-SX-ufP"
/>
<outlet
property=
"filterView"
destination=
"Cy8-TS-7aW"
id=
"bXn-6V-4bg"
/>
<outlet
property=
"ivBrand"
destination=
"bSu-Ww-ztC"
id=
"i4m-wL-R2a"
/>
<outlet
property=
"tbvBrandCaramel"
destination=
"IcS-3H-XUB"
id=
"Op2-g8-Z4j"
/>
...
...
iCemarose/Class/UI/Brand/KWMBrandCaramelVC.m
View file @
e10d4c3f
...
...
@@ -27,6 +27,7 @@
@property
(
nonatomic
)
KWMBarandSelectView
*
barandSelectView
;
@property
(
nonatomic
)
NSArray
<
BUYProduct
*>
*
productArr
;
@property
(
weak
,
nonatomic
)
IBOutlet
NSLayoutConstraint
*
filterTabTopConstraint
;
@end
@implementation
KWMBrandCaramelVC
{
...
...
@@ -50,14 +51,22 @@
-
(
void
)
viewWillAppear
:
(
BOOL
)
animated
{
[
super
viewWillAppear
:
animated
];
if
(
!
[
self
.
handle
isEqualToString
:
@"pintuan"
])
{
[
self
.
navigationController
setNavigationBarHidden
:
YES
];
[
self
initHeaderView
];
}
else
{
self
.
title
=
self
.
brand
;
[
self
.
navigationController
setNavigationBarHidden
:
NO
];
self
.
filterTabTopConstraint
.
constant
=
0
;
}
}
-
(
void
)
viewWillDisappear
:
(
BOOL
)
animated
{
[
super
viewWillDisappear
:
animated
];
if
(
!
[
self
.
handle
isEqualToString
:
@"pintuan"
])
{
[
self
.
navigationController
setNavigationBarHidden
:
NO
];
[
_barandSelectView
removeFromSuperview
];
}
}
-
(
void
)
viewDidLoad
{
...
...
iCemarose/Class/UI/NewProduct/KWMNewProductVC.m
View file @
e10d4c3f
...
...
@@ -41,10 +41,20 @@
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
btnLike
;
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
shareBtn
;
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
addToCartBtn
;
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
buyNowBtn
;
@property
(
weak
,
nonatomic
)
IBOutlet
NSLayoutConstraint
*
heightMidView
;
@property
(
weak
,
nonatomic
)
IBOutlet
NSLayoutConstraint
*
detailView2HeightConstraint
;
@property
(
weak
,
nonatomic
)
IBOutlet
NSLayoutConstraint
*
buyNowBtnRightConstraint
;
@property
(
weak
,
nonatomic
)
IBOutlet
NSLayoutConstraint
*
buyNowBtnLeftConstraint
;
@property
(
weak
,
nonatomic
)
IBOutlet
NSLayoutConstraint
*
buyNowBtnWidthConstraint
;
@property
(
weak
,
nonatomic
)
IBOutlet
NSLayoutConstraint
*
midDetailViewTopConstraint
;
// 0 非自动 1 是加购 2 是立即购买
@property
(
assign
,
nonatomic
)
NSInteger
autoAddToBag
;
...
...
@@ -149,6 +159,16 @@
BOOL
isShowContactUs
=
isMoncler
&&
!
isBusiness
;
self
.
vBottomBar
.
hidden
=
isShowContactUs
;
self
.
btnContactUs
.
hidden
=
!
isShowContactUs
;
if
([
self
.
product
.
tags
containsObject
:
@"PinTuan"
])
{
CGFloat
width
=
self
.
addToCartBtn
.
frame
.
size
.
width
;
self
.
addToCartBtn
.
hidden
=
YES
;
self
.
buyNowBtnLeftConstraint
.
constant
=
width
-
40
;
self
.
buyNowBtnRightConstraint
.
constant
=
-
(
width
-
80
);
self
.
buyNowBtnWidthConstraint
.
constant
=
-
120
;
[
self
.
buyNowBtn
setTitle
:
@"我要拼团"
forState
:
UIControlStateNormal
];
self
.
midDetailViewTopConstraint
.
constant
=
104
;
self
.
shareBtn
.
hidden
=
YES
;
}
}
}
...
...
iCemarose/Class/UI/NewProduct/KWMVariantsVC.m
View file @
e10d4c3f
...
...
@@ -40,6 +40,10 @@
@property
(
nonatomic
)
NSArray
<
BUYProductVariant
*>
*
variantArray
;
@property
(
weak
,
nonatomic
)
NSURLSessionDataTask
*
lastCheckStockInChinaTask
;
@property
(
nonatomic
)
NSMutableDictionary
*
stockInChinas
;
//請求api拿到的admin 規格列表,主要使用到其中的庫存剩餘字段
@property
(
nonatomic
)
NSArray
<
KWMVariants
*>
*
adminVariantArray
;
...
...
@@ -54,6 +58,7 @@
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
self
initView
];
self
.
stockInChinas
=
[
NSMutableDictionary
new
];
}
-
(
void
)
viewDidLayoutSubviews
{
...
...
@@ -273,6 +278,16 @@
headerLabel
.
text
=
indexPath
.
section
==
0
?
sizeTitle
:
colorTitle
;
[
headView
addSubview
:
headerLabel
];
NSNumber
*
stockInChina
=
[
self
.
stockInChinas
objectForKey
:
self
.
selectVariant
.
sku
];
if
(
stockInChina
.
boolValue
)
{
CGSize
headerSize
=
[
sizeTitle
sizeWithAttributes
:@{
NSFontAttributeName
:
[
UIFont
systemFontOfSize
:
12
.
5
]}];
UILabel
*
stockInChina
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
50
+
headerSize
.
width
,
15
,
80
,
30
)];
stockInChina
.
text
=
@"国内现货"
;
stockInChina
.
font
=
[
UIFont
systemFontOfSize
:
12
.
5
];
stockInChina
.
textColor
=
[
UIColor
sam_colorWithHex
:
@"F1929A"
];
[
headView
addSubview
:
stockInChina
];
}
return
headView
;
}
...
...
@@ -337,6 +352,7 @@
}
self
.
selectVariant
=
variant
;
self
.
selectAdminVariant
=
adminVariant
;
[
self
checkStockInChina
:
variant
.
sku
];
[
self
.
cvVariants
reloadData
];
[
self
initUI
];
}
else
if
(
indexPath
.
section
==
1
){
...
...
@@ -357,6 +373,20 @@
}
}
-
(
void
)
checkStockInChina
:
(
NSString
*
)
sku
{
[
self
.
lastCheckStockInChinaTask
cancel
];
self
.
lastCheckStockInChinaTask
=
nil
;
if
([
self
.
stockInChinas
objectForKey
:
sku
])
{
return
;
}
__weak
typeof
(
self
)
this
=
self
;
self
.
lastCheckStockInChinaTask
=
[
self
.
api
checkStockInChina
:@{
@"sku"
:
sku
}
success
:
^
(
NSURLSessionDataTask
*
task
,
KWMDictionaryResult
*
result
)
{
NSNumber
*
status
=
result
.
data
[
@"status"
];
[
this
.
stockInChinas
setObject
:
status
forKey
:
sku
];
[
this
.
cvVariants
reloadData
];
}
failure
:
nil
];
}
#pragma mark -- API KWMAPIManager getAdminProduct
-
(
void
)
requestAdminProduct
:
(
NSNumber
*
)
productId
{
if
(
productId
==
nil
){
...
...
iCemarose/Class/UI/NewProduct/NewProduct.storyboard
View file @
e10d4c3f
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"13
196
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"13
771
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina4_7"
orientation=
"portrait"
>
<adaptation
id=
"fullscreen"
/>
</device>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"13
174
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"13
772
"
/>
<capability
name=
"Aspect ratio constraints"
minToolsVersion=
"5.1"
/>
<capability
name=
"Constraints with non-1.0 multipliers"
minToolsVersion=
"5.1"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
...
...
@@ -85,21 +85,185 @@
<rect
key=
"frame"
x=
"0.0"
y=
"64"
width=
"375"
height=
"553"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"X5Y-fo-qOg"
>
<rect
key=
"frame"
x=
"-0.5"
y=
"0.0"
width=
"375"
height=
"11
61.5
"
/>
<rect
key=
"frame"
x=
"-0.5"
y=
"0.0"
width=
"375"
height=
"11
79
"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"2KH-pA-K5l"
customClass=
"KWMFirstDetailView"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"625"
/>
<color
key=
"backgroundColor"
red=
"0.84705882349999995"
green=
"0.85882352939999995"
blue=
"0.87058823529999996"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"4XY-IP-z3t"
>
<rect
key=
"frame"
x=
"0.0"
y=
"625"
width=
"375"
height=
"104"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"1OE-9p-1PL"
>
<rect
key=
"frame"
x=
"-0.5"
y=
"0.0"
width=
"375"
height=
"50"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"拼团流程"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"gde-Dr-oK7"
>
<rect
key=
"frame"
x=
"22"
y=
"18"
width=
"49.5"
height=
"14.5"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"light"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.1529411765"
green=
"0.14901960780000001"
blue=
"0.21176470589999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"gde-Dr-oK7"
firstAttribute=
"leading"
secondItem=
"1OE-9p-1PL"
secondAttribute=
"leading"
constant=
"22"
id=
"KgK-Wl-PKY"
/>
<constraint
firstAttribute=
"height"
constant=
"50"
id=
"VUu-bz-tRY"
/>
<constraint
firstItem=
"gde-Dr-oK7"
firstAttribute=
"centerY"
secondItem=
"1OE-9p-1PL"
secondAttribute=
"centerY"
id=
"eSA-hp-7O9"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Mvg-c6-pef"
>
<rect
key=
"frame"
x=
"-0.5"
y=
"50"
width=
"375"
height=
"50"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"SCI-bl-Hm2"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"94"
height=
"50"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"1.参团"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"nfj-Rn-6w4"
>
<rect
key=
"frame"
x=
"30"
y=
"0.0"
width=
"33"
height=
"14.5"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"light"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.1529411765"
green=
"0.14901960780000001"
blue=
"0.21176470589999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"享受福利"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"UiM-bd-Tfk"
>
<rect
key=
"frame"
x=
"21.5"
y=
"14.5"
width=
"49.5"
height=
"14.5"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"light"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.1529411765"
green=
"0.14901960780000001"
blue=
"0.21176470589999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"nfj-Rn-6w4"
firstAttribute=
"top"
secondItem=
"SCI-bl-Hm2"
secondAttribute=
"top"
id=
"BOb-vj-Pnq"
/>
<constraint
firstItem=
"UiM-bd-Tfk"
firstAttribute=
"centerX"
secondItem=
"SCI-bl-Hm2"
secondAttribute=
"centerX"
id=
"Su5-4m-wvi"
/>
<constraint
firstItem=
"nfj-Rn-6w4"
firstAttribute=
"centerX"
secondItem=
"SCI-bl-Hm2"
secondAttribute=
"centerX"
id=
"ZoS-EU-TVh"
/>
<constraint
firstItem=
"UiM-bd-Tfk"
firstAttribute=
"top"
secondItem=
"nfj-Rn-6w4"
secondAttribute=
"bottom"
id=
"cZG-Vs-2r2"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"JJf-bw-Cie"
>
<rect
key=
"frame"
x=
"94"
y=
"0.0"
width=
"93.5"
height=
"50"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"2.邀请"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"1oY-Ug-5s8"
>
<rect
key=
"frame"
x=
"29"
y=
"0.0"
width=
"35.5"
height=
"14.5"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"light"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.1529411765"
green=
"0.14901960780000001"
blue=
"0.21176470589999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"好友拼团"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"N0R-E5-iBP"
>
<rect
key=
"frame"
x=
"22"
y=
"14.5"
width=
"49.5"
height=
"14.5"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"light"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.1529411765"
green=
"0.14901960780000001"
blue=
"0.21176470589999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"1oY-Ug-5s8"
firstAttribute=
"top"
secondItem=
"JJf-bw-Cie"
secondAttribute=
"top"
id=
"CIG-wm-Rm5"
/>
<constraint
firstItem=
"N0R-E5-iBP"
firstAttribute=
"top"
secondItem=
"1oY-Ug-5s8"
secondAttribute=
"bottom"
id=
"E9m-0G-2e8"
/>
<constraint
firstItem=
"1oY-Ug-5s8"
firstAttribute=
"centerX"
secondItem=
"JJf-bw-Cie"
secondAttribute=
"centerX"
id=
"IOU-Cp-1w3"
/>
<constraint
firstItem=
"N0R-E5-iBP"
firstAttribute=
"centerX"
secondItem=
"JJf-bw-Cie"
secondAttribute=
"centerX"
id=
"efs-KV-3U3"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"SR9-oF-sir"
>
<rect
key=
"frame"
x=
"187.5"
y=
"0.0"
width=
"94"
height=
"50"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"3.人满"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"6v9-B2-KP4"
>
<rect
key=
"frame"
x=
"29"
y=
"0.0"
width=
"35"
height=
"14.5"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"light"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.1529411765"
green=
"0.14901960780000001"
blue=
"0.21176470589999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"分别发货"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"0wW-u9-cht"
>
<rect
key=
"frame"
x=
"21.5"
y=
"14.5"
width=
"49.5"
height=
"14.5"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"light"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.1529411765"
green=
"0.14901960780000001"
blue=
"0.21176470589999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"6v9-B2-KP4"
firstAttribute=
"centerX"
secondItem=
"SR9-oF-sir"
secondAttribute=
"centerX"
id=
"PyV-UQ-9R9"
/>
<constraint
firstItem=
"6v9-B2-KP4"
firstAttribute=
"top"
secondItem=
"SR9-oF-sir"
secondAttribute=
"top"
id=
"fip-tE-2Q8"
/>
<constraint
firstItem=
"0wW-u9-cht"
firstAttribute=
"top"
secondItem=
"6v9-B2-KP4"
secondAttribute=
"bottom"
id=
"iOD-AL-VKK"
/>
<constraint
firstItem=
"0wW-u9-cht"
firstAttribute=
"centerX"
secondItem=
"SR9-oF-sir"
secondAttribute=
"centerX"
id=
"vOq-rk-1aG"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ffW-As-5mN"
>
<rect
key=
"frame"
x=
"281.5"
y=
"0.0"
width=
"93.5"
height=
"50"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"4.人不满"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"N4V-Jp-fLO"
>
<rect
key=
"frame"
x=
"23"
y=
"0.0"
width=
"47.5"
height=
"14.5"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"light"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.1529411765"
green=
"0.14901960780000001"
blue=
"0.21176470589999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"自动退款"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"JES-lR-6UD"
>
<rect
key=
"frame"
x=
"22"
y=
"14.5"
width=
"49.5"
height=
"14.5"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"light"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.1529411765"
green=
"0.14901960780000001"
blue=
"0.21176470589999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"N4V-Jp-fLO"
firstAttribute=
"top"
secondItem=
"ffW-As-5mN"
secondAttribute=
"top"
id=
"0c5-Ub-ngP"
/>
<constraint
firstItem=
"JES-lR-6UD"
firstAttribute=
"top"
secondItem=
"N4V-Jp-fLO"
secondAttribute=
"bottom"
id=
"6Tw-iY-HEk"
/>
<constraint
firstItem=
"N4V-Jp-fLO"
firstAttribute=
"centerX"
secondItem=
"ffW-As-5mN"
secondAttribute=
"centerX"
id=
"Pzc-ZE-cUb"
/>
<constraint
firstItem=
"JES-lR-6UD"
firstAttribute=
"centerX"
secondItem=
"ffW-As-5mN"
secondAttribute=
"centerX"
id=
"luh-kf-dvo"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"SCI-bl-Hm2"
firstAttribute=
"top"
secondItem=
"Mvg-c6-pef"
secondAttribute=
"top"
id=
"06s-6V-tCR"
/>
<constraint
firstAttribute=
"height"
constant=
"50"
id=
"3ob-2M-S83"
/>
<constraint
firstItem=
"JJf-bw-Cie"
firstAttribute=
"leading"
secondItem=
"SCI-bl-Hm2"
secondAttribute=
"trailing"
id=
"4xD-dK-yzN"
/>
<constraint
firstItem=
"ffW-As-5mN"
firstAttribute=
"top"
secondItem=
"Mvg-c6-pef"
secondAttribute=
"top"
id=
"9oa-L1-Zrz"
/>
<constraint
firstItem=
"SR9-oF-sir"
firstAttribute=
"top"
secondItem=
"Mvg-c6-pef"
secondAttribute=
"top"
id=
"Bmo-SJ-zLd"
/>
<constraint
firstItem=
"JJf-bw-Cie"
firstAttribute=
"width"
secondItem=
"SCI-bl-Hm2"
secondAttribute=
"width"
id=
"Jd6-nl-gg7"
/>
<constraint
firstItem=
"SR9-oF-sir"
firstAttribute=
"width"
secondItem=
"SCI-bl-Hm2"
secondAttribute=
"width"
id=
"RQW-Fe-afp"
/>
<constraint
firstItem=
"ffW-As-5mN"
firstAttribute=
"width"
secondItem=
"SCI-bl-Hm2"
secondAttribute=
"width"
id=
"Smb-Tg-Q6c"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"SCI-bl-Hm2"
secondAttribute=
"bottom"
id=
"TDA-TG-NiB"
/>
<constraint
firstItem=
"JJf-bw-Cie"
firstAttribute=
"top"
secondItem=
"Mvg-c6-pef"
secondAttribute=
"top"
id=
"bMV-DE-s1s"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"JJf-bw-Cie"
secondAttribute=
"bottom"
id=
"ceV-Zs-p6G"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"ffW-As-5mN"
secondAttribute=
"bottom"
id=
"f1t-tU-cNn"
/>
<constraint
firstItem=
"SR9-oF-sir"
firstAttribute=
"leading"
secondItem=
"JJf-bw-Cie"
secondAttribute=
"trailing"
id=
"n2p-cL-o16"
/>
<constraint
firstItem=
"ffW-As-5mN"
firstAttribute=
"leading"
secondItem=
"SR9-oF-sir"
secondAttribute=
"trailing"
id=
"onn-HF-rdg"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"ffW-As-5mN"
secondAttribute=
"trailing"
id=
"uro-lo-Vcx"
/>
<constraint
firstItem=
"SCI-bl-Hm2"
firstAttribute=
"leading"
secondItem=
"Mvg-c6-pef"
secondAttribute=
"leading"
id=
"xOd-S7-NEa"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"SR9-oF-sir"
secondAttribute=
"bottom"
id=
"zMJ-Pa-bgV"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"WOD-h2-yB5"
>
<rect
key=
"frame"
x=
"25"
y=
"103.5"
width=
"350"
height=
"0.5"
/>
<color
key=
"backgroundColor"
red=
"0.84705882349999995"
green=
"0.84705882349999995"
blue=
"0.87058823529999996"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<constraints>
<constraint
firstAttribute=
"height"
relation=
"greaterThanOrEqual"
constant=
"0.5"
id=
"OBQ-NH-qZ8"
/>
<constraint
firstAttribute=
"height"
constant=
"0.5"
id=
"dEN-lf-bH3"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"1OE-9p-1PL"
firstAttribute=
"leading"
secondItem=
"4XY-IP-z3t"
secondAttribute=
"leading"
id=
"9Ow-za-CR6"
/>
<constraint
firstItem=
"1OE-9p-1PL"
firstAttribute=
"top"
secondItem=
"4XY-IP-z3t"
secondAttribute=
"top"
id=
"IGN-gP-lDg"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"1OE-9p-1PL"
secondAttribute=
"trailing"
id=
"L7M-Vu-5SV"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Mvg-c6-pef"
secondAttribute=
"trailing"
id=
"LUD-xk-dfc"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"WOD-h2-yB5"
secondAttribute=
"bottom"
id=
"ONi-hO-J9i"
/>
<constraint
firstItem=
"Mvg-c6-pef"
firstAttribute=
"top"
secondItem=
"1OE-9p-1PL"
secondAttribute=
"bottom"
id=
"bGb-ig-afI"
/>
<constraint
firstItem=
"Mvg-c6-pef"
firstAttribute=
"leading"
secondItem=
"4XY-IP-z3t"
secondAttribute=
"leading"
id=
"dmF-Dw-3wZ"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"WOD-h2-yB5"
secondAttribute=
"trailing"
id=
"jQM-pD-Ne0"
/>
<constraint
firstItem=
"WOD-h2-yB5"
firstAttribute=
"leading"
secondItem=
"4XY-IP-z3t"
secondAttribute=
"leading"
constant=
"25"
id=
"kI6-wJ-LP1"
/>
<constraint
firstAttribute=
"height"
constant=
"104"
id=
"vEj-4l-scs"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"t55-gT-VGG"
customClass=
"KWMMidDetailView"
>
<rect
key=
"frame"
x=
"0.0"
y=
"625"
width=
"375"
height=
"
86.5
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"625"
width=
"375"
height=
"
104
"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"
86.5
"
id=
"Pwf-vg-Z3k"
/>
<constraint
firstAttribute=
"height"
constant=
"
104
"
id=
"Pwf-vg-Z3k"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"pyO-1P-iAa"
customClass=
"KWMSecondDetailView"
>
<rect
key=
"frame"
x=
"0.0"
y=
"7
11.5
"
width=
"375"
height=
"450"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"7
29
"
width=
"375"
height=
"450"
/>
<color
key=
"backgroundColor"
red=
"0.82745098039999998"
green=
"0.83921568629999999"
blue=
"0.85098039219999999"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"450"
id=
"SH3-J6-rwf"
/>
...
...
@@ -111,10 +275,13 @@
<constraint
firstItem=
"pyO-1P-iAa"
firstAttribute=
"top"
secondItem=
"t55-gT-VGG"
secondAttribute=
"bottom"
id=
"3ma-ng-9xU"
/>
<constraint
firstItem=
"2KH-pA-K5l"
firstAttribute=
"top"
secondItem=
"X5Y-fo-qOg"
secondAttribute=
"top"
id=
"8uT-aR-dQJ"
/>
<constraint
firstItem=
"t55-gT-VGG"
firstAttribute=
"top"
secondItem=
"2KH-pA-K5l"
secondAttribute=
"bottom"
id=
"C2e-75-EH0"
/>
<constraint
firstItem=
"4XY-IP-z3t"
firstAttribute=
"trailing"
secondItem=
"2KH-pA-K5l"
secondAttribute=
"trailing"
id=
"G1n-GY-2Wd"
/>
<constraint
firstItem=
"2KH-pA-K5l"
firstAttribute=
"leading"
secondItem=
"X5Y-fo-qOg"
secondAttribute=
"leading"
id=
"Mxu-Xv-sPL"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"pyO-1P-iAa"
secondAttribute=
"trailing"
id=
"WDZ-oF-tpJ"
/>
<constraint
firstItem=
"4XY-IP-z3t"
firstAttribute=
"top"
secondItem=
"2KH-pA-K5l"
secondAttribute=
"bottom"
id=
"Wsw-Fg-Tbq"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"pyO-1P-iAa"
secondAttribute=
"bottom"
id=
"cfg-Kh-t6P"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"2KH-pA-K5l"
secondAttribute=
"trailing"
id=
"etv-Gx-qLz"
/>
<constraint
firstItem=
"4XY-IP-z3t"
firstAttribute=
"leading"
secondItem=
"2KH-pA-K5l"
secondAttribute=
"leading"
id=
"nHE-Ks-3oT"
/>
<constraint
firstItem=
"t55-gT-VGG"
firstAttribute=
"leading"
secondItem=
"X5Y-fo-qOg"
secondAttribute=
"leading"
id=
"opZ-sC-XyM"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"t55-gT-VGG"
secondAttribute=
"trailing"
id=
"qp8-Hn-AW0"
/>
<constraint
firstItem=
"pyO-1P-iAa"
firstAttribute=
"leading"
secondItem=
"X5Y-fo-qOg"
secondAttribute=
"leading"
id=
"rsZ-aZ-dnV"
/>
...
...
@@ -165,34 +332,28 @@
<action
selector=
"onClickShopCart:"
destination=
"Vzq-D6-e57"
eventType=
"touchUpInside"
id=
"rOf-cw-IRH"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"80"
id=
"0qC-Tw-VN0"
/>
<constraint
firstItem=
"gbx-rg-A8B"
firstAttribute=
"centerX"
secondItem=
"p6D-hx-qVB"
secondAttribute=
"centerX"
id=
"fWx-g7-oy7"
/>
<constraint
firstItem=
"gbx-rg-A8B"
firstAttribute=
"centerY"
secondItem=
"p6D-hx-qVB"
secondAttribute=
"centerY"
id=
"fet-ki-2vJ"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Jxc-tQ-Uvl"
userLabel=
"line"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"80
"
height=
"1"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375
"
height=
"1"
/>
<color
key=
"backgroundColor"
red=
"0.84705882352941175"
green=
"0.85882352941176465"
blue=
"0.87058823529411766"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"dEf-Kf-tOU"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"SsT-tp-tcA"
userLabel=
"line"
>
<rect
key=
"frame"
x=
"0.0"
y=
"49"
width=
"80
"
height=
"1"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"49"
width=
"375
"
height=
"1"
/>
<color
key=
"backgroundColor"
red=
"0.84705882349999995"
green=
"0.85882352939999995"
blue=
"0.87058823529999996"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"8D1-12-8eD"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"80"
id=
"0qC-Tw-VN0"
/>
<constraint
firstItem=
"Jxc-tQ-Uvl"
firstAttribute=
"top"
secondItem=
"p6D-hx-qVB"
secondAttribute=
"top"
id=
"5BL-i2-XEO"
/>
<constraint
firstItem=
"Jxc-tQ-Uvl"
firstAttribute=
"leading"
secondItem=
"p6D-hx-qVB"
secondAttribute=
"leading"
id=
"EXa-s5-aZV"
/>
<constraint
firstItem=
"SsT-tp-tcA"
firstAttribute=
"leading"
secondItem=
"p6D-hx-qVB"
secondAttribute=
"leading"
id=
"Im8-La-slV"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"SsT-tp-tcA"
secondAttribute=
"bottom"
id=
"Y16-zp-sdL"
/>
<constraint
firstItem=
"gbx-rg-A8B"
firstAttribute=
"centerX"
secondItem=
"p6D-hx-qVB"
secondAttribute=
"centerX"
id=
"fWx-g7-oy7"
/>
<constraint
firstItem=
"gbx-rg-A8B"
firstAttribute=
"centerY"
secondItem=
"p6D-hx-qVB"
secondAttribute=
"centerY"
id=
"fet-ki-2vJ"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Jxc-tQ-Uvl"
secondAttribute=
"trailing"
id=
"kHN-ud-ZhE"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"SsT-tp-tcA"
secondAttribute=
"trailing"
id=
"w8n-Bj-0GH"
/>
</constraints>
</view>
<button
opaque=
"NO"
tag=
"1"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"YFr-wz-mgl"
>
<rect
key=
"frame"
x=
"80"
y=
"0.0"
width=
"147.5"
height=
"50"
/>
<color
key=
"backgroundColor"
red=
"0.94509803921568625"
green=
"0.5725490196078431"
blue=
"0.60392156862745094"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
...
...
@@ -218,11 +379,17 @@
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<constraints>
<constraint
firstAttribute=
"bottom"
secondItem=
"SsT-tp-tcA"
secondAttribute=
"bottom"
id=
"07U-IF-2wk"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"SsT-tp-tcA"
secondAttribute=
"trailing"
id=
"0kc-zO-zeG"
/>
<constraint
firstItem=
"SsT-tp-tcA"
firstAttribute=
"leading"
secondItem=
"aqB-2y-BKU"
secondAttribute=
"leading"
id=
"5bH-3e-PYm"
/>
<constraint
firstItem=
"Jxc-tQ-Uvl"
firstAttribute=
"top"
secondItem=
"aqB-2y-BKU"
secondAttribute=
"top"
id=
"5yD-LS-kk3"
/>
<constraint
firstItem=
"p6D-hx-qVB"
firstAttribute=
"leading"
secondItem=
"aqB-2y-BKU"
secondAttribute=
"leading"
id=
"9CF-cd-J2w"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"oPf-c2-z7n"
secondAttribute=
"trailing"
id=
"Iie-17-jiS"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"oPf-c2-z7n"
secondAttribute=
"bottom"
id=
"QCf-h9-wdW"
/>
<constraint
firstItem=
"Jxc-tQ-Uvl"
firstAttribute=
"leading"
secondItem=
"aqB-2y-BKU"
secondAttribute=
"leading"
id=
"UH7-Ab-bzS"
/>
<constraint
firstAttribute=
"height"
constant=
"50"
id=
"WhH-yK-gHq"
/>
<constraint
firstItem=
"YFr-wz-mgl"
firstAttribute=
"leading"
secondItem=
"p6D-hx-qVB"
secondAttribute=
"trailing"
id=
"Z0o-FF-rB3"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Jxc-tQ-Uvl"
secondAttribute=
"trailing"
id=
"cjE-V6-OoG"
/>
<constraint
firstItem=
"p6D-hx-qVB"
firstAttribute=
"top"
secondItem=
"aqB-2y-BKU"
secondAttribute=
"top"
id=
"fu6-hx-f4P"
/>
<constraint
firstItem=
"YFr-wz-mgl"
firstAttribute=
"top"
secondItem=
"aqB-2y-BKU"
secondAttribute=
"top"
id=
"j1Q-pi-pXT"
/>
<constraint
firstItem=
"oPf-c2-z7n"
firstAttribute=
"width"
secondItem=
"YFr-wz-mgl"
secondAttribute=
"width"
id=
"mIU-GL-6wk"
/>
...
...
@@ -251,21 +418,28 @@
</constraints>
</view>
<connections>
<outlet
property=
"addToCartBtn"
destination=
"oPf-c2-z7n"
id=
"YBv-0G-Yj1"
/>
<outlet
property=
"btnContactUs"
destination=
"344-t8-DPO"
id=
"Se8-h5-pev"
/>
<outlet
property=
"btnLike"
destination=
"jLv-Vv-7Vi"
id=
"sep-kb-Y2L"
/>
<outlet
property=
"btnShopCart"
destination=
"gbx-rg-A8B"
id=
"vel-Ab-0rI"
/>
<outlet
property=
"buyNowBtn"
destination=
"YFr-wz-mgl"
id=
"RoL-f3-cmD"
/>
<outlet
property=
"buyNowBtnLeftConstraint"
destination=
"Z0o-FF-rB3"
id=
"dyG-Ra-0l1"
/>
<outlet
property=
"buyNowBtnRightConstraint"
destination=
"zYC-I5-kAq"
id=
"cie-0h-W0k"
/>
<outlet
property=
"buyNowBtnWidthConstraint"
destination=
"mIU-GL-6wk"
id=
"YDC-Q1-Ns0"
/>
<outlet
property=
"detailView1"
destination=
"2KH-pA-K5l"
id=
"ynO-by-UfZ"
/>
<outlet
property=
"detailView2"
destination=
"pyO-1P-iAa"
id=
"scJ-Iv-fnz"
/>
<outlet
property=
"detailView2HeightConstraint"
destination=
"SH3-J6-rwf"
id=
"H8q-0s-nUI"
/>
<outlet
property=
"heightMidView"
destination=
"Pwf-vg-Z3k"
id=
"h8Z-Kr-bXi"
/>
<outlet
property=
"midDetailView"
destination=
"t55-gT-VGG"
id=
"BRI-de-9Jz"
/>
<outlet
property=
"midDetailViewTopConstraint"
destination=
"C2e-75-EH0"
id=
"TgN-1D-98K"
/>
<outlet
property=
"scrollView"
destination=
"T6J-Gp-5iu"
id=
"ZLc-Xh-Pyk"
/>
<outlet
property=
"shareBtn"
destination=
"GyL-XU-Wjr"
id=
"ei2-dL-wbt"
/>
<outlet
property=
"vBottomBar"
destination=
"aqB-2y-BKU"
id=
"S6H-fL-0uE"
/>
</connections>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"uHF-Hi-PUR"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
<point
key=
"canvasLocation"
x=
"-30
2"
y=
"57
"
/>
<point
key=
"canvasLocation"
x=
"-30
3.19999999999999"
y=
"56.221889055472268
"
/>
</scene>
<!--选择规格-->
<scene
sceneID=
"V5g-Le-Who"
>
...
...
iCemarose/Info.plist
View file @
e10d4c3f
...
...
@@ -15,7 +15,7 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.6.
4
<
/string
>
<
string
>
1.6.
5
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleURLTypes
<
/k
e
y
>
...
...
@@ -56,7 +56,7 @@
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1.6.4
<
/string
>
<
string
>
1.6.
5.
4
<
/string
>
<
k
e
y
>
ITSAppUsesNonExemptEncryption
<
/k
e
y
>
<
fa
ls
e
/
>
<
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