Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
Opple-iOS
Project
Project
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
张杰
Opple-iOS
Commits
b3cc3065
Commit
b3cc3065
authored
May 24, 2016
by
勾芒
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
0ec81de6
6319bc2d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
132 additions
and
95 deletions
+132
-95
CommodityListTableViewCell.h
Lighting/Class/CommodityListTableViewCell.h
+4
-1
CommodityListTableViewCell.m
Lighting/Class/CommodityListTableViewCell.m
+6
-3
ShoppingTableViewCell.h
Lighting/Class/Shoppingcart/ShoppingTableViewCell.h
+4
-0
ShoppingTableViewCell.m
Lighting/Class/Shoppingcart/ShoppingTableViewCell.m
+2
-1
StoryboardwithCYX.storyboard
Lighting/Lighting/StoryboardwithCYX.storyboard
+116
-90
No files found.
Lighting/Class/CommodityListTableViewCell.h
View file @
b3cc3065
...
@@ -52,7 +52,10 @@
...
@@ -52,7 +52,10 @@
*/
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
specifications
;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
specifications
;
/**
* 商品代码
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
goodsCode
;
...
...
Lighting/Class/CommodityListTableViewCell.m
View file @
b3cc3065
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
_model
=
model
;
_model
=
model
;
[
self
.
goodsHeader
sd_setImageWithURL
:[
NSURL
URLWithString
:
_model
.
goods
.
pictures
]
placeholderImage
:
REPLACEIMAGE
];
[
self
.
goodsHeader
sd_setImageWithURL
:[
NSURL
URLWithString
:
_model
.
goods
.
pictures
]
placeholderImage
:
REPLACEIMAGE
];
self
.
goodsName
.
text
=
_model
.
goods
.
name
;
self
.
goodsName
.
text
=
_model
.
goods
.
name
;
self
.
specifications
.
text
=
[
NSString
stringWithFormat
:
@"%@(%@)"
,
_model
.
goods
.
productProfile
,
_model
.
goods
.
spec
];
self
.
specifications
.
text
=
_model
.
goods
.
size
;
self
.
goodsCode
.
text
=
_model
.
goods
.
code
;
self
.
goodsNumber
.
text
=
[
NSString
stringWithFormat
:
@"数量 X%d"
,
_model
.
goodsNum
];
self
.
goodsNumber
.
text
=
[
NSString
stringWithFormat
:
@"数量 X%d"
,
_model
.
goodsNum
];
self
.
clinchPrice
.
text
=
[
NSString
stringWithFormat
:
@"成交价 ¥%.2f"
,[
_model
.
goods
.
costPrice
floatValue
]];
self
.
clinchPrice
.
text
=
[
NSString
stringWithFormat
:
@"成交价 ¥%.2f"
,[
_model
.
goods
.
costPrice
floatValue
]];
//计算总价格
//计算总价格
...
@@ -36,14 +37,16 @@
...
@@ -36,14 +37,16 @@
#pragma mark -订单详情页赋值
#pragma mark -订单详情页赋值
-
(
void
)
setOrderDetailslist
:
(
TOOrderdetailEntity
*
)
orderDetailslist
-
(
void
)
setOrderDetailslist
:
(
TOOrderdetailEntity
*
)
orderDetailslist
{
{
_orderDetailslist
=
orderDetailslist
;
_orderDetailslist
=
orderDetailslist
;
[
self
.
goodsHeader
sd_setImageWithURL
:[
NSURL
URLWithString
:
_orderDetailslist
.
goodsBrand
]
placeholderImage
:
ReplaceImage
];
self
.
goodsName
.
text
=
_orderDetailslist
.
goodsName
;
self
.
goodsCode
.
text
=
_orderDetailslist
.
goodsCode
;
[
self
.
goodsHeader
sd_setImageWithURL
:[
NSURL
URLWithString
:
_orderDetailslist
.
goodsBrand
]
placeholderImage
:
REPLACEIMAGE
];
self
.
goodsNumber
.
text
=
[
NSString
stringWithFormat
:
@"数量 X%@"
,
_orderDetailslist
.
goodsNum
];
self
.
goodsNumber
.
text
=
[
NSString
stringWithFormat
:
@"数量 X%@"
,
_orderDetailslist
.
goodsNum
];
self
.
clinchPrice
.
text
=
[
NSString
stringWithFormat
:
@"成交价 ¥%.2f"
,[
_orderDetailslist
.
goodsPrice
floatValue
]];
self
.
clinchPrice
.
text
=
[
NSString
stringWithFormat
:
@"成交价 ¥%.2f"
,[
_orderDetailslist
.
goodsPrice
floatValue
]];
//小计
//小计
CGFloat
totalPrice
=
[
_orderDetailslist
.
goodsNum
integerValue
]
*
[
_orderDetailslist
.
goodsPrice
floatValue
];
CGFloat
totalPrice
=
[
_orderDetailslist
.
goodsNum
integerValue
]
*
[
_orderDetailslist
.
goodsPrice
floatValue
];
self
.
totalPrice
.
text
=
[
NSString
stringWithFormat
:
@"¥%.2f"
,
totalPrice
];
self
.
totalPrice
.
text
=
[
NSString
stringWithFormat
:
@"¥%.2f"
,
totalPrice
];
self
.
goodsName
.
text
=
_orderDetailslist
.
goodsSpec
;
...
...
Lighting/Class/Shoppingcart/ShoppingTableViewCell.h
View file @
b3cc3065
...
@@ -105,5 +105,9 @@
...
@@ -105,5 +105,9 @@
*/
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
specifications
;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
specifications
;
/**
* 商品代码
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
goodsCode
;
@end
@end
Lighting/Class/Shoppingcart/ShoppingTableViewCell.m
View file @
b3cc3065
...
@@ -33,7 +33,8 @@
...
@@ -33,7 +33,8 @@
self
.
selectedButton
.
selected
=
_model
.
isSelected
;
self
.
selectedButton
.
selected
=
_model
.
isSelected
;
[
self
.
goodsImageView
sd_setImageWithURL
:[
NSURL
URLWithString
:
_model
.
goods
.
pictures
]
placeholderImage
:
REPLACEIMAGE
];
[
self
.
goodsImageView
sd_setImageWithURL
:[
NSURL
URLWithString
:
_model
.
goods
.
pictures
]
placeholderImage
:
REPLACEIMAGE
];
self
.
goodsInformationLabe
.
text
=
_model
.
goods
.
name
;
self
.
goodsInformationLabe
.
text
=
_model
.
goods
.
name
;
self
.
specifications
.
text
=
[
NSString
stringWithFormat
:
@"%@(%@)"
,
_model
.
goods
.
productProfile
,
_model
.
goods
.
spec
];
self
.
specifications
.
text
=
_model
.
goods
.
size
;
self
.
goodsCode
.
text
=
_model
.
goods
.
code
;
self
.
tagsPriceLabe
.
text
=
[
_model
.
goods
.
tagPrice
stringValue
];
self
.
tagsPriceLabe
.
text
=
[
_model
.
goods
.
tagPrice
stringValue
];
self
.
clinchTextfield
.
text
=
[
_model
.
goods
.
costPrice
stringValue
];
self
.
clinchTextfield
.
text
=
[
_model
.
goods
.
costPrice
stringValue
];
self
.
goodsNumbersLabe
.
text
=
[
NSString
stringWithFormat
:
@"%d"
,
_model
.
goodsNum
];
self
.
goodsNumbersLabe
.
text
=
[
NSString
stringWithFormat
:
@"%d"
,
_model
.
goodsNum
];
...
...
Lighting/Lighting/StoryboardwithCYX.storyboard
View file @
b3cc3065
This diff is collapsed.
Click to expand it.
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