33 lines
793 B
Objective-C
33 lines
793 B
Objective-C
//
|
|
// LMSendSpecialCollectionViewCell.m
|
|
// SweetParty
|
|
//
|
|
// Created by Xmac on 2024/9/2.
|
|
//
|
|
|
|
#import "LMSendSpecialCollectionViewCell.h"
|
|
|
|
@implementation LMSendSpecialCollectionViewCell
|
|
|
|
- (void)awakeFromNib
|
|
{
|
|
[super awakeFromNib];
|
|
[self.tagCover styleGradiBlueColor];
|
|
}
|
|
|
|
- (void)setModel:(LMSpecialGiftModel *)model
|
|
{
|
|
_model = model;
|
|
self.giftNameLabel.text = model.gift_name;
|
|
self.giftPriceLabel.text = model.gift_price;
|
|
[self.giftBaseIMG sd_setImageWithURL:[NSURL URLWithString:model.base_image] placeholderImage:kDefaultUserIcon];
|
|
if (model.isSelect){
|
|
self.itemBGIcon.image = ImageNamed(@"xq_special_gift_sel");
|
|
}else{
|
|
self.itemBGIcon.image = ImageNamed(@"xq_special_gift_nor");
|
|
}
|
|
self.tagNameLabel.text = model.tag_name;
|
|
}
|
|
|
|
@end
|