|
@@ -50,12 +50,17 @@
|
|
|
|
|
|
NSMutableAttributedString *attrStr = [[NSMutableAttributedString alloc] initWithString:messgage attributes:@{NSParagraphStyleAttributeName:paragraphStyle,NSFontAttributeName:[UIFont systemFontOfSize:13.0f],NSForegroundColorAttributeName:HexRGB(0x7a7a7a)}];
|
|
NSMutableAttributedString *attrStr = [[NSMutableAttributedString alloc] initWithString:messgage attributes:@{NSParagraphStyleAttributeName:paragraphStyle,NSFontAttributeName:[UIFont systemFontOfSize:13.0f],NSForegroundColorAttributeName:HexRGB(0x7a7a7a)}];
|
|
self.descMessageLabel.attributedText = attrStr;
|
|
self.descMessageLabel.attributedText = attrStr;
|
|
- NSString *imgName = [self getTypeImageWithSubType:model.subType];
|
|
|
|
- if (![NSString isEmptyString:imgName]) {
|
|
|
|
- [self.messageTypeView setImage:[UIImage imageNamed:imgName]];
|
|
|
|
|
|
+ if (![NSString isEmptyString:model.img]) {
|
|
|
|
+ [self.messageTypeView sd_setImageWithURL:[NSURL URLWithString:[model.img getUrlEndcodeString]] placeholderImage:[UIImage imageNamed:@"notifer_unknow"]];
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
- [self.messageTypeView setImage:[UIImage imageNamed:@"notifer_unknow"]];
|
|
|
|
|
|
+ NSString *imgName = [self getTypeImageWithSubType:model.subType];
|
|
|
|
+ if (![NSString isEmptyString:imgName]) {
|
|
|
|
+ [self.messageTypeView setImage:[UIImage imageNamed:imgName]];
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ [self.messageTypeView setImage:[UIImage imageNamed:@"notifer_unknow"]];
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|