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
3c7dd16d
Commit
3c7dd16d
authored
May 25, 2016
by
勾芒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复取值
parent
6d6afa76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
ProductLibraryViewController.m
Lighting/Class/ProductLibraryViewController.m
+6
-4
No files found.
Lighting/Class/ProductLibraryViewController.m
View file @
3c7dd16d
...
...
@@ -313,12 +313,14 @@
-
(
UICollectionViewCell
*
)
collectionView
:
(
UICollectionView
*
)
collectionView
cellForItemAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
ProductCollectionViewCell
*
cell
=
[
collectionView
dequeueReusableCellWithReuseIdentifier
:
@"productcell"
forIndexPath
:
indexPath
];
NSArray
*
imageArray
=
[[[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
item
]
pictures
]
componentsSeparatedByString
:
@","
];
TOGoodsEntity
*
model
=
[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
item
];
NSArray
*
imageArray
=
[
model
.
pictures
componentsSeparatedByString
:
@","
];
[
cell
.
productImageView
sd_setImageWithURL
:[
NSURL
URLWithString
:[
imageArray
firstObject
]]
placeholderImage
:
REPLACEIMAGE
];
cell
.
productPrice
.
text
=
[
NSString
stringWithFormat
:
@"¥%@"
,
[[[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
item
]
tagPrice
]
stringValue
]
];
cell
.
productPrice
.
text
=
[
NSString
stringWithFormat
:
@"¥%@"
,
model
.
tagPrice
];
cell
.
cellindex
=
indexPath
.
item
;
cell
.
productParameter
.
text
=
[[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
item
]
name
];
cell
.
specifications
.
text
=
[
NSString
stringWithFormat
:
@"%@(%@)"
,[[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
item
]
name
],[[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
item
]
name
]];
cell
.
productParameter
.
text
=
model
.
name
;
cell
.
specifications
.
text
=
[
NSString
stringWithFormat
:
@"%@(%@)"
,
model
.
code
,
model
.
size
];
//加入购物车
__weak
typeof
(
self
)
weakSelf
=
self
;
...
...
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