Initial commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
//
|
||||
// IfishBCShopItemCell.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/4/11.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import "IfishBCShopItemCell.h"
|
||||
#import "UIImageView+WebCache.h"
|
||||
@implementation IfishBCShopItemCell
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
}
|
||||
|
||||
-(void)loadCellData:(IfishGoodsData*)model
|
||||
{
|
||||
|
||||
[self.goodsImg sd_setImageWithURL:[NSURL URLWithString:model.goodsPicture] placeholderImage:[UIImage imageNamed:@"Ifish_goodsholder"]];
|
||||
self.goodsName.text = model.goodsName;
|
||||
self.shopName.text = model.shopName;
|
||||
|
||||
NSString *oldprice = [NSString stringWithFormat:@"¥%@",model.oriPrice];
|
||||
self.yuanJia.textColor = RGB(153, 153, 153);
|
||||
NSMutableAttributedString *newyuanPrice = [[NSMutableAttributedString alloc] initWithString:oldprice];
|
||||
[newyuanPrice setAttributes:@{NSStrikethroughStyleAttributeName: [NSNumber numberWithInteger:NSUnderlineStyleSingle]} range:NSMakeRange(0,newyuanPrice.length)];
|
||||
|
||||
self.yuanJia.attributedText = newyuanPrice;
|
||||
self.youhuiJia.text = [NSString stringWithFormat:@"¥%@",model.prePrice];
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user