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
d1ac4d19
Commit
d1ac4d19
authored
Jul 17, 2017
by
lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u show price
parent
27c1d371
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
KWMRightProductCell.m
iCemarose/Class/UI/Category/Cell/KWMRightProductCell.m
+6
-3
KWMNewHomeCell.m
iCemarose/Class/UI/NewHome/Cell/KWMNewHomeCell.m
+2
-1
KWMShopCartVC.m
iCemarose/Class/UI/ShopCart/KWMShopCartVC.m
+2
-0
No files found.
iCemarose/Class/UI/Category/Cell/KWMRightProductCell.m
View file @
d1ac4d19
...
@@ -44,9 +44,12 @@
...
@@ -44,9 +44,12 @@
NSArray
*
variantsArray
=
product
.
variantsArray
;
NSArray
*
variantsArray
=
product
.
variantsArray
;
if
(
variantsArray
&&
variantsArray
.
count
>
0
){
if
(
variantsArray
&&
variantsArray
.
count
>
0
){
BUYProductVariant
*
variant
=
variantsArray
.
firstObject
;
BUYProductVariant
*
variant
=
variantsArray
.
firstObject
;
self
.
lbPrice
.
text
=
[
KWMStringUtil
price
:
variant
.
price
];
// self.lbPrice.text = [KWMStringUtil price:variant.price];
self
.
lbSinglePrice
.
text
=
[
KWMStringUtil
price
:
variant
.
price
];
// self.lbSinglePrice.text = [KWMStringUtil price:variant.price];
self
.
lbCompareAtPrice
.
text
=
[
KWMStringUtil
price
:
variant
.
compareAtPrice
];
// self.lbCompareAtPrice.text = [KWMStringUtil price:variant.compareAtPrice];
self
.
lbPrice
.
text
=
variant
.
price
.
priceValueFormatted
;
self
.
lbSinglePrice
.
text
=
variant
.
price
.
priceValueFormatted
;
self
.
lbCompareAtPrice
.
text
=
variant
.
compareAtPrice
.
priceValueFormatted
;
}
}
NSString
*
imageUrl
=
[
KWMImageUtil
getProductImageUrl
:
product
ImageSize
:
SmallImage
];
NSString
*
imageUrl
=
[
KWMImageUtil
getProductImageUrl
:
product
ImageSize
:
SmallImage
];
...
...
iCemarose/Class/UI/NewHome/Cell/KWMNewHomeCell.m
View file @
d1ac4d19
...
@@ -64,7 +64,8 @@
...
@@ -64,7 +64,8 @@
self
.
lbName
.
text
=
product
.
title
;
self
.
lbName
.
text
=
product
.
title
;
if
(
product
.
variantsArray
.
count
>
0
){
if
(
product
.
variantsArray
.
count
>
0
){
BUYProductVariant
*
variant
=
product
.
variantsArray
.
firstObject
;
BUYProductVariant
*
variant
=
product
.
variantsArray
.
firstObject
;
self
.
lbPrice
.
text
=
[
KWMStringUtil
price
:
variant
.
price
];
// self.lbPrice.text = [KWMStringUtil price:variant.price];
self
.
lbPrice
.
text
=
variant
.
price
.
priceValueFormatted
;
}
}
}
}
}
}
...
...
iCemarose/Class/UI/ShopCart/KWMShopCartVC.m
View file @
d1ac4d19
...
@@ -254,6 +254,8 @@
...
@@ -254,6 +254,8 @@
}
else
{
}
else
{
// price += [model.price.priceValue decimalNumberByMultiplyingBy:[NSDecimalNumber decimalNumberWithString:@(model.quantity).stringValue]].integerValue;
// price += [model.price.priceValue decimalNumberByMultiplyingBy:[NSDecimalNumber decimalNumberWithString:@(model.quantity).stringValue]].integerValue;
total
=
[
total
decimalNumberByAdding
:[
model
.
price
.
priceValue
decimalNumberByMultiplyingBy
:[
NSDecimalNumber
decimalNumberWithString
:
@
(
model
.
quantity
).
stringValue
]]];
total
=
[
total
decimalNumberByAdding
:[
model
.
price
.
priceValue
decimalNumberByMultiplyingBy
:[
NSDecimalNumber
decimalNumberWithString
:
@
(
model
.
quantity
).
stringValue
]]];
// FIXME: 这里要bug
total
=
[
total
decimalNumberByAdding
:
nil
];
}
}
}
}
// _lbTotalPrice.text = [NSString stringWithFormat: @"¥%@",[KWMStringUtil getEUR2CNYstring:@(price)]];
// _lbTotalPrice.text = [NSString stringWithFormat: @"¥%@",[KWMStringUtil getEUR2CNYstring:@(price)]];
...
...
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