更新 MedalsViewController.m,移除调试代码以优化勋章展示逻辑;在 XPMineUserInfoHeaderView.m 中新增 medalsStackView 和 userMedals 属性以支持用户勋章的显示;在 UserInfoModel.m 中更新 medalsPic 属性以增强模型的兼容性,保持代码结构一致性。

This commit is contained in:
edwinQQQ
2025-06-24 15:42:56 +08:00
parent 059305d3df
commit 7810057542
3 changed files with 5 additions and 5 deletions

View File

@@ -710,10 +710,6 @@ typedef enum : NSInteger {
self.otherCountLabel.text = @(userModel.medalNum).stringValue;
MedalVo *useMedal = [[userModel useMedals] xpSafeObjectAtIndex:0];
#if DEBUG
useMedal = [[MedalVo alloc] init];
useMedal.picUrl = @"https://image.pekolive.com/V1.mp4";
#endif
if (useMedal) {
if ([useMedal.picUrl hasSuffix:@"mp4"]) {
// MP4

View File

@@ -172,6 +172,9 @@ HWDMP4PlayDelegate>
@property (nonatomic, strong) VAPView *personalBGMP4;
@property (nonatomic, strong) SVGAImageView *personalBGSvga;
@property (nonatomic, strong) UIStackView *medalsStackView;
@property (nonatomic, copy) NSArray <BaseModelVo *> *userMedals;
@end
@implementation XPMineUserInfoHeaderView

View File

@@ -26,7 +26,8 @@
@"audioCard":XPSoundCardModel.class,
@"userNameplateList":NameplateModel.class,
@"usingPersonalBackground":UsingPersonalBackground.class,
@"infoCardVo" : InfoCardVO.class
@"infoCardVo" : InfoCardVO.class,
@"medalsPic": BaseModelVo.class
};
}