fix: 修正玩百顺游戏时,礼物动画会在最上层的问题
This commit is contained in:
@@ -72,6 +72,9 @@ UIKIT_EXTERN NSString *kShowFirstRechargeView;
|
||||
///是否加载了活动
|
||||
@property (nonatomic,assign) BOOL isLoadActivity;
|
||||
|
||||
@property (nonatomic, strong) NetImageView *loader_url_1;
|
||||
@property (nonatomic, strong) NetImageView *loader_url_2;
|
||||
|
||||
@end
|
||||
|
||||
@implementation XPRoomActivityContainerView
|
||||
@@ -246,8 +249,10 @@ UIKIT_EXTERN NSString *kShowFirstRechargeView;
|
||||
if (model) {
|
||||
@kWeakify(self);
|
||||
if (model.icon2Url.length > 0) {
|
||||
NetImageView *loader = [[NetImageView alloc] init];
|
||||
[loader loadImageWithUrl:model.icon2Url
|
||||
if (!_loader_url_2) {
|
||||
_loader_url_2 = [[NetImageView alloc] init];
|
||||
}
|
||||
[self.loader_url_2 loadImageWithUrl:model.icon2Url
|
||||
completion:^(UIImage * _Nullable image, NSURL * _Nonnull url) {
|
||||
@kStrongify(self);
|
||||
[self.gambleMenuButton setImage:image forState:UIControlStateNormal];
|
||||
@@ -255,8 +260,11 @@ UIKIT_EXTERN NSString *kShowFirstRechargeView;
|
||||
}
|
||||
|
||||
if (model.icon1Url.length > 0) {
|
||||
NetImageView *loader = [[NetImageView alloc] init];
|
||||
[loader loadImageWithUrl:model.icon1Url
|
||||
if (!_loader_url_1) {
|
||||
_loader_url_1 = [[NetImageView alloc] init];
|
||||
}
|
||||
self.loader_url_1 = [[NetImageView alloc] init];
|
||||
[self.loader_url_1 loadImageWithUrl:model.icon1Url
|
||||
completion:^(UIImage * _Nullable image, NSURL * _Nonnull url) {
|
||||
@kStrongify(self);
|
||||
[self.configEntranceMenuButton setImage:image forState:UIControlStateNormal];
|
||||
@@ -626,6 +634,7 @@ UIKIT_EXTERN NSString *kShowFirstRechargeView;
|
||||
}
|
||||
[self.hostDelegate.getSuperView addSubview:vc.view];
|
||||
[self.hostDelegate.getSuperView bringSubviewToFront:animationView];
|
||||
vc.view.tag = 913;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user