Commit 62ee5acf by ludi

修复两个bug

parent 8c39d5f4
......@@ -673,7 +673,7 @@
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
CODE_SIGN_ENTITLEMENTS = FuSiLive/FuSiLive.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 202506260034;
CURRENT_PROJECT_VERSION = 202506260035;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 6GG26BHUMC;
ENABLE_ON_DEMAND_RESOURCES = NO;
......@@ -938,7 +938,7 @@
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
CODE_SIGN_ENTITLEMENTS = FuSiLive/FuSiLive.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 202506260034;
CURRENT_PROJECT_VERSION = 202506260035;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 6GG26BHUMC;
ENABLE_ON_DEMAND_RESOURCES = NO;
......
......@@ -2450,7 +2450,7 @@ BDAlphaPlayerMetalViewDelegate
self.treasureBoxListIcon.hidden = YES;
[[self fus_viewWithLayer:FUSLiveFunctionLayerFloatButtons] addSubview:self.treasureBoxListIcon];
// [self fus_updateTreasureBoxListIconType:1];
[self fus_updateTreasureBoxListIconType:1];
__weak typeof(self) weakSelf = self;
self.treasureBoxListIcon.clickLiveTreasureBoxListIconViewHandler = ^(FUSTreasureBoxInfoModel *treasureBoxModel, BOOL isAutoShow) {
......@@ -2555,6 +2555,7 @@ BDAlphaPlayerMetalViewDelegate
[self.treasureBoxListIcon fus_updateTreasureBoxList:^(BOOL succeed) {
weakSelf.treasureBoxListIcon.hidden = weakSelf.treasureBoxListIcon.currentModel == nil;
[weakSelf fus_reloadUIWithKeyboardSetPart];
}];
}
......
......@@ -136,6 +136,7 @@
make.left.equalTo(self.titleLabel.mas_left);
make.top.equalTo(self.releaseConditionLabel.mas_bottom).offset(8);
make.size.mas_offset(CGSizeMake(54, 54));
make.bottom.offset(-10);
}];
self.releaseGiftImageView = [[UIImageView alloc] init];
......@@ -158,45 +159,47 @@
make.left.right.offset(0);
}];
//进度条不限制长度,让去解救的按钮宽度来决定它的长度
self.releaseProgressView = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleDefault];
self.releaseProgressView.trackTintColor = [[UIColor blackColor] colorWithAlphaComponent:0.2];
self.releaseProgressView.progressTintColor = [UIColor fus_themeColor];
self.releaseProgressView.frame = CGRectMake(0, 0, UIView.fus_screenW - 15*2 - 14 - 68, 4);
[bgView addSubview:self.releaseProgressView];
[self.releaseProgressView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(self.titleLabel.mas_left);
make.top.equalTo(releaseBgView.mas_bottom).offset(14);
make.height.offset(4);
make.bottom.offset(-17);
}];
self.releaseGiftCompletedNumLabel = [[UILabel alloc] init];
self.releaseGiftCompletedNumLabel.font = [UIFont fus_themeFont:12];
[bgView addSubview:self.releaseGiftCompletedNumLabel];
[self.releaseGiftCompletedNumLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.equalTo(self.releaseProgressView.mas_right);
make.bottom.equalTo(self.releaseProgressView.mas_top).offset(-5);
}];
self.gotoReleaseBtn = [UIButton buttonWithType:UIButtonTypeCustom];
self.gotoReleaseBtn.layer.cornerRadius = 24/2.0;
self.gotoReleaseBtn.layer.masksToBounds = YES;
self.gotoReleaseBtn.backgroundColor = [UIColor fus_themeColor];
[self.gotoReleaseBtn setTitle:[NSString fus_versionLocalString:@"去解救"] forState:UIControlStateNormal];
[self.gotoReleaseBtn setTitleColor:[UIColor colorWithHex:@"#22222B"] forState:UIControlStateNormal];
self.gotoReleaseBtn.titleLabel.font = [UIFont fus_themeFont:11];
[self.gotoReleaseBtn.titleLabel sizeToFit];
[bgView addSubview:self.gotoReleaseBtn];
[self.gotoReleaseBtn mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.offset(-11);
make.left.equalTo(self.releaseProgressView.mas_right).offset(10);
make.width.offset(self.gotoReleaseBtn.titleLabel.width + 14);
make.height.offset(24);
make.bottom.equalTo(self.releaseProgressView.mas_bottom);
}];
[self.gotoReleaseBtn addTarget:self action:@selector(gotoReleaseBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside];
// 新版本不需要
// //进度条不限制长度,让去解救的按钮宽度来决定它的长度
// self.releaseProgressView = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleDefault];
// self.releaseProgressView.trackTintColor = [[UIColor blackColor] colorWithAlphaComponent:0.2];
// self.releaseProgressView.progressTintColor = [UIColor fus_themeColor];
// self.releaseProgressView.frame = CGRectMake(0, 0, UIView.fus_screenW - 15*2 - 14 - 68, 4);
// [bgView addSubview:self.releaseProgressView];
// [self.releaseProgressView mas_makeConstraints:^(MASConstraintMaker *make) {
// make.left.equalTo(self.titleLabel.mas_left);
// make.top.equalTo(releaseBgView.mas_bottom).offset(14);
// make.height.offset(4);
// make.bottom.offset(-17);
// }];
//
// self.releaseGiftCompletedNumLabel = [[UILabel alloc] init];
// self.releaseGiftCompletedNumLabel.font = [UIFont fus_themeFont:12];
// [bgView addSubview:self.releaseGiftCompletedNumLabel];
// [self.releaseGiftCompletedNumLabel mas_makeConstraints:^(MASConstraintMaker *make) {
// make.right.equalTo(self.releaseProgressView.mas_right);
// make.bottom.equalTo(self.releaseProgressView.mas_top).offset(-5);
// }];
//
// self.gotoReleaseBtn = [UIButton buttonWithType:UIButtonTypeCustom];
// self.gotoReleaseBtn.layer.cornerRadius = 24/2.0;
// self.gotoReleaseBtn.layer.masksToBounds = YES;
// self.gotoReleaseBtn.backgroundColor = [UIColor fus_themeColor];
// [self.gotoReleaseBtn setTitle:[NSString fus_versionLocalString:@"去解救"] forState:UIControlStateNormal];
// [self.gotoReleaseBtn setTitleColor:[UIColor colorWithHex:@"#22222B"] forState:UIControlStateNormal];
// self.gotoReleaseBtn.titleLabel.font = [UIFont fus_themeFont:11];
// [self.gotoReleaseBtn.titleLabel sizeToFit];
// [bgView addSubview:self.gotoReleaseBtn];
// [self.gotoReleaseBtn mas_makeConstraints:^(MASConstraintMaker *make) {
// make.right.offset(-11);
// make.left.equalTo(self.releaseProgressView.mas_right).offset(10);
// make.width.offset(self.gotoReleaseBtn.titleLabel.width + 14);
// make.height.offset(24);
// make.bottom.equalTo(self.releaseProgressView.mas_bottom);
// }];
//
// [self.gotoReleaseBtn addTarget:self action:@selector(gotoReleaseBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside];
}
......@@ -263,9 +266,6 @@
[self fus_updateProgressLabelWithModel:model];
// 不用去解救
self.gotoReleaseBtn.hidden = YES;
}
/// 更新进度描述
-(void)fus_updateProgressLabelWithModel:(FUSLiveRoomPunishListModel *)model{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment