|
10 | 10 | #import "ShopOrder.h" |
11 | 11 | #import "NSDate+Common.h" |
12 | 12 |
|
13 | | -#define FONT(F) [UIFont fontWithName:@"PingFangSC-Regular" size:F] |
| 13 | +#define FONT(F) [UIFont systemFontOfSize:F] |
14 | 14 |
|
15 | 15 | @interface ShopOderCell() |
16 | 16 | { |
@@ -61,7 +61,7 @@ - (void)setUpContentView |
61 | 61 | UILabel *orderLabel = [[UILabel alloc] initWithFrame:CGRectZero]; |
62 | 62 | orderLabel.font = FONT(14); |
63 | 63 | orderLabel.backgroundColor = [UIColor clearColor]; |
64 | | - orderLabel.text = @"订单编号"; |
| 64 | + orderLabel.text = @" 订单编号 "; |
65 | 65 | orderLabel.textAlignment = NSTextAlignmentCenter; |
66 | 66 | orderLabel.layer.masksToBounds = YES; |
67 | 67 | orderLabel.layer.cornerRadius = 4; |
@@ -106,6 +106,8 @@ - (void)setUpContentView |
106 | 106 |
|
107 | 107 | _titleLabel = [[UILabel alloc] initWithFrame:CGRectZero]; |
108 | 108 | _titleLabel.font = FONT(15); |
| 109 | + _titleLabel.adjustsFontSizeToFitWidth = YES; |
| 110 | + _titleLabel.minimumScaleFactor = 0.5; |
109 | 111 | _titleLabel.backgroundColor = [UIColor clearColor]; |
110 | 112 | _titleLabel.textColor = [UIColor colorWithHexString:@"0x222222"]; |
111 | 113 | [_goodsInfoView addSubview:_titleLabel]; |
@@ -360,7 +362,7 @@ - (void)configViewWithModel:(ShopOrder *)order |
360 | 362 | { |
361 | 363 | _titleLabel.text = order.giftName; |
362 | 364 | [_coverView sd_setImageWithURL:[order.giftImage urlWithCodePath]]; |
363 | | - NSString *points_cost = [NSString stringWithFormat:@" %@ 马币",[order.pointsCost stringValue]]; |
| 365 | + NSString *points_cost = [NSString stringWithFormat:@" %@ 码币",[order.pointsCost stringValue]]; |
364 | 366 | [_codingCoinView setTitle:points_cost forState:UIControlStateNormal]; |
365 | 367 |
|
366 | 368 | _orderNumLabel.text = order.orderNo; |
|
0 commit comments