// // LMWeekCurrentCollectionViewCell.m // SweetParty // // Created by Xmac on 2024/8/7. // #import "LMWeekCurrentCollectionViewCell.h" @implementation LMWeekCurrentCollectionViewCell - (void)awakeFromNib { [super awakeFromNib]; // Initialization code } - (void)setModel:(LMWeekStarGitfListModel *)model { _model = model; [self.giftBaseImage sd_setImageWithURL:[NSURL URLWithString:model.base_image] placeholderImage:kDefaultUserIcon]; self.giftNameLabel.text = model.gift_name; if (model.isSelect == YES){ self.giftBgImage.image = ImageNamed(@"week_item_current_sel"); }else{ self.giftBgImage.image = ImageNamed(@"week_item_current_nor"); } } @end