Commit 3c7dd16d authored by 勾芒's avatar 勾芒

修复取值

parent 6d6afa76
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment