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
6319bc2d
Commit
6319bc2d
authored
May 24, 2016
by
polo2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改了一些细节
parent
2691c8bf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
133 additions
and
96 deletions
+133
-96
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
+117
-91
No files found.
Lighting/Class/CommodityListTableViewCell.h
View file @
6319bc2d
...
...
@@ -52,7 +52,10 @@
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
specifications
;
/**
* 商品代码
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
goodsCode
;
...
...
Lighting/Class/CommodityListTableViewCell.m
View file @
6319bc2d
...
...
@@ -21,7 +21,8 @@
_model
=
model
;
[
self
.
goodsHeader
sd_setImageWithURL
:[
NSURL
URLWithString
:
_model
.
goods
.
pictures
]
placeholderImage
:
REPLACEIMAGE
];
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
.
clinchPrice
.
text
=
[
NSString
stringWithFormat
:
@"成交价 ¥%.2f"
,[
_model
.
goods
.
costPrice
floatValue
]];
//计算总价格
...
...
@@ -36,14 +37,16 @@
#pragma mark -订单详情页赋值
-
(
void
)
setOrderDetailslist
:
(
TOOrderdetailEntity
*
)
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
.
clinchPrice
.
text
=
[
NSString
stringWithFormat
:
@"成交价 ¥%.2f"
,[
_orderDetailslist
.
goodsPrice
floatValue
]];
//小计
CGFloat
totalPrice
=
[
_orderDetailslist
.
goodsNum
integerValue
]
*
[
_orderDetailslist
.
goodsPrice
floatValue
];
self
.
totalPrice
.
text
=
[
NSString
stringWithFormat
:
@"¥%.2f"
,
totalPrice
];
self
.
goodsName
.
text
=
_orderDetailslist
.
goodsSpec
;
...
...
Lighting/Class/Shoppingcart/ShoppingTableViewCell.h
View file @
6319bc2d
...
...
@@ -105,5 +105,9 @@
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
specifications
;
/**
* 商品代码
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
goodsCode
;
@end
Lighting/Class/Shoppingcart/ShoppingTableViewCell.m
View file @
6319bc2d
...
...
@@ -33,7 +33,8 @@
self
.
selectedButton
.
selected
=
_model
.
isSelected
;
[
self
.
goodsImageView
sd_setImageWithURL
:[
NSURL
URLWithString
:
_model
.
goods
.
pictures
]
placeholderImage
:
REPLACEIMAGE
];
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
.
clinchTextfield
.
text
=
[
_model
.
goods
.
costPrice
stringValue
];
self
.
goodsNumbersLabe
.
text
=
[
NSString
stringWithFormat
:
@"%d"
,
_model
.
goodsNum
];
...
...
Lighting/Lighting/StoryboardwithCYX.storyboard
View file @
6319bc2d
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