贵族中心开通贵族按钮调整

This commit is contained in:
chenguilong
2022-01-19 10:47:57 +08:00
committed by fengshuo
parent ad45d34c45
commit 27a6e1731b
6 changed files with 28 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 617 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 815 B

View File

@@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "noble_open_btn_bg@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "noble_open_btn_bg@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -200,6 +200,9 @@
///
- (void)onGetNobleRechargeDataSuccess:(NobleRechargeModel *)rechargeInfo {
self.rechargeModel = rechargeInfo;
RechargeListModel *rechargeModel = [self.rechargeModel.list lookin_safeObjectAtIndex:0];
NSString *title = [NSString stringWithFormat:@"%@立刻成为大鹅贵族", rechargeModel.money];
[self.openNobleButton setTitle:title forState:UIControlStateNormal];
}
///id
@@ -411,6 +414,9 @@
if (!_openNobleButton) {
_openNobleButton = [[UIButton alloc] init];
[_openNobleButton setImage:[UIImage imageNamed:@"noble_open_btn"] forState:UIControlStateNormal];
[_openNobleButton setBackgroundImage:[UIImage imageNamed:@"noble_open_btn_bg"] forState:UIControlStateNormal];
_openNobleButton.titleLabel.font = [UIFont systemFontOfSize:16 weight:UIFontWeightMedium];
[_openNobleButton setTitleColor:[ThemeColor mainTextColor] forState:UIControlStateNormal];
[_openNobleButton addTarget:self action:@selector(onOpenNobleButtonClick:) forControlEvents:UIControlEventTouchUpInside];
_openNobleButton.hidden = YES;
}