Commit 61c3ccd4 by ludi

修复一些bug,增加新人好礼

parent 3a7cd110
Showing with 167 additions and 40 deletions
...@@ -31,6 +31,19 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -31,6 +31,19 @@ NS_ASSUME_NONNULL_BEGIN
@end @end
@interface FUSLiveSyncRightResultComerNewDataModel : FUSBaseModel
/// 新人好礼状态:-1已过期 0未拥有 1待领取 2已领取
@property (nonatomic, assign) NSInteger status;
/// 新人好礼 奖励任务pid
@property (nonatomic, copy) NSString *pid;
/// 新人好礼 奖励任务tid
@property (nonatomic, copy) NSString *tid;
/// 新人好礼 奖励任务sid
@property (nonatomic, copy) NSString *sid;
@end
@interface FUSLiveSyncRightResultRecallShowModel : FUSBaseModel @interface FUSLiveSyncRightResultRecallShowModel : FUSBaseModel
...@@ -42,6 +55,10 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -42,6 +55,10 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, assign) NSInteger recallSendSpeak; @property (nonatomic, assign) NSInteger recallSendSpeak;
/// 展示类型 -1:无 1:首充储值 2:用户回归 /// 展示类型 -1:无 1:首充储值 2:用户回归
@property (nonatomic, assign) NSInteger showChargeType; @property (nonatomic, assign) NSInteger showChargeType;
/// 在直播間觀看超過指定时长(秒) —有资格时弹出首充弹窗
@property (nonatomic, assign) NSInteger fcOnlineTime;
/// 新人好礼数据 status 新人好礼状态:-1已过期 0未拥有 1待领取 2已领取---pid 新人好礼 奖励任务pid---tid 新人好礼 奖励任务tid---sid 新人好礼 奖励任务sid
@property (nonatomic, copy) NSArray<FUSLiveSyncRightResultComerNewDataModel *> *comerNewData;
-(void)fus_updateShowTime; -(void)fus_updateShowTime;
......
...@@ -18,8 +18,17 @@ ...@@ -18,8 +18,17 @@
@end @end
@implementation FUSLiveSyncRightResultComerNewDataModel
@end
@implementation FUSLiveSyncRightResultRecallShowModel @implementation FUSLiveSyncRightResultRecallShowModel
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass {
return @{@"comerNewData": [FUSLiveSyncRightResultComerNewDataModel class]};
}
- (void)fus_updateShowTime{ - (void)fus_updateShowTime{
[[NSUserDefaults standardUserDefaults] setDouble:[[NSDate date] timeIntervalSince1970] forKey:FUSSwiftCacheDataStoreKey.liveSyncRightResultRecallShowTimeInterval]; [[NSUserDefaults standardUserDefaults] setDouble:[[NSDate date] timeIntervalSince1970] forKey:FUSSwiftCacheDataStoreKey.liveSyncRightResultRecallShowTimeInterval];
} }
......
...@@ -93,6 +93,9 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -93,6 +93,9 @@ NS_ASSUME_NONNULL_BEGIN
userInteractionEnabled:(BOOL)userInteractionEnabled userInteractionEnabled:(BOOL)userInteractionEnabled
dismissHandle:(void(^)(void))dismissHandle; dismissHandle:(void(^)(void))dismissHandle;
/// 显示发宝箱
-(void)fus_showLiveBoxSettingView;
- (void)fus_logSuccess; - (void)fus_logSuccess;
- (void)fus_logOut; - (void)fus_logOut;
......
...@@ -673,7 +673,7 @@ ...@@ -673,7 +673,7 @@
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
CODE_SIGN_ENTITLEMENTS = FuSiLive/FuSiLive.entitlements; CODE_SIGN_ENTITLEMENTS = FuSiLive/FuSiLive.entitlements;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 202506260031; CURRENT_PROJECT_VERSION = 202506260032;
DEFINES_MODULE = YES; DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 6GG26BHUMC; DEVELOPMENT_TEAM = 6GG26BHUMC;
ENABLE_ON_DEMAND_RESOURCES = NO; ENABLE_ON_DEMAND_RESOURCES = NO;
...@@ -938,7 +938,7 @@ ...@@ -938,7 +938,7 @@
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
CODE_SIGN_ENTITLEMENTS = FuSiLive/FuSiLive.entitlements; CODE_SIGN_ENTITLEMENTS = FuSiLive/FuSiLive.entitlements;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 202506260031; CURRENT_PROJECT_VERSION = 202506260032;
DEFINES_MODULE = YES; DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 6GG26BHUMC; DEVELOPMENT_TEAM = 6GG26BHUMC;
ENABLE_ON_DEMAND_RESOURCES = NO; ENABLE_ON_DEMAND_RESOURCES = NO;
......
...@@ -47,6 +47,9 @@ ...@@ -47,6 +47,9 @@
004772FC2F5AE86A00E46A79 /* PK_Cover_Animation_34.png in Resources */ = {isa = PBXBuildFile; fileRef = 004772D02F5AE86A00E46A79 /* PK_Cover_Animation_34.png */; }; 004772FC2F5AE86A00E46A79 /* PK_Cover_Animation_34.png in Resources */ = {isa = PBXBuildFile; fileRef = 004772D02F5AE86A00E46A79 /* PK_Cover_Animation_34.png */; };
004772FD2F5AE86A00E46A79 /* PK_Cover_Animation_1.png in Resources */ = {isa = PBXBuildFile; fileRef = 004772AF2F5AE86A00E46A79 /* PK_Cover_Animation_1.png */; }; 004772FD2F5AE86A00E46A79 /* PK_Cover_Animation_1.png in Resources */ = {isa = PBXBuildFile; fileRef = 004772AF2F5AE86A00E46A79 /* PK_Cover_Animation_1.png */; };
004772FE2F5AE86A00E46A79 /* PK_Cover_Animation_7.png in Resources */ = {isa = PBXBuildFile; fileRef = 004772B52F5AE86A00E46A79 /* PK_Cover_Animation_7.png */; }; 004772FE2F5AE86A00E46A79 /* PK_Cover_Animation_7.png in Resources */ = {isa = PBXBuildFile; fileRef = 004772B52F5AE86A00E46A79 /* PK_Cover_Animation_7.png */; };
004773222F5C0C2000E46A79 /* fus_home_navi_startLive_animate.webp in Resources */ = {isa = PBXBuildFile; fileRef = 004773212F5C0C2000E46A79 /* fus_home_navi_startLive_animate.webp */; };
004773242F5C262300E46A79 /* home_list_pk_show_type1_anim.webp in Resources */ = {isa = PBXBuildFile; fileRef = 004773232F5C262300E46A79 /* home_list_pk_show_type1_anim.webp */; };
004773262F5C281300E46A79 /* liveRoom_newComer_gift_animate.webp in Resources */ = {isa = PBXBuildFile; fileRef = 004773252F5C281300E46A79 /* liveRoom_newComer_gift_animate.webp */; };
0089F9552D1979A900714CE3 /* FUSRegalValueUpgradeView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0089FD702D13F3460030DAA7 /* FUSRegalValueUpgradeView.xib */; }; 0089F9552D1979A900714CE3 /* FUSRegalValueUpgradeView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0089FD702D13F3460030DAA7 /* FUSRegalValueUpgradeView.xib */; };
0089FD732D13F3460030DAA7 /* FUSLiveParcelGiftAndPropsCollectionViewCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 0089FD612D13F3460030DAA7 /* FUSLiveParcelGiftAndPropsCollectionViewCell.h */; }; 0089FD732D13F3460030DAA7 /* FUSLiveParcelGiftAndPropsCollectionViewCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 0089FD612D13F3460030DAA7 /* FUSLiveParcelGiftAndPropsCollectionViewCell.h */; };
0089FD742D13F3460030DAA7 /* FUSLiveParcelPropsView.h in Headers */ = {isa = PBXBuildFile; fileRef = 0089FD672D13F3460030DAA7 /* FUSLiveParcelPropsView.h */; }; 0089FD742D13F3460030DAA7 /* FUSLiveParcelPropsView.h in Headers */ = {isa = PBXBuildFile; fileRef = 0089FD672D13F3460030DAA7 /* FUSLiveParcelPropsView.h */; };
...@@ -2389,6 +2392,9 @@ ...@@ -2389,6 +2392,9 @@
004772D32F5AE86A00E46A79 /* PK_Cover_Animation_37.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = PK_Cover_Animation_37.png; sourceTree = "<group>"; }; 004772D32F5AE86A00E46A79 /* PK_Cover_Animation_37.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = PK_Cover_Animation_37.png; sourceTree = "<group>"; };
004772D42F5AE86A00E46A79 /* PK_Cover_Animation_38.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = PK_Cover_Animation_38.png; sourceTree = "<group>"; }; 004772D42F5AE86A00E46A79 /* PK_Cover_Animation_38.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = PK_Cover_Animation_38.png; sourceTree = "<group>"; };
004772D52F5AE86A00E46A79 /* PK_Cover_Animation_39.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = PK_Cover_Animation_39.png; sourceTree = "<group>"; }; 004772D52F5AE86A00E46A79 /* PK_Cover_Animation_39.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = PK_Cover_Animation_39.png; sourceTree = "<group>"; };
004773212F5C0C2000E46A79 /* fus_home_navi_startLive_animate.webp */ = {isa = PBXFileReference; lastKnownFileType = file; path = fus_home_navi_startLive_animate.webp; sourceTree = "<group>"; };
004773232F5C262300E46A79 /* home_list_pk_show_type1_anim.webp */ = {isa = PBXFileReference; lastKnownFileType = file; path = home_list_pk_show_type1_anim.webp; sourceTree = "<group>"; };
004773252F5C281300E46A79 /* liveRoom_newComer_gift_animate.webp */ = {isa = PBXFileReference; lastKnownFileType = file; path = liveRoom_newComer_gift_animate.webp; sourceTree = "<group>"; };
0089FD4A2D13F3460030DAA7 /* FUSGiftNumSelectView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FUSGiftNumSelectView.h; sourceTree = "<group>"; }; 0089FD4A2D13F3460030DAA7 /* FUSGiftNumSelectView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FUSGiftNumSelectView.h; sourceTree = "<group>"; };
0089FD4B2D13F3460030DAA7 /* FUSGiftNumSelectView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FUSGiftNumSelectView.m; sourceTree = "<group>"; }; 0089FD4B2D13F3460030DAA7 /* FUSGiftNumSelectView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FUSGiftNumSelectView.m; sourceTree = "<group>"; };
0089FD4C2D13F3460030DAA7 /* FUSGiftSegmentControl.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FUSGiftSegmentControl.swift; sourceTree = "<group>"; }; 0089FD4C2D13F3460030DAA7 /* FUSGiftSegmentControl.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FUSGiftSegmentControl.swift; sourceTree = "<group>"; };
...@@ -5283,6 +5289,7 @@ ...@@ -5283,6 +5289,7 @@
00CD24E22F5934EF00A07432 /* PKNew */ = { 00CD24E22F5934EF00A07432 /* PKNew */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
004773232F5C262300E46A79 /* home_list_pk_show_type1_anim.webp */,
00CD26992F5956D100A07432 /* pkMultiRoundResultStateAnimation */, 00CD26992F5956D100A07432 /* pkMultiRoundResultStateAnimation */,
00CD25C12F593D9C00A07432 /* userContributeBurstDewTypeTwoLeft */, 00CD25C12F593D9C00A07432 /* userContributeBurstDewTypeTwoLeft */,
00CD26082F593D9C00A07432 /* userContributeBurstDewTypeTwoRight */, 00CD26082F593D9C00A07432 /* userContributeBurstDewTypeTwoRight */,
...@@ -8457,6 +8464,7 @@ ...@@ -8457,6 +8464,7 @@
BEF675A72C6B156500A670FB /* Check */, BEF675A72C6B156500A670FB /* Check */,
BEF675AC2C6B156500A670FB /* FirstTop */, BEF675AC2C6B156500A670FB /* FirstTop */,
BEF675EB2C6B156500A670FB /* img_novaList_cell_new_animation.webp */, BEF675EB2C6B156500A670FB /* img_novaList_cell_new_animation.webp */,
004773212F5C0C2000E46A79 /* fus_home_navi_startLive_animate.webp */,
00E6CE192F56E36500B63797 /* live_pk_control_contribute_bottom_inpk_animate.webp */, 00E6CE192F56E36500B63797 /* live_pk_control_contribute_bottom_inpk_animate.webp */,
00E6CE262F56F89F00B63797 /* img_liveroom_input_linkmic_apply_animation.webp */, 00E6CE262F56F89F00B63797 /* img_liveroom_input_linkmic_apply_animation.webp */,
00E6CE272F56F89F00B63797 /* img_liveroom_input_linkmic_waiting_animation.webp */, 00E6CE272F56F89F00B63797 /* img_liveroom_input_linkmic_waiting_animation.webp */,
...@@ -8470,6 +8478,7 @@ ...@@ -8470,6 +8478,7 @@
BEF675ED2C6B156500A670FB /* live_pk_background_image.png */, BEF675ED2C6B156500A670FB /* live_pk_background_image.png */,
00A1DCF62CA6B2C50000541F /* liveRoom_patAudience_pat_animate.webp */, 00A1DCF62CA6B2C50000541F /* liveRoom_patAudience_pat_animate.webp */,
00CD26BC2F5A877E00A07432 /* live_bottom_tool_gift_guide_animate.webp */, 00CD26BC2F5A877E00A07432 /* live_bottom_tool_gift_guide_animate.webp */,
004773252F5C281300E46A79 /* liveRoom_newComer_gift_animate.webp */,
BEF675EE2C6B156500A670FB /* live_treasure_box_bg_img.png */, BEF675EE2C6B156500A670FB /* live_treasure_box_bg_img.png */,
00E2A7C82F20B8C9003B779E /* pk_start_sound_go.mp3 */, 00E2A7C82F20B8C9003B779E /* pk_start_sound_go.mp3 */,
00E2A7C92F20B8C9003B779E /* pk_start_sound_ready.mp3 */, 00E2A7C92F20B8C9003B779E /* pk_start_sound_ready.mp3 */,
...@@ -10029,6 +10038,7 @@ ...@@ -10029,6 +10038,7 @@
BEF676F32C6B156600A670FB /* PK_Lose_Animation_28@2x.png in Resources */, BEF676F32C6B156600A670FB /* PK_Lose_Animation_28@2x.png in Resources */,
BEF6771F2C6B156600A670FB /* PK_Lose_Animation_72@2x.png in Resources */, BEF6771F2C6B156600A670FB /* PK_Lose_Animation_72@2x.png in Resources */,
BEF676752C6B156600A670FB /* live_gift_item_selected_anim_5@2x.png in Resources */, BEF676752C6B156600A670FB /* live_gift_item_selected_anim_5@2x.png in Resources */,
004773222F5C0C2000E46A79 /* fus_home_navi_startLive_animate.webp in Resources */,
BEF676782C6B156600A670FB /* live_gift_item_selected_anim_8@2x.png in Resources */, BEF676782C6B156600A670FB /* live_gift_item_selected_anim_8@2x.png in Resources */,
BEF6764A2C6B156500A670FB /* common_broadcast_purple_type_bg_2@2x.png in Resources */, BEF6764A2C6B156500A670FB /* common_broadcast_purple_type_bg_2@2x.png in Resources */,
BEF677E42C6B156600A670FB /* live_link_micro_request_5.png in Resources */, BEF677E42C6B156600A670FB /* live_link_micro_request_5.png in Resources */,
...@@ -10042,6 +10052,7 @@ ...@@ -10042,6 +10052,7 @@
BEF6773E2C6B156600A670FB /* PK_Start_Animation_11@2x.png in Resources */, BEF6773E2C6B156600A670FB /* PK_Start_Animation_11@2x.png in Resources */,
BEF676FE2C6B156600A670FB /* PK_Lose_Animation_39@2x.png in Resources */, BEF676FE2C6B156600A670FB /* PK_Lose_Animation_39@2x.png in Resources */,
BEF676EB2C6B156600A670FB /* PK_Lose_Animation_20@2x.png in Resources */, BEF676EB2C6B156600A670FB /* PK_Lose_Animation_20@2x.png in Resources */,
004773262F5C281300E46A79 /* liveRoom_newComer_gift_animate.webp in Resources */,
BEB504682D2E53F900EA6E6F /* FUSVideoStartSetThemeView.xib in Resources */, BEB504682D2E53F900EA6E6F /* FUSVideoStartSetThemeView.xib in Resources */,
BEF676062C6B156500A670FB /* 1_First_Kill_Animation_22@3x.png in Resources */, BEF676062C6B156500A670FB /* 1_First_Kill_Animation_22@3x.png in Resources */,
BEF6769E2C6B156600A670FB /* live_guide_first_top_up_tips_anim_26@2x.png in Resources */, BEF6769E2C6B156600A670FB /* live_guide_first_top_up_tips_anim_26@2x.png in Resources */,
...@@ -10124,6 +10135,7 @@ ...@@ -10124,6 +10135,7 @@
00CD23102F58245D00A07432 /* live_pk_win_anim_100@2x.png in Resources */, 00CD23102F58245D00A07432 /* live_pk_win_anim_100@2x.png in Resources */,
00CD23112F58245D00A07432 /* live_pk_win_anim_16@2x.png in Resources */, 00CD23112F58245D00A07432 /* live_pk_win_anim_16@2x.png in Resources */,
00CD23122F58245D00A07432 /* live_pk_win_anim_26@2x.png in Resources */, 00CD23122F58245D00A07432 /* live_pk_win_anim_26@2x.png in Resources */,
004773242F5C262300E46A79 /* home_list_pk_show_type1_anim.webp in Resources */,
00CD23132F58245D00A07432 /* live_pk_win_anim_86@2x.png in Resources */, 00CD23132F58245D00A07432 /* live_pk_win_anim_86@2x.png in Resources */,
00CD23142F58245D00A07432 /* live_pk_win_anim_125@2x.png in Resources */, 00CD23142F58245D00A07432 /* live_pk_win_anim_125@2x.png in Resources */,
00CD23152F58245D00A07432 /* live_pk_win_anim_75@2x.png in Resources */, 00CD23152F58245D00A07432 /* live_pk_win_anim_75@2x.png in Resources */,
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"scale" : "2x" "scale" : "2x"
}, },
{ {
"filename" : "live_pk_control_pkGamePlay_gift_tag.png", "filename" : "live_pk_control_pkGamePlay_gift_tag@3x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "3x" "scale" : "3x"
} }
......
...@@ -63,6 +63,11 @@ ...@@ -63,6 +63,11 @@
[tempBtn fus_setImages:animationIamgesList forState:UIControlStateSelected]; [tempBtn fus_setImages:animationIamgesList forState:UIControlStateSelected];
} }
if (i == 2) {
[tempBtn fus_setImage:[FUSShowRoomCenterBunble webpImageName:@"fus_home_navi_startLive_animate" scale:2] forState:UIControlStateNormal];
[tempBtn fus_setImage:[FUSShowRoomCenterBunble webpImageName:@"fus_home_navi_startLive_animate" scale:2] forState:UIControlStateSelected];
}
tempBtn.tag = i; tempBtn.tag = i;
[tempBtn addTarget:self action:@selector(naviBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside]; [tempBtn addTarget:self action:@selector(naviBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside];
...@@ -111,9 +116,9 @@ ...@@ -111,9 +116,9 @@
/// 用于兼容帧动画的按钮 /// 用于兼容帧动画的按钮
@interface FUSHomeNaviButton() @interface FUSHomeNaviButton()
@property (nonatomic, strong) UIImageView *selectImageView; @property (nonatomic, strong) YYAnimatedImageView *selectImageView;
@property (nonatomic, strong) UIImageView *normalImageView; @property (nonatomic, strong) YYAnimatedImageView *normalImageView;
@end @end
...@@ -135,8 +140,8 @@ ...@@ -135,8 +140,8 @@
} }
-(void)makeUI{ -(void)makeUI{
self.selectImageView = [[UIImageView alloc] init]; self.selectImageView = [[YYAnimatedImageView alloc] init];
self.normalImageView = [[UIImageView alloc] init]; self.normalImageView = [[YYAnimatedImageView alloc] init];
[self addSubview:self.selectImageView]; [self addSubview:self.selectImageView];
[self addSubview:self.normalImageView]; [self addSubview:self.normalImageView];
...@@ -174,14 +179,14 @@ ...@@ -174,14 +179,14 @@
} }
- (void)fus_setImage:(UIImage *)image forState:(UIControlState)state{ - (void)fus_setImage:(UIImage *)image forState:(UIControlState)state{
UIImageView *imageView = [self fus_getImageViewWithState:state]; YYAnimatedImageView *imageView = [self fus_getImageViewWithState:state];
imageView.tag = 0; imageView.tag = 0;
imageView.animationImages = nil; imageView.animationImages = nil;
imageView.image = image; imageView.image = image;
} }
- (void)fus_setImages:(NSArray<UIImage *> *)images forState:(UIControlState)state{ - (void)fus_setImages:(NSArray<UIImage *> *)images forState:(UIControlState)state{
UIImageView *imageView = [self fus_getImageViewWithState:state]; YYAnimatedImageView *imageView = [self fus_getImageViewWithState:state];
imageView.tag = 1; imageView.tag = 1;
imageView.image = nil; imageView.image = nil;
imageView.animationImages = images; imageView.animationImages = images;
...@@ -191,7 +196,7 @@ ...@@ -191,7 +196,7 @@
} }
} }
-(UIImageView *)fus_getImageViewWithState:(UIControlState)state{ -(YYAnimatedImageView *)fus_getImageViewWithState:(UIControlState)state{
switch (state) { switch (state) {
case UIControlStateNormal: case UIControlStateNormal:
return self.normalImageView; return self.normalImageView;
......
...@@ -113,6 +113,7 @@ ...@@ -113,6 +113,7 @@
}]; }];
self.pkShowAnimationImageView = [[YYAnimatedImageView alloc] init]; self.pkShowAnimationImageView = [[YYAnimatedImageView alloc] init];
self.pkShowAnimationImageView.image = [FUSShowRoomCenterBunble webpImageName:@"home_list_pk_show_type1_anim"];
[self.contentView addSubview:self.pkShowAnimationImageView]; [self.contentView addSubview:self.pkShowAnimationImageView];
[self.pkShowAnimationImageView mas_makeConstraints:^(MASConstraintMaker *make) { [self.pkShowAnimationImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.height.equalTo(self.PKAnimationImageView.mas_height).multipliedBy(0.9 / 90.0 * 150.0); make.height.equalTo(self.PKAnimationImageView.mas_height).multipliedBy(0.9 / 90.0 * 150.0);
......
...@@ -1033,6 +1033,14 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -1033,6 +1033,14 @@ NS_ASSUME_NONNULL_BEGIN
succeed:(void (^)(NSDictionary *dataDict))succeed succeed:(void (^)(NSDictionary *dataDict))succeed
failure:(void (^)(NSString *, NSInteger))failure; failure:(void (^)(NSString *, NSInteger))failure;
/// 奖励中心批量领取
/// @param sidList sid的集合
/// @param succeed 1
/// @param failure 0
+(void)fus_requestGetTaskRewardMultiReceiveWithSidList:(NSArray<NSString *> *)sidList
succeed:(void (^)(void))succeed
failure:(void (^)(NSString *msg, NSInteger code))failure;
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END
...@@ -2888,5 +2888,39 @@ ...@@ -2888,5 +2888,39 @@
}]; }];
} }
+ (void)fus_requestGetTaskRewardMultiReceiveWithSidList:(NSArray<NSString *> *)sidList succeed:(void (^)(void))succeed failure:(void (^)(NSString * _Nonnull, NSInteger))failure {
NSError *jsonError;
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:sidList
options:NSJSONWritingPrettyPrinted
error:&jsonError];
NSString *sidListJsonString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
NSDictionary *parm = @{@"sidList": sidListJsonString};
[FUSHttpHelper postRequestBinaryWithUrl:FUSShowRoomURLs.fus_URL_getTaskRewardMultiReceive params:parm success:^(NSDictionary * _Nullable dataDict, int code) {
NSArray *resultList = dataDict[@"resultList"];
NSMutableArray *rltList = [[NSMutableArray alloc] init];
if (resultList != nil && resultList.count > 0) {
for (NSDictionary *tempDict in resultList) {
FUSDrawRewardAnimationItemModel *tempModel = [[FUSDrawRewardAnimationItemModel alloc] init];
tempModel.classify = [tempDict[@"classify"] integerValue];
tempModel.num = [tempDict[@"itemNum"] integerValue];
tempModel.iconUrl = [tempDict[@"itemUrl"] description];
tempModel.name = [tempDict[@"itemName"] description];
tempModel.tid = [tempDict[@"sid"] description];
[rltList addObject:tempModel];
}
}
if (rltList.count > 0) {
[[FUSRouter userRouter] fus_showMultiAwardAnimate:rltList];
}
if (succeed) {
succeed();
}
} failure:^(NSDictionary * _Nullable dataDict, int code) {
if (failure) failure(dataDict[@"msg"],code);
}];
}
@end @end
...@@ -1015,33 +1015,34 @@ ...@@ -1015,33 +1015,34 @@
_livePKBtnState = pkBtnState; _livePKBtnState = pkBtnState;
[self.bottomSubView changePKBtnStateImageWithPKBtnState:pkBtnState]; [self.bottomSubView changePKBtnStateImageWithPKBtnState:pkBtnState];
if (pkBtnState == FUSLiveChatToolPKBtnStateCancel) { // ludy: 现在pk在里面了
[self.toolBtn2 setImage:[FUSShowRoomCenterBunble imageNamed:@"Live_bottom_audience_PK_Normal"] forState:UIControlStateNormal]; // if (pkBtnState == FUSLiveChatToolPKBtnStateCancel) {
[self.toolBtn2 setImage:[FUSShowRoomCenterBunble imageNamed:@"Live_bottom_audience_PK_highlight"] forState:UIControlStateHighlighted]; // [self.toolBtn2 setImage:[FUSShowRoomCenterBunble imageNamed:@"Live_bottom_audience_PK_Normal"] forState:UIControlStateNormal];
} else { // [self.toolBtn2 setImage:[FUSShowRoomCenterBunble imageNamed:@"Live_bottom_audience_PK_highlight"] forState:UIControlStateHighlighted];
[self.toolBtn2 setImage:[FUSShowRoomCenterBunble imageNamed:@"Live_icon_toolview_highlighted_2"] forState:UIControlStateHighlighted]; // } else {
[self.toolBtn2 setImage:[FUSShowRoomCenterBunble imageNamed:@"Live_icon_toolview_normal_2"] forState:UIControlStateNormal]; // [self.toolBtn2 setImage:[FUSShowRoomCenterBunble imageNamed:@"Live_icon_toolview_highlighted_2"] forState:UIControlStateHighlighted];
} // [self.toolBtn2 setImage:[FUSShowRoomCenterBunble imageNamed:@"Live_icon_toolview_normal_2"] forState:UIControlStateNormal];
// }
switch (pkBtnState) { //
case FUSLiveChatToolPKBtnStateStart: // switch (pkBtnState) {
{ // case FUSLiveChatToolPKBtnStateStart:
[self.toolBtn2 setBackgroundImage:nil forState:UIControlStateNormal]; // {
} // [self.toolBtn2 setBackgroundImage:nil forState:UIControlStateNormal];
break; // }
case FUSLiveChatToolPKBtnStateCancel: // break;
{ // case FUSLiveChatToolPKBtnStateCancel:
[self.toolBtn2 setBackgroundImage:[FUSShowRoomCenterBunble animatedImageNamed:@"PKBottomBtnBgRotationAnimation_" duration:2] forState:UIControlStateNormal]; // {
} // [self.toolBtn2 setBackgroundImage:[FUSShowRoomCenterBunble animatedImageNamed:@"PKBottomBtnBgRotationAnimation_" duration:2] forState:UIControlStateNormal];
break; // }
case FUSLiveChatToolPKBtnStateStop: // break;
{ // case FUSLiveChatToolPKBtnStateStop:
[self.toolBtn2 setBackgroundImage:nil forState:UIControlStateNormal]; // {
} // [self.toolBtn2 setBackgroundImage:nil forState:UIControlStateNormal];
break; // }
default: // break;
break; // default:
} // break;
// }
[self fus_updateLinkMicBtnState]; [self fus_updateLinkMicBtnState];
} }
......
...@@ -128,6 +128,9 @@ if (@available(iOS 11.0, *)) {height = height + UIView.fus_SafeBottom;}\ ...@@ -128,6 +128,9 @@ if (@available(iOS 11.0, *)) {height = height + UIView.fus_SafeBottom;}\
/// 结束口令宝箱的编辑状态 /// 结束口令宝箱的编辑状态
- (void)fus_endBoxSettingEdittingState; - (void)fus_endBoxSettingEdittingState;
/// 显示宝箱
-(void)fus_showBoxSettingView;
/** /**
清除数据 清除数据
*/ */
......
...@@ -1395,6 +1395,21 @@ static FUSLiveGiftView *giftView = nil; ...@@ -1395,6 +1395,21 @@ static FUSLiveGiftView *giftView = nil;
[self.boxSettingView fus_stopOrderListEditState]; [self.boxSettingView fus_stopOrderListEditState];
} }
/// 显示宝箱
-(void)fus_showBoxSettingView {
[self fus_dismissWithAnimate:YES needUpload:NO];
if (!_boxSettingView) {
_boxSettingView = [[FUSLiveBoxSettingView alloc] initWithFrame:CGRectMake(0, UIView.fus_screenH, UIView.fus_screenW, UIView.fus_screenH)];
}else{
[_boxSettingView fus_requestBoxData];
}
[[[FUSLiveHelper shareInstance].currentFunctionView fus_viewWithLayer:FUSLiveFunctionLayerManualPopView] addSubview:_boxSettingView];
[UIView animateWithDuration:0.2 animations:^{
self.boxSettingView.y = 0;
}];
}
/** /**
清除数据 清除数据
*/ */
......
...@@ -277,6 +277,9 @@ typedef NS_ENUM(NSInteger, FUSFunctionMode) { ...@@ -277,6 +277,9 @@ typedef NS_ENUM(NSInteger, FUSFunctionMode) {
/// - gid: 礼物id /// - gid: 礼物id
-(void)fus_jumpToBackpackWithPageType:(NSInteger)pageType gid:(NSString *)gid; -(void)fus_jumpToBackpackWithPageType:(NSInteger)pageType gid:(NSString *)gid;
/// 弹出发宝箱的view
-(void)fus_showLiveBoxSettingView;
/// 弹出资料卡 /// 弹出资料卡
-(void)fus_showUserInfoAlertViewWithModel:(FUSRoomUserInfoModel *)model; -(void)fus_showUserInfoAlertViewWithModel:(FUSRoomUserInfoModel *)model;
......
...@@ -57,14 +57,15 @@ class FUSPKPunishSelectPunishCell: UICollectionViewCell { ...@@ -57,14 +57,15 @@ class FUSPKPunishSelectPunishCell: UICollectionViewCell {
activateLabel.font = .fus_themeBoldFont(7) activateLabel.font = .fus_themeBoldFont(7)
activateLabel.textColor = .init(hex: "#111111") activateLabel.textColor = .init(hex: "#111111")
activateLabel.text = " " + .fus_versionLocalString("生效中1") + " " activateLabel.text = " " + .fus_versionLocalString("生效中") + " "
activateLabel.backgroundColor = .init(hex: "#FFF000") activateLabel.backgroundColor = .fus_theme()
activateLabel.layer.cornerRadius = 6 activateLabel.layer.cornerRadius = 6
activateLabel.layer.masksToBounds = true activateLabel.layer.masksToBounds = true
bgImage.addSubview(activateLabel) bgImage.addSubview(activateLabel)
activateLabel.snp.makeConstraints { make in activateLabel.snp.makeConstraints { make in
make.left.equalTo(7) make.left.equalTo(7)
make.top.equalTo(7) make.top.equalTo(7)
make.height.equalTo(12)
} }
activateLabel.isHidden = true activateLabel.isHidden = true
......
...@@ -335,7 +335,7 @@ ...@@ -335,7 +335,7 @@
return self.dataSourceList.count; return self.dataSourceList.count;
} }
- (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath{ - (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath{
return 90; return 185;
} }
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
return UITableViewAutomaticDimension; return UITableViewAutomaticDimension;
......
...@@ -482,6 +482,9 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -482,6 +482,9 @@ NS_ASSUME_NONNULL_BEGIN
/// 获取PK惩罚资源配置列表 /// 获取PK惩罚资源配置列表
+ (NSString *)fus_URL_settingDataVsPunishGetList; + (NSString *)fus_URL_settingDataVsPunishGetList;
/// 奖励中心批量领取 sidList: sid集合json,例如:[11122,3333,4444,555]
+ (NSString *)fus_URL_getTaskRewardMultiReceive;
/// 获取模式列表 /// 获取模式列表
+ (NSString *)fus_URL_vsTypeGetList; + (NSString *)fus_URL_vsTypeGetList;
......
...@@ -783,6 +783,10 @@ ...@@ -783,6 +783,10 @@
+ (NSString *)fus_URL_settingDataVsPunishGetList{ + (NSString *)fus_URL_settingDataVsPunishGetList{
return [FUSConfig.sharedInstanced.pathConfigs apiUrl:@"/setting/data/vs/punish/getList"]; return [FUSConfig.sharedInstanced.pathConfigs apiUrl:@"/setting/data/vs/punish/getList"];
} }
/// 奖励中心批量领取 sidList: sid集合json,例如:[11122,3333,4444,555]
+ (NSString *)fus_URL_getTaskRewardMultiReceive {
return [FUSConfig.sharedInstanced.pathConfigs apiUrl:@"/task/reward/receive/getBatch"];
}
/// 获取模式列表 /// 获取模式列表
+ (NSString *)fus_URL_vsTypeGetList{ + (NSString *)fus_URL_vsTypeGetList{
......
...@@ -496,6 +496,10 @@ ...@@ -496,6 +496,10 @@
}]; }];
} }
- (void)fus_showLiveBoxSettingView {
[[FUSLiveHelper shareInstance].currentFunctionView fus_showLiveBoxSettingView];
}
- (void)fus_showShareViewWithShowOn:(UIView *)showOnView shareHandler:(void (^)(SocialSharePlatform))shareHandler{ - (void)fus_showShareViewWithShowOn:(UIView *)showOnView shareHandler:(void (^)(SocialSharePlatform))shareHandler{
[FUSShareToolSheetView fus_showShareViewWithShowOn:showOnView shareHandler:shareHandler]; [FUSShareToolSheetView fus_showShareViewWithShowOn:showOnView shareHandler:shareHandler];
} }
......
...@@ -899,6 +899,10 @@ ...@@ -899,6 +899,10 @@
[FUSRouter.liveRouter fus_showVideoScoreQualityAlertView:sid]; [FUSRouter.liveRouter fus_showVideoScoreQualityAlertView:sid];
} }
} }
else if ([jumpType isEqualToString:@"yazhai://_room_red_packet"]) {
// 发宝箱
[[FUSRouter liveRouter] fus_showLiveBoxSettingView];
}
} }
// 获取执行任务相关数据 // 获取执行任务相关数据
......
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