From 73d6ec933a50eb46fe461003021e84b254fb26f3 Mon Sep 17 00:00:00 2001 From: CodeST <694468528@qq.com> Date: Tue, 23 Dec 2025 15:33:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=87=91=E5=B8=81=E8=B6=85?= =?UTF-8?q?=E5=87=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- keyBoard/Class/Me/VC/KBConsumptionRecordVC.m | 4 ++++ keyBoard/Class/Shop/V/KBShopHeadView.m | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/keyBoard/Class/Me/VC/KBConsumptionRecordVC.m b/keyBoard/Class/Me/VC/KBConsumptionRecordVC.m index 3267360..8181efa 100644 --- a/keyBoard/Class/Me/VC/KBConsumptionRecordVC.m +++ b/keyBoard/Class/Me/VC/KBConsumptionRecordVC.m @@ -226,6 +226,7 @@ [self.pointsLabel mas_makeConstraints:^(MASConstraintMaker *make) { make.left.equalTo(self.pointsIconView.mas_right).offset(8); make.centerY.equalTo(self.pointsIconView).offset(0); + make.right.lessThanOrEqualTo(self.rechargeButton.mas_left).offset(-12); }]; [self.rechargeButton mas_makeConstraints:^(MASConstraintMaker *make) { @@ -275,6 +276,9 @@ _pointsLabel.text = @"0"; _pointsLabel.font = [KBFont bold:40]; _pointsLabel.textColor = [UIColor colorWithHex:0x02BEAC]; + _pointsLabel.adjustsFontSizeToFitWidth = YES; + _pointsLabel.minimumScaleFactor = 0.6; + _pointsLabel.numberOfLines = 1; } return _pointsLabel; } diff --git a/keyBoard/Class/Shop/V/KBShopHeadView.m b/keyBoard/Class/Shop/V/KBShopHeadView.m index dc71ab6..b6eb22d 100644 --- a/keyBoard/Class/Shop/V/KBShopHeadView.m +++ b/keyBoard/Class/Shop/V/KBShopHeadView.m @@ -139,6 +139,7 @@ [self.amountLabel mas_makeConstraints:^(MASConstraintMaker *make) { make.left.equalTo(self.smallCoinView.mas_right).offset(10); make.centerY.equalTo(self.rechargeButton); + make.right.lessThanOrEqualTo(self.rechargeButton.mas_left).offset(-12); }]; [self.rechargeButton mas_makeConstraints:^(MASConstraintMaker *make) { @@ -303,7 +304,8 @@ _amountLabel.textColor = [UIColor colorWithHex:KBColorValue]; _amountLabel.font = [KBFont bold:40]; _amountLabel.adjustsFontSizeToFitWidth = YES; -// _amountLabel.minimumScaleFactor = 0.7; + _amountLabel.minimumScaleFactor = 0.6; + _amountLabel.numberOfLines = 1; } return _amountLabel; }