更新 MedalsViewController.m,移除调试代码以优化勋章展示逻辑;在 XPMineUserInfoHeaderView.m 中新增 medalsStackView 和 userMedals 属性以支持用户勋章的显示;在 UserInfoModel.m 中更新 medalsPic 属性以增强模型的兼容性,保持代码结构一致性。
This commit is contained in:
@@ -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 播放
|
||||
|
@@ -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
|
||||
|
@@ -26,7 +26,8 @@
|
||||
@"audioCard":XPSoundCardModel.class,
|
||||
@"userNameplateList":NameplateModel.class,
|
||||
@"usingPersonalBackground":UsingPersonalBackground.class,
|
||||
@"infoCardVo" : InfoCardVO.class
|
||||
@"infoCardVo" : InfoCardVO.class,
|
||||
@"medalsPic": BaseModelVo.class
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user