From 41aae87dd615c61f3b42843f18a0611837aab70d Mon Sep 17 00:00:00 2001 From: AI Health Developer Date: Mon, 28 Apr 2025 14:52:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20UI=20=E9=9C=80=E6=B1=82?= =?UTF-8?q?=E5=92=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../View/BaseUIContainerView/XPRoomFunctionContainerView.m | 2 +- .../View/BaseUIContainerView/XPRoomRankEntranceView.m | 6 +----- YuMi/Modules/YMRoom/View/Common/BravoGiftBannerView.m | 2 ++ .../YMRoom/View/MessageContainerView/View/RoomCahtCell.m | 7 +------ .../YMRoom/View/Setting/View/XPRoomOnLineViewController.m | 1 - 5 files changed, 5 insertions(+), 13 deletions(-) diff --git a/YuMi/Modules/YMRoom/View/BaseUIContainerView/XPRoomFunctionContainerView.m b/YuMi/Modules/YMRoom/View/BaseUIContainerView/XPRoomFunctionContainerView.m index 284e5b5c..927554b6 100644 --- a/YuMi/Modules/YMRoom/View/BaseUIContainerView/XPRoomFunctionContainerView.m +++ b/YuMi/Modules/YMRoom/View/BaseUIContainerView/XPRoomFunctionContainerView.m @@ -482,7 +482,7 @@ self.isFirstUpdate = YES; } - (void)onlineTapRecognizer { - XPRoomOnLineViewController * onlineVC = [[XPRoomOnLineViewController alloc] initWithDelegate:self.delegate]; + XPRoomOnLineViewController *onlineVC = [[XPRoomOnLineViewController alloc] initWithDelegate:self.delegate]; [self.delegate.getCurrentNav pushViewController:onlineVC animated:YES]; } - (void)onRoomUpdate { diff --git a/YuMi/Modules/YMRoom/View/BaseUIContainerView/XPRoomRankEntranceView.m b/YuMi/Modules/YMRoom/View/BaseUIContainerView/XPRoomRankEntranceView.m index 7407d7ed..7e13b029 100644 --- a/YuMi/Modules/YMRoom/View/BaseUIContainerView/XPRoomRankEntranceView.m +++ b/YuMi/Modules/YMRoom/View/BaseUIContainerView/XPRoomRankEntranceView.m @@ -118,11 +118,7 @@ BOOL isNumeric(NSString *string) { return; } - if (isNumeric(title)) { - _titleLabel.text = [self formatCoinsWithDouble:[title doubleValue]]; - } else { - _titleLabel.text = title; - } + _titleLabel.text = title; } - (UIView *)bgView { diff --git a/YuMi/Modules/YMRoom/View/Common/BravoGiftBannerView.m b/YuMi/Modules/YMRoom/View/Common/BravoGiftBannerView.m index 93f0a45b..292be6b0 100644 --- a/YuMi/Modules/YMRoom/View/Common/BravoGiftBannerView.m +++ b/YuMi/Modules/YMRoom/View/Common/BravoGiftBannerView.m @@ -48,6 +48,7 @@ exitCurrentRoom:(void(^)(void))exit { CGRect frame = CGRectMake(KScreenWidth, 0, KScreenWidth, kGetScaleWidth(90)); BravoGiftBannerView *banner = [[BravoGiftBannerView alloc] initWithFrame:frame]; banner.model = model; + banner.currentRoomUid = roomUid; banner.completeDisplay = complete; banner.exitCurrentRoom = exit; [banner addNotification]; @@ -79,6 +80,7 @@ exitCurrentRoom:(void(^)(void))exit { } - (void)setModel:(BravoGiftBannerViewModel *)model { + _model = model; self.sendAvatarImageView.imageUrl = model.sender.avatar; self.giftImageView.imageUrl = model.giftPic; self.goldNumLabel.text = [NSString stringByRemovingRedundantZeros:@(model.coins).stringValue]; diff --git a/YuMi/Modules/YMRoom/View/MessageContainerView/View/RoomCahtCell.m b/YuMi/Modules/YMRoom/View/MessageContainerView/View/RoomCahtCell.m index 1ad51e50..dca96ddb 100644 --- a/YuMi/Modules/YMRoom/View/MessageContainerView/View/RoomCahtCell.m +++ b/YuMi/Modules/YMRoom/View/MessageContainerView/View/RoomCahtCell.m @@ -66,12 +66,7 @@ static NSString *MessageCellID = @"MessageCell"; }]; self.bubbleImageView.hidden = messageInfo.isHiddenBubble; } - - NSMutableAttributedString *s = [[NSMutableAttributedString alloc] initWithAttributedString:messageInfo.content]; -// if (isMSRTL()) { -// s.yy_writingDirection = @[@(kCTWritingDirectionRightToLeft)]; -// } - + self.contentLabel.attributedText = messageInfo.content; // 更新 contentLabel 高度 diff --git a/YuMi/Modules/YMRoom/View/Setting/View/XPRoomOnLineViewController.m b/YuMi/Modules/YMRoom/View/Setting/View/XPRoomOnLineViewController.m index cbc6a559..eaa3ef5c 100644 --- a/YuMi/Modules/YMRoom/View/Setting/View/XPRoomOnLineViewController.m +++ b/YuMi/Modules/YMRoom/View/Setting/View/XPRoomOnLineViewController.m @@ -256,7 +256,6 @@ [self clickChatAction]; }]; } - } #pragma mark- XPUserCardViewControllerDelegate -(void)clickChatAction{