//
//  HotCommodityCell.m
//  ALand
//
//  Created by Z on 16/3/25.
//  Copyright © 2016年 Z. All rights reserved.
//

#import "HotCommodityCell.h"

@interface HotCommodityCell ()

@property (weak, nonatomic) IBOutlet UIView *viewRight;

@end
@implementation HotCommodityCell

- (void)cellWithModel:(HotBrandModel *)model indexPath:(NSIndexPath *)indexPath {
    
    if ((int)indexPath.row % 3 == 2) {
        [self showRight];
    }else{
        [self hideRight];
    }
    
    [self.imageViewPic sd_setImageWithURL:[NSURL URLWithString:model.logo] placeholderImage:nil];
    
}

- (void)hideRight {
    self.viewRight.hidden = YES;
}
- (void)showRight {
    self.viewRight.hidden = NO;
}

- (void)awakeFromNib {
    // Initialization code
}

@end
