This commit is contained in:
启星
2025-12-22 10:16:05 +08:00
parent ba4fd658a9
commit 0fcff85625
205 changed files with 26298 additions and 13203 deletions

View File

@@ -128,7 +128,12 @@
}else{
self.cpImageView.hidden = YES;
}
if ([roomGiftModel.icon isExist]) {
self.cpImageView.hidden = NO;
[self.cpImageView sd_setImageWithURL:[NSURL URLWithString:roomGiftModel.icon]];
}else{
self.cpImageView.hidden = YES;
}
if ([roomGiftModel.activities_id isEqualToString:@"5"]) {
self.activityImageView.hidden = NO;
if (roomGiftModel.gift_bag.intValue == 10) {

View File

@@ -106,11 +106,16 @@
}
-(void)setModel:(QXGiftScrollModel *)model{
_model = model;
NSString *str = [NSString stringWithFormat:@"%@送给%@",model.fromUserName,model.toUserName];
NSMutableAttributedString *attr = [[NSMutableAttributedString alloc] initWithString:str];
[attr yy_setColor:RGB16(0xFFDE77) range:[str rangeOfString:model.fromUserName]];
[attr yy_setColor:RGB16(0xFFDE77) range:[str rangeOfString:model.toUserName]];
self.titleLabel.attributedText = attr;
if ([model.toUserName isExist]) {
NSString *str = [NSString stringWithFormat:@"%@送给%@",model.fromUserName,model.toUserName];
NSMutableAttributedString *attr = [[NSMutableAttributedString alloc] initWithString:str];
[attr yy_setColor:RGB16(0xFFDE77) range:[str rangeOfString:model.fromUserName]];
[attr yy_setColor:RGB16(0xFFDE77) range:[str rangeOfString:model.toUserName]];
self.titleLabel.attributedText = attr;
}else{
self.titleLabel.text = model.text;
}
[self.giftImageView sd_setImageWithURL:[NSURL URLWithString:model.gift_picture]];
self.countLabel.text = [NSString stringWithFormat:@"X%@",model.number];

View File

@@ -79,8 +79,11 @@
MJWeakSelf
[QXRedPacketDriftView shareView].isPlaying = YES;
[QXRedPacketDriftView shareView].model = [QXRedPacketDriftView shareView].dataArray.firstObject;
[self.player seekToTime:CMTimeMake(0, 1)];
[self.player play];
BOOL isCloseRedBagSound = [[NSUserDefaults standardUserDefaults] boolForKey:kIsCloseRedBagSound];
if (!isCloseRedBagSound) {
[self.player seekToTime:CMTimeMake(0, 1)];
[self.player play];
}
[KEYWINDOW addSubview:[QXRedPacketDriftView shareView]];
[UIView animateWithDuration:1.5 delay:0 options:UIViewAnimationOptionCurveEaseOut animations:^{
[QXRedPacketDriftView shareView].x = (SCREEN_WIDTH-ScaleWidth(334))/2;