修复bug

This commit is contained in:
liyuhua
2024-06-07 15:20:45 +08:00
committed by eggmanQQQ
parent 640382eaea
commit e6367f8e23
10 changed files with 24 additions and 15 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 696 B

View File

@@ -5,12 +5,12 @@
"scale" : "1x"
},
{
"filename" : "ms_room_game_underwa_coin_bg@2x.png",
"filename" : "ms_room_game_victory_border_first@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ms_room_game_underwa_coin_bg@3x.png",
"filename" : "ms_room_game_victory_border_first@3x.png",
"idiom" : "universal",
"scale" : "3x"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@@ -42,18 +42,20 @@
[self.bgImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.mas_equalTo(0);
}];
[self.coinLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(16);
make.leading.mas_equalTo(14);
make.leading.mas_equalTo(16);
make.trailing.mas_equalTo(0);
make.height.mas_equalTo(14);
make.height.mas_equalTo(18);
}];
[self.descLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.leading.mas_equalTo(self.coinLabel);
make.top.mas_equalTo(36);
make.height.mas_equalTo(8);
make.top.equalTo(self.coinLabel.mas_bottom).mas_offset(4);
}];
[self.arrowView mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.mas_equalTo(5);
make.height.mas_equalTo(7);
@@ -78,8 +80,8 @@
- (UILabel *)descLabel {
if (!_descLabel) {
_descLabel = [[UILabel alloc] init];
_descLabel.font = [UIFont systemFontOfSize:8 weight:UIFontWeightMedium];
_descLabel.textColor = UIColorFromRGB(0xA4B8C1);
_descLabel.font = [UIFont systemFontOfSize:9 weight:UIFontWeightRegular];
_descLabel.textColor = UIColorFromRGB(0x628ebb);
_descLabel.text = YMLocalizedString(@"XPMineAccountView1");
}
return _descLabel;
@@ -90,8 +92,8 @@
if (!_coinLabel) {
_coinLabel = [[UILabel alloc] init];
_coinLabel.text = YMLocalizedString(@"XPIncomeRecordVC1");
_coinLabel.font = [UIFont systemFontOfSize:14 weight:UIFontWeightMedium];
_coinLabel.textColor = UIColorFromRGB(0x121552);
_coinLabel.font = [UIFont systemFontOfSize:15 weight:UIFontWeightMedium];
_coinLabel.textColor = UIColorFromRGB(0x185491);
}
return _coinLabel;
}

View File

@@ -157,7 +157,9 @@
}
if (isCreator && roomInfo.type != RoomType_MiniGame) {
[array addObject:acrossRoomPK];
if(roomInfo.type != RoomType_Anchor){
[array addObject:acrossRoomPK];
}
}
if (isCreator && roomInfo.type == RoomType_Anchor) {

View File

@@ -91,6 +91,7 @@
_bgImageView.image = _resultsModel.rank == 1 ? kImage(@"ms_room_game_victory_bg_first"):kImage(@"ms_room_game_victory_bg_second");
_bgCoinView.image = _resultsModel.rank == 1 ? kImage(@"ms_room_game_victory_coin_bg_first"):kImage(@"ms_room_game_victory_coin_bg_second");
_coinNumView.text = _resultsModel.rank == 1 ? [NSString stringWithFormat:@"+%@",_resultsModel.winNum.stringValue]:_resultsModel.winNum.stringValue;
_borderImageView.image = _resultsModel.rank == 1 ? kImage(@"ms_room_game_victory_border_first") : kImage(@"ms_room_game_victory_border_second");
}
#pragma mark -
- (UIImageView *)bgImageView{

View File

@@ -216,7 +216,11 @@
- (UIImageView *)bgCoinView{
if(!_bgCoinView){
_bgCoinView = [UIImageView new];
_bgCoinView.image = kImage(@"ms_room_game_underwa_coin_bg");
_bgCoinView.backgroundColor = UIColorRGBAlpha(0x006263, 0.4);
_bgCoinView.layer.cornerRadius = kGetScaleWidth(25)/2;
_bgCoinView.layer.masksToBounds = YES;
_bgCoinView.layer.borderWidth = 1;
_bgCoinView.layer.borderColor = UIColorRGBAlpha(0x36c0c8 , 0.4).CGColor;
}
return _bgCoinView;
}

View File

@@ -74,9 +74,9 @@
make.centerY.equalTo(self.avatarView);
}];
[self.rankTextView mas_makeConstraints:^(MASConstraintMaker *make) {
make.bottom.mas_equalTo(-kGetScaleWidth(2));
make.bottom.mas_equalTo(-kGetScaleWidth(0));
make.leading.trailing.equalTo(self.rankIconView).inset(kGetScaleWidth(0));
make.height.mas_equalTo(kGetScaleWidth(7));
// make.height.mas_equalTo(kGetScaleWidth(7));
}];
}
-(void)clickPayBtnction{