// // DLJueweiItemCell.m // SweetParty // // Created by bj_szd on 2023/6/28. // #import "DLJueweiItemCell.h" @implementation DLJueweiItemCell - (void)awakeFromNib { [super awakeFromNib]; // Initialization code } - (void)setModel:(DLJueweiItemModel *)model { _model = model; if (model.is_power == 1) { [self.imgV sd_setImageWithURL:[NSURL URLWithString:model.image]]; self.titleLab.textColor = HEXCOLORA(0xFFBB3A, 1); self.decLab.textColor = HEXCOLORA(0xFFBB3A, 1); }else { [self.imgV sd_setImageWithURL:[NSURL URLWithString:model.images]]; self.titleLab.textColor = HEXCOLORA(0x999999, 1); self.decLab.textColor = HEXCOLORA(0x999999, 1); } self.titleLab.text = model.name; self.decLab.text = model.content; } @end