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
3646de87
Commit
3646de87
authored
Jan 02, 2018
by
lee
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.oschina.net:kollway-kollway/newcemarose
parents
049ef3b3
5c4f2d3e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletions
+18
-1
KWMNewProductVC.m
iCemarose/Class/UI/NewProduct/KWMNewProductVC.m
+18
-1
No files found.
iCemarose/Class/UI/NewProduct/KWMNewProductVC.m
View file @
3646de87
...
@@ -134,15 +134,32 @@
...
@@ -134,15 +134,32 @@
-
(
void
)
initBottomViewHidden
{
-
(
void
)
initBottomViewHidden
{
if
(
self
.
product
){
if
(
self
.
product
){
NSDictionary
*
customerDict
=
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
@"customer"
];
BUYCustomer
*
customer
=
[[
BUYCustomer
alloc
]
initWithModelManager
:
self
.
client
.
modelManager
JSONDictionary
:
customerDict
];
BOOL
isBusiness
=
customer
&&
customer
.
tags
&&
([
self
isContainString
:
customer
.
tags
substring
:
@"BusinessGold"
]
||
[
self
isContainString
:
customer
.
tags
substring
:
@"BusinessPlatinum"
]
||
[
self
isContainString
:
customer
.
tags
substring
:
@"BusinessDiamond"
]
||
[
self
isContainString
:
customer
.
tags
substring
:
@"BusinessSuper"
]);
NSString
*
productVendor
=
self
.
product
.
vendor
?:
@""
;
NSString
*
productVendor
=
self
.
product
.
vendor
?:
@""
;
productVendor
=
[
productVendor
lowercaseString
];
productVendor
=
[
productVendor
lowercaseString
];
NSString
*
targetVendor
=
@"moncler"
;
NSString
*
targetVendor
=
@"moncler"
;
BOOL
isShowContactUs
=
[
productVendor
isEqualToString
:
targetVendor
];
BOOL
isMoncler
=
[
productVendor
isEqualToString
:
targetVendor
];
BOOL
isShowContactUs
=
isMoncler
&&
!
isBusiness
;
self
.
vBottomBar
.
hidden
=
isShowContactUs
;
self
.
vBottomBar
.
hidden
=
isShowContactUs
;
self
.
btnContactUs
.
hidden
=
!
isShowContactUs
;
self
.
btnContactUs
.
hidden
=
!
isShowContactUs
;
}
}
}
}
-
(
BOOL
)
isContainString
:
(
NSString
*
)
str
substring
:
(
NSString
*
)
substring
{
if
([
str
rangeOfString
:
substring
].
location
!=
NSNotFound
){
return
true
;
}
else
{
return
false
;
}
}
-
(
void
)
initShopCartCount
{
-
(
void
)
initShopCartCount
{
...
...
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