From ca10cb456f346f4cdbfe0186da6bed0aadb87a16 Mon Sep 17 00:00:00 2001 From: chenshuanglin <1273934588@qq.com> Date: Fri, 17 Mar 2023 21:46:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=85=E5=80=BC=E9=80=89=E4=B8=AD=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Cell/Recharge/XPMineRechargeCollectionViewCell.m | 10 ++++++++-- .../Recharge/XPMineRechargePayCollectionViewCell.m | 10 ++++++++-- xplan-ios/Main/Mine/View/XPMineViewController.m | 2 +- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/xplan-ios/Main/Mine/View/Cell/Recharge/XPMineRechargeCollectionViewCell.m b/xplan-ios/Main/Mine/View/Cell/Recharge/XPMineRechargeCollectionViewCell.m index 8072cb0e..8d4037f3 100644 --- a/xplan-ios/Main/Mine/View/Cell/Recharge/XPMineRechargeCollectionViewCell.m +++ b/xplan-ios/Main/Mine/View/Cell/Recharge/XPMineRechargeCollectionViewCell.m @@ -76,7 +76,13 @@ - (void)setSelectedStyle:(BOOL)selectedStyle { _selectedStyle = selectedStyle; - self.selectedBgView.hidden = !selectedStyle; + if (selectedStyle) { + self.selectedBgView.hidden = NO; + self.bgView.backgroundColor = UIColor.clearColor; + }else{ + self.selectedBgView.hidden = YES; + self.bgView.backgroundColor = [ThemeColor colorWithHexString:@"#F8F8FA"]; + } } #pragma mark - Getters And Setters @@ -93,7 +99,7 @@ - (UIView *)selectedBgView { if (!_selectedBgView) { _selectedBgView = [[UIView alloc] init]; - _selectedBgView.backgroundColor = [[ThemeColor appMainColor] colorWithAlphaComponent:0.1]; + _selectedBgView.backgroundColor = [[ThemeColor appMainColor] colorWithAlphaComponent:0.15]; _selectedBgView.layer.cornerRadius = 5; _selectedBgView.layer.borderWidth = 1; _selectedBgView.layer.borderColor = [ThemeColor appMainColor].CGColor; diff --git a/xplan-ios/Main/Mine/View/Cell/Recharge/XPMineRechargePayCollectionViewCell.m b/xplan-ios/Main/Mine/View/Cell/Recharge/XPMineRechargePayCollectionViewCell.m index 8497b865..711ec7d5 100644 --- a/xplan-ios/Main/Mine/View/Cell/Recharge/XPMineRechargePayCollectionViewCell.m +++ b/xplan-ios/Main/Mine/View/Cell/Recharge/XPMineRechargePayCollectionViewCell.m @@ -67,7 +67,13 @@ - (void)setSelectedStyle:(BOOL)selectedStyle { _selectedStyle = selectedStyle; - self.selectedBgView.hidden = !selectedStyle; + if (selectedStyle) { + self.selectedBgView.hidden = NO; + self.bgView.backgroundColor = UIColor.clearColor; + }else{ + self.selectedBgView.hidden = YES; + self.bgView.backgroundColor = [ThemeColor colorWithHexString:@"#F8F8FA"]; + } } - (UIView *)bgView { @@ -82,7 +88,7 @@ - (UIView *)selectedBgView { if (!_selectedBgView) { _selectedBgView = [[UIView alloc] init]; - _selectedBgView.backgroundColor = [[ThemeColor appMainColor] colorWithAlphaComponent:0.1]; + _selectedBgView.backgroundColor = [[ThemeColor appMainColor] colorWithAlphaComponent:0.15]; _selectedBgView.layer.cornerRadius = 5; _selectedBgView.layer.borderWidth = 1; _selectedBgView.layer.borderColor = [ThemeColor appMainColor].CGColor; diff --git a/xplan-ios/Main/Mine/View/XPMineViewController.m b/xplan-ios/Main/Mine/View/XPMineViewController.m index 757e1676..3dfde232 100644 --- a/xplan-ios/Main/Mine/View/XPMineViewController.m +++ b/xplan-ios/Main/Mine/View/XPMineViewController.m @@ -153,7 +153,7 @@ [self.settingButton mas_makeConstraints:^(MASConstraintMaker *make) { make.size.mas_equalTo(CGSizeMake(24, 24)); make.right.mas_equalTo(self.view).offset(-15); - make.top.mas_equalTo(self.view).offset(kStatusBarHeight + 15); + make.top.mas_equalTo(self.view).offset(kStatusBarHeight + 12); }]; [self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {