Skip to content

Commit 631ddb1

Browse files
committed
商城 - UI 调整
1 parent 32281bc commit 631ddb1

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Coding_iOS/Views/Cell/ShopOderCell.m

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#import "ShopOrder.h"
1111
#import "NSDate+Common.h"
1212

13-
#define FONT(F) [UIFont fontWithName:@"PingFangSC-Regular" size:F]
13+
#define FONT(F) [UIFont systemFontOfSize:F]
1414

1515
@interface ShopOderCell()
1616
{
@@ -61,7 +61,7 @@ - (void)setUpContentView
6161
UILabel *orderLabel = [[UILabel alloc] initWithFrame:CGRectZero];
6262
orderLabel.font = FONT(14);
6363
orderLabel.backgroundColor = [UIColor clearColor];
64-
orderLabel.text = @"订单编号";
64+
orderLabel.text = @" 订单编号 ";
6565
orderLabel.textAlignment = NSTextAlignmentCenter;
6666
orderLabel.layer.masksToBounds = YES;
6767
orderLabel.layer.cornerRadius = 4;
@@ -106,6 +106,8 @@ - (void)setUpContentView
106106

107107
_titleLabel = [[UILabel alloc] initWithFrame:CGRectZero];
108108
_titleLabel.font = FONT(15);
109+
_titleLabel.adjustsFontSizeToFitWidth = YES;
110+
_titleLabel.minimumScaleFactor = 0.5;
109111
_titleLabel.backgroundColor = [UIColor clearColor];
110112
_titleLabel.textColor = [UIColor colorWithHexString:@"0x222222"];
111113
[_goodsInfoView addSubview:_titleLabel];
@@ -360,7 +362,7 @@ - (void)configViewWithModel:(ShopOrder *)order
360362
{
361363
_titleLabel.text = order.giftName;
362364
[_coverView sd_setImageWithURL:[order.giftImage urlWithCodePath]];
363-
NSString *points_cost = [NSString stringWithFormat:@" %@ 马币",[order.pointsCost stringValue]];
365+
NSString *points_cost = [NSString stringWithFormat:@" %@ 码币",[order.pointsCost stringValue]];
364366
[_codingCoinView setTitle:points_cost forState:UIControlStateNormal];
365367

366368
_orderNumLabel.text = order.orderNo;

Coding_iOS/Views/ShopGoodsInfoView.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ - (void)setUpContentView
5353
[superView addSubview:_titleLabel];
5454

5555
_descLabel = [[UILabel alloc] initWithFrame:CGRectZero];
56-
_descLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:12];
56+
_descLabel.font = [UIFont systemFontOfSize:12];
5757
_descLabel.numberOfLines = 0 ;
5858
_descLabel.backgroundColor = [UIColor clearColor];
5959
_descLabel.textColor = [UIColor colorWithHexString:@"0x999999"];
@@ -136,7 +136,7 @@ - (void)setUpContentView
136136
- (void)configViewWithModel:(ShopGoods *)model
137137
{
138138
_titleLabel.text = model.name;
139-
NSString *points_cost = [NSString stringWithFormat:@" %@ 马币",[model.points_cost stringValue]];
139+
NSString *points_cost = [NSString stringWithFormat:@" %@ 码币",[model.points_cost stringValue]];
140140
[_codingCoinView setTitle:points_cost forState:UIControlStateNormal];
141141

142142
[_coverView sd_setImageWithURL:[model.image urlWithCodePath] placeholderImage:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {

0 commit comments

Comments
 (0)