|
@@ -50,14 +50,18 @@
|
|
|
}
|
|
|
|
|
|
if (model.coursePrice > 0) {
|
|
|
- self.priceLabel.text = [NSString stringWithFormat:@"¥%.2f",model.coursePrice];
|
|
|
+ NSString *mountMsg = [NSString formatDoubleNum:model.coursePrice];
|
|
|
+ NSString *descMsg = [NSString stringWithFormat:@"¥%@",mountMsg];
|
|
|
|
|
|
+ NSMutableAttributedString *attr = [[NSMutableAttributedString alloc] initWithString:descMsg attributes:@{NSFontAttributeName:[UIFont fontWithName:@"DIN Alternate Bold" size:14.0f],NSForegroundColorAttributeName:HexRGB(0xF44541)}];
|
|
|
+ [attr addAttributes:@{NSFontAttributeName:[UIFont fontWithName:@"DIN Alternate Bold" size:18.0f]} range:[descMsg rangeOfString:mountMsg]];
|
|
|
+ self.priceLabel.attributedText = attr;
|
|
|
}
|
|
|
else {
|
|
|
self.priceLabel.text = [NSString stringWithFormat:@"免费"];
|
|
|
}
|
|
|
|
|
|
- self.courseCount.text = [NSString stringWithFormat:@"/ %.0f课时",model.courseNum];
|
|
|
+ self.courseCount.text = [NSString stringWithFormat:@"/%.0f课时",model.courseNum];
|
|
|
// time
|
|
|
NSDateFormatter *formatter = [NSObject getDateformatter];
|
|
|
[formatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
|