首充成功的弹框

This commit is contained in:
fengshuo
2021-12-24 18:01:30 +08:00
parent a4d554b720
commit 0f725500fc
5 changed files with 246 additions and 4 deletions

View File

@@ -18,12 +18,15 @@
#import "UserInfoModel.h"
#import "RoomInfoModel.h"
#import "ActivityInfoModel.h"
#import "AttachmentModel.h"
#import "FirstRechargeModel.h"
///View
#import "XPRoomHalfWebView.h"
#import "XPCandyTreeViewController.h"
#import "XPWebViewController.h"
#import "XPRoomViewController.h"
#import "XPFirstRechargeViewController.h"
#import "XPFirstRechargeSuccessView.h"
@interface XPRoomActivityContainerView ()<SDCycleScrollViewDelegate>
///
@@ -129,6 +132,15 @@
[self configCandyTree];
self.firstRechargeImageView.hidden = !self.hostDelegate.getUserInfo.isFirstCharge;
}
- (void)handleNIMCustomMessage:(AttachmentModel *)attachment {
if (attachment.first == CustomMessageType_First_Recharge_Reward && attachment.second == Custom_Message_Sub_Room_First_Recharge_Reward) {
FirstRechargeModel *model = [FirstRechargeModel modelWithJSON:attachment.data];
XPFirstRechargeSuccessView * firstRechargeView= [[XPFirstRechargeSuccessView alloc] init];
firstRechargeView.rechargeInfo = model;
[TTPopup popupView:firstRechargeView style:TTPopupStyleAlert];
}
}
#pragma mark - SDCycleScrollViewDelegate
- (void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didSelectItemAtIndex:(NSInteger)index {
if (self.activityList.count > index) {
@@ -173,7 +185,7 @@
_cycleScrollView.pageDotImage = [UIImage imageNamed:@"room_activity_banner_normal"];
_cycleScrollView.backgroundColor = [UIColor colorWithWhite:1 alpha:0.00];
_cycleScrollView.bannerImageViewContentMode = UIViewContentModeScaleAspectFit;
_cycleScrollView.pageControlBottomOffset = -20;
_cycleScrollView.pageControlBottomOffset = -10;
_cycleScrollView.hidden = YES;
}
return _cycleScrollView;