最后提交

This commit is contained in:
启星
2026-01-29 18:33:29 +08:00
parent f57a8051d9
commit e70f1b4d16
108 changed files with 1923 additions and 80 deletions

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "ac_exchange@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -5,7 +5,7 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "组 1124@2x.png", "filename" : "stake_bg_pool@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 568 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 628 KiB

View File

@@ -5,7 +5,7 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "组 1128@2x.png", "filename" : "stake_bg_rank@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 564 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 632 KiB

View File

@@ -5,7 +5,7 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "组 1129@2x.png", "filename" : "stake_bg_record@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 566 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 628 KiB

View File

@@ -5,7 +5,7 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "组 1127@2x.png", "filename" : "stake_bg_rule@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 565 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 628 KiB

View File

@@ -5,7 +5,7 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "4e92aab36bb04cb65d1b14456fcb790f5291002abce8-3lmezR_fw1200@2x.png", "filename" : "stake_countdown_bg@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@@ -5,7 +5,7 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "组 1119@2x.png", "filename" : "stake_name_1@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 KiB

View File

@@ -5,7 +5,7 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "组 1120@2x.png", "filename" : "stake_name_2@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

View File

@@ -5,7 +5,7 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "组 1121@2x.png", "filename" : "stake_name_3@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

View File

@@ -5,7 +5,7 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "组 1116@2x.png", "filename" : "stake_name_4@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

View File

@@ -5,7 +5,7 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "组 1118@2x.png", "filename" : "stake_name_5@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

View File

@@ -5,7 +5,7 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "组 1117@2x.png", "filename" : "stake_name_6@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

View File

@@ -5,7 +5,7 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "组 1111@2x.png", "filename" : "zhuan_stake_bg@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

View File

@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "prize_call_bg.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_prize_call_box_gift@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "prize_call_box_gift_anim_off.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "prize_call_box_gift_anim_on.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "1次@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "10次@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Mask group@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_prize_call_box_gift@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_prize_call_box_record@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "prize_call_close.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 754 B

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "prize_call_open_box.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "prize_award_config.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "prize_award_multiple_bg.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "prize_award_multiple_item.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "prize_award_open1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "prize_award_open10.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "prize_award_open20.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "prize_award_single_bg.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

View File

@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "prize_award_tittle.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_set_room_horse_ac@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_set_room_horse_ac@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_set_room_plan_ac@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_set_room_plan_ac@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -93,6 +93,13 @@ blue:((float)(rgbValue & 0xFF)) / 255.0 alpha:a]
#define ScreenWidth ([UIScreen mainScreen].bounds.size.width) #define ScreenWidth ([UIScreen mainScreen].bounds.size.width)
#define ScreenHeight ([UIScreen mainScreen].bounds.size.height) #define ScreenHeight ([UIScreen mainScreen].bounds.size.height)
#define iPhoneX \
({BOOL isPhoneX = NO;\
if (@available(iOS 11.0, *)) {\
isPhoneX = [[UIApplication sharedApplication] delegate].window.safeAreaInsets.bottom > 0.0;\
}\
(isPhoneX);})
// 通过十六进制获取色值 // 通过十六进制获取色值
#define COLOR16(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0] #define COLOR16(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

View File

@@ -18,11 +18,11 @@
-(void)getRoomActivietyStatus{ -(void)getRoomActivietyStatus{
MJWeakSelf MJWeakSelf
[QXMineNetwork getRoomActivityStatusSuccessBlock:^(NSArray<QXRoomActivityStatusModel *> * _Nonnull list) { // [QXMineNetwork getRoomActivityStatusSuccessBlock:^(NSArray<QXRoomActivityStatusModel *> * _Nonnull list) {
weakSelf.settingView.acList = list; // weakSelf.settingView.acList = list;
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) { // } failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
//
}]; // }];
} }
-(void)updateProgress:(NSNotification *)notice{ -(void)updateProgress:(NSNotification *)notice{

View File

@@ -43,6 +43,7 @@
#import "QXDrifNobilityJoinRoomView.h" #import "QXDrifNobilityJoinRoomView.h"
#import "QXRoomViewController+Bar.h" #import "QXRoomViewController+Bar.h"
#import "WL_StakeView.h" #import "WL_StakeView.h"
#import "JFIdolProjectView.h"
@interface QXRoomViewController ()< @interface QXRoomViewController ()<
QXRoomBottomViewDelegate, QXRoomBottomViewDelegate,
@@ -1727,6 +1728,12 @@ QXUpSeatViewDelegate
[alert showOnView:self.view]; [alert showOnView:self.view];
} }
break; break;
case QXRoomSettingTypePlanAc:{
JFIdolProjectView*view = [[JFIdolProjectView alloc] init];
view.roomId = self.roomId;
[view show];
}
break;
default: default:
break; break;

View File

@@ -437,7 +437,7 @@
self.moreGiftBtn = [[UIButton alloc] init]; self.moreGiftBtn = [[UIButton alloc] init];
[self.moreGiftBtn setTitleColor:RGB16(0x999999) forState:(UIControlStateNormal)]; [self.moreGiftBtn setTitleColor:RGB16(0x999999) forState:(UIControlStateNormal)];
[self.moreGiftBtn setTitle:[NSString localizedStringWithFormat:QXText(@"90天内累计收到%@个礼物"),@"0"] forState:(UIControlStateNormal)]; [self.moreGiftBtn setTitle:[NSString localizedStringWithFormat:@"累计收到%@个礼物",@"0"] forState:(UIControlStateNormal)];
self.moreGiftBtn.titleLabel.font = [UIFont systemFontOfSize:12]; self.moreGiftBtn.titleLabel.font = [UIFont systemFontOfSize:12];
[self.moreGiftBtn setImage:[[UIImage imageNamed:@"arrowRight"] imageByTintColor:RGB16(0x999999)] forState:(UIControlStateNormal)]; [self.moreGiftBtn setImage:[[UIImage imageNamed:@"arrowRight"] imageByTintColor:RGB16(0x999999)] forState:(UIControlStateNormal)];
[self.moreGiftBtn addTarget:self action:@selector(eventAction:) forControlEvents:(UIControlEventTouchUpInside)]; [self.moreGiftBtn addTarget:self action:@selector(eventAction:) forControlEvents:(UIControlEventTouchUpInside)];
@@ -714,7 +714,7 @@
} }
} }
[weakSelf.upSeatBtn setTitle:model.is_in_pit.intValue==1?QXText(@"下麦"):QXText(@"抱麦") forState:(UIControlStateNormal)]; [weakSelf.upSeatBtn setTitle:model.is_in_pit.intValue==1?QXText(@"下麦"):QXText(@"抱麦") forState:(UIControlStateNormal)];
[weakSelf.moreGiftBtn setTitle:[NSString localizedStringWithFormat:QXText(@"90天内累计收到%@个礼物"),model.gift_num] forState:(UIControlStateNormal)]; [weakSelf.moreGiftBtn setTitle:[NSString localizedStringWithFormat:@"内累计收到%@个礼物",model.gift_num] forState:(UIControlStateNormal)];
[weakSelf.moreGiftBtn qx_layoutButtonNOSizeToFitWithEdgeInsetsStyle:(QXButtonEdgeInsetsStyleRight) imageTitleSpace:2]; [weakSelf.moreGiftBtn qx_layoutButtonNOSizeToFitWithEdgeInsetsStyle:(QXButtonEdgeInsetsStyleRight) imageTitleSpace:2];
weakSelf.introduceLabel.text = model.profile; weakSelf.introduceLabel.text = model.profile;

View File

@@ -74,6 +74,8 @@ typedef NS_ENUM(NSInteger) {
QXRoomSettingTypeRedBagSound = 31, QXRoomSettingTypeRedBagSound = 31,
/// 炼仙传说 /// 炼仙传说
QXRoomSettingTypeFairyAc = 50, QXRoomSettingTypeFairyAc = 50,
/// 爱豆计划
QXRoomSettingTypePlanAc = 51,
}QXRoomSettingType; }QXRoomSettingType;
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@class QXRoomSettingModel; @class QXRoomSettingModel;

View File

@@ -96,6 +96,8 @@
@property (nonatomic,strong)QXRoomSettingModel *timeAc; @property (nonatomic,strong)QXRoomSettingModel *timeAc;
/// ///
@property (nonatomic,strong)QXRoomSettingModel *fairyAc; @property (nonatomic,strong)QXRoomSettingModel *fairyAc;
///
@property (nonatomic,strong)QXRoomSettingModel *planAc;
/// ///
@property (nonatomic,strong)QXRoomSettingModel *redBagSound; @property (nonatomic,strong)QXRoomSettingModel *redBagSound;
@@ -111,6 +113,10 @@
@property (nonatomic,strong)QXAlertView *alertView; @property (nonatomic,strong)QXAlertView *alertView;
@property (nonatomic,strong)QXDatePickerView* pickerView; @property (nonatomic,strong)QXDatePickerView* pickerView;
@property (nonatomic,strong)NSMutableArray* acArray;
@property (nonatomic,assign)BOOL hasAc;
@end @end
@implementation QXRoomSettingView @implementation QXRoomSettingView
@@ -210,7 +216,7 @@
// toolsArr = @[self.roomSubsidy,self.roomMessage,self.roomOrderMic,self.roomBgMusic,self.roomBgImage]; // toolsArr = @[self.roomSubsidy,self.roomMessage,self.roomOrderMic,self.roomBgMusic,self.roomBgImage];
/// ///
toolsArr = @[self.roomMessage,self.roomOrderMic,self.roomBgImage,self.roomTime]; toolsArr = @[self.roomMessage,self.roomOrderMic,self.roomBgImage,self.roomTime];
moreArr = @[self.redBag,self.roomSetting,self.roomEffects,self.drifPop,self.roomReport]; moreArr = @[self.redBag,self.roomSetting,self.roomEffects,self.drifPop,self.roomReport,self.redBagSound];
} }
self.titles = @[QXText(@"房间类型"),QXText(@"常用工具"),QXText(@"更多操作")]; self.titles = @[QXText(@"房间类型"),QXText(@"常用工具"),QXText(@"更多操作")];
@@ -220,7 +226,7 @@
// //
roomTypeArr = @[]; roomTypeArr = @[];
toolsArr = @[]; toolsArr = @[];
moreArr = @[self.redBag,self.roomEffects,self.drifPop,self.roomReport]; moreArr = @[self.redBag,self.roomEffects,self.drifPop,self.roomReport,self.redBagSound];
self.titles = @[QXText(@"更多操作")]; self.titles = @[QXText(@"更多操作")];
} }
break; break;
@@ -241,7 +247,7 @@
/// ///
toolsArr = @[self.roomCompere,self.roomMessage,self.roomOrderMic,self.roomBgImage,self.roomTime]; toolsArr = @[self.roomCompere,self.roomMessage,self.roomOrderMic,self.roomBgImage,self.roomTime];
} }
moreArr = @[self.redBag,self.roomSetting,self.roomEffects,self.drifPop,self.roomReport]; moreArr = @[self.redBag,self.roomSetting,self.roomEffects,self.drifPop,self.roomReport,self.redBagSound];
// roomTypeArr = @[self.roomTypeSing,self.roomTypeAuction,self.roomTypeBoy,self.roomTypeGirl,self.roomTypeFriend]; // roomTypeArr = @[self.roomTypeSing,self.roomTypeAuction,self.roomTypeBoy,self.roomTypeGirl,self.roomTypeFriend];
self.titles = @[QXText(@"房间类型"),QXText(@"常用工具"),QXText(@"更多操作")]; self.titles = @[QXText(@"房间类型"),QXText(@"常用工具"),QXText(@"更多操作")];
} }
@@ -264,7 +270,7 @@
toolsArr = @[self.roomCompere,self.roomMessage,self.roomOrderMic,self.roomBgImage,self.roomTime]; toolsArr = @[self.roomCompere,self.roomMessage,self.roomOrderMic,self.roomBgImage,self.roomTime];
} }
// roomTypeArr = @[self.roomTypeSing,self.roomTypeAuction,self.roomTypeBoy,self.roomTypeGirl,self.roomTypeFriend]; // roomTypeArr = @[self.roomTypeSing,self.roomTypeAuction,self.roomTypeBoy,self.roomTypeGirl,self.roomTypeFriend];
moreArr = @[self.redBag,self.roomSetting,self.roomEffects,self.drifPop,self.roomReport]; moreArr = @[self.redBag,self.roomSetting,self.roomEffects,self.drifPop,self.roomReport,self.redBagSound];
self.titles = @[QXText(@"房间类型"),QXText(@"常用工具"),QXText(@"更多操作")]; self.titles = @[QXText(@"房间类型"),QXText(@"常用工具"),QXText(@"更多操作")];
} }
break; break;
@@ -276,36 +282,86 @@
QXText(@"常用工具"):toolsArr, QXText(@"常用工具"):toolsArr,
QXText(@"更多操作"):moreArr QXText(@"更多操作"):moreArr
}]; }];
[self updateAcTools];
[self.tableView reloadData]; [self.tableView reloadData];
} }
-(void)setAcList:(NSArray *)acList{ //-(void)setAcList:(NSArray *)acList{
_acList = acList; //// _acList = acList;
[self updateAcTools]; //// [self updateAcTools];
//}
-(void)getRoomActivietyStatus{
MJWeakSelf
[QXMineNetwork getRoomActivityStatusSuccessBlock:^(NSArray<QXRoomActivityStatusModel *> * _Nonnull list) {
weakSelf.acList = [NSArray arrayWithArray:list];
[weakSelf updateAcTools];
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
}];
} }
-(void)updateAcTools{ -(void)updateAcTools{
NSMutableArray *arr = [NSMutableArray arrayWithArray:[self.dataDict objectForKey:@"更多操作"]]; self.hasAc = NO;
for (QXRoomActivityStatusModel *md in self.acList) { for (QXRoomActivityStatusModel *md in self.acList) {
if ([md.gift_bag_id isEqualToString:@"11"]) { if ([md.gift_bag_id isEqualToString:@"11"]) {
if (md.status.intValue == 1) { if (md.status.intValue == 1) {
if (![arr containsObject:self.ageAc]) { if (![self.acArray containsObject:self.ageAc]) {
[arr addObject:self.ageAc]; [self.acArray addObject:self.ageAc];
} }
self.hasAc = YES;
} }
}else if ([md.gift_bag_id isEqualToString:@"12"]) { }else if ([md.gift_bag_id isEqualToString:@"12"]) {
if (md.status.intValue == 1) { if (md.status.intValue == 1) {
if (![arr containsObject:self.timeAc]) { if (![self.acArray containsObject:self.timeAc]) {
[arr addObject:self.timeAc]; [self.acArray addObject:self.timeAc];
} }
self.hasAc = YES;
}
}else if ([md.gift_bag_id isEqualToString:@"60"]) {
if (md.status.intValue == 1) {
if (![self.acArray containsObject:self.fairyAc]) {
[self.acArray addObject:self.fairyAc];
}
self.hasAc = YES;
}
}else if ([md.gift_bag_id isEqualToString:@"61"]) {
if (md.status.intValue == 1) {
if (![self.acArray containsObject:self.planAc]) {
[self.acArray addObject:self.planAc];
}
self.hasAc = YES;
} }
} }
} }
[arr addObject:self.fairyAc]; //#if DEBUG
[arr addObject:self.redBagSound]; // if (![self.acArray containsObject:self.fairyAc]) {
[self.dataDict setObject:[NSArray arrayWithArray:arr] forKey:@"更多操作"]; // [self.acArray addObject:self.fairyAc];
// }
// if (![self.acArray containsObject:self.planAc]) {
// [self.acArray addObject:self.planAc];
// }
//#endif
NSMutableArray *arr = [NSMutableArray arrayWithArray:self.titles];
if (self.hasAc) {
if (![arr containsObject:@"趣味活动"]) {
[arr addObject:@"趣味活动"];
}
self.bgView.height = ScaleWidth(407)+kSafeAreaBottom+ScaleWidth(54)+30;
}else{
self.bgView.height = ScaleWidth(407)+kSafeAreaBottom;
if (![arr containsObject:@"趣味活动"]) {
[arr removeObject:@"趣味活动"];
}
}
self.titles = [NSArray arrayWithArray:arr];
self.bgView.y = SCREEN_HEIGHT - self.bgView.height;
self.topView.frame = CGRectMake(16, 0, SCREEN_WIDTH-16*2, ScaleWidth(54));
self.bottomBgView.frame = CGRectMake(0, self.topView.bottom+4, self.width, self.bgView.height-self.topView.bottom-4);
[self.bottomBgView addRoundedCornersWithRadius:16 byRoundingCorners:(UIRectCornerTopLeft|UIRectCornerTopRight)];
self.tableView.frame = CGRectMake(0, 10, self.width, self.bottomBgView.height-10);
[self.dataDict setObject:[NSArray arrayWithArray:self.acArray] forKey:@"趣味活动"];
[self.tableView reloadData];
} }
-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{ -(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{
@@ -463,9 +519,10 @@
} }
-(void)showInView:(UIView *)view{ -(void)showInView:(UIView *)view{
[self getRoomActivietyStatus];
[view addSubview:self]; [view addSubview:self];
[UIView animateWithDuration:0.3 animations:^{ [UIView animateWithDuration:0.3 animations:^{
self.bgView.y = SCREEN_HEIGHT- ScaleWidth(407)-kSafeAreaBottom; self.bgView.y = SCREEN_HEIGHT-self.bgView.height;
}]; }];
} }
@@ -742,12 +799,21 @@
-(QXRoomSettingModel *)fairyAc{ -(QXRoomSettingModel *)fairyAc{
if (!_fairyAc) { if (!_fairyAc) {
_fairyAc = [[QXRoomSettingModel alloc] init]; _fairyAc = [[QXRoomSettingModel alloc] init];
_fairyAc.icon = @"room_set_room_time_ac"; _fairyAc.icon = @"room_set_room_horse_ac";
_fairyAc.name = @"炼仙传说"; _fairyAc.name = @"马迎新春";
_fairyAc.type = QXRoomSettingTypeFairyAc; _fairyAc.type = QXRoomSettingTypeFairyAc;
} }
return _fairyAc; return _fairyAc;
} }
-(QXRoomSettingModel *)planAc{
if (!_planAc) {
_planAc = [[QXRoomSettingModel alloc] init];
_planAc.icon = @"room_set_room_plan_ac";
_planAc.name = @"爱豆计划";
_planAc.type = QXRoomSettingTypePlanAc;
}
return _planAc;
}
-(QXRoomSettingModel *)roomTime{ -(QXRoomSettingModel *)roomTime{
if (!_roomTime) { if (!_roomTime) {
_roomTime = [[QXRoomSettingModel alloc] init]; _roomTime = [[QXRoomSettingModel alloc] init];
@@ -807,7 +873,12 @@
} }
return _pickerView; return _pickerView;
} }
-(NSMutableArray *)acArray{
if (!_acArray) {
_acArray = [NSMutableArray array];
}
return _acArray;
}
-(void)setRoomTimeWithStartTime:(NSString*)startTime endTime:(NSString*)endTime{ -(void)setRoomTimeWithStartTime:(NSString*)startTime endTime:(NSString*)endTime{
MJWeakSelf MJWeakSelf
[QXMineNetwork roomSetTimeWithRoomId:self.roomModel.room_info.room_id start_time:startTime end_time:endTime successBlock:^(NSDictionary * _Nonnull dict) { [QXMineNetwork roomSetTimeWithRoomId:self.roomModel.room_info.room_id start_time:startTime end_time:endTime successBlock:^(NSDictionary * _Nonnull dict) {

View File

@@ -10,6 +10,8 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@interface QXTimePraizePoolView : UIView @interface QXTimePraizePoolView : UIView
/// 61 爱豆计划 12 时空之巅
@property (nonatomic,strong)NSString *gift_bag_id;
@property (nonatomic,strong)NSString *roomId; @property (nonatomic,strong)NSString *roomId;
-(void)showInView:(UIView *)view; -(void)showInView:(UIView *)view;
@end @end

View File

@@ -67,7 +67,7 @@
} }
MJWeakSelf MJWeakSelf
NSString *server = QXGlobal.shareGlobal.currentServer; NSString *server = QXGlobal.shareGlobal.currentServer;
[[QXRequset shareInstance] postWithUrl:[NSString stringWithFormat:@"%@%@",server,@"api/BlindBoxTurntable/get_gift_list"] parameters:@{@"gift_bag_id":@"12",@"room_id":self.roomId?self.roomId:@""} needCache:NO success:^(id responseObject) { [[QXRequset shareInstance] postWithUrl:[NSString stringWithFormat:@"%@%@",server,@"api/BlindBoxTurntable/get_gift_list"] parameters:@{@"gift_bag_id":self.gift_bag_id?:@"12",@"room_id":self.roomId?self.roomId:@""} needCache:NO success:^(id responseObject) {
QXGiftActivityModel *model = [QXGiftActivityModel yy_modelWithJSON:responseObject[@"data"]]; QXGiftActivityModel *model = [QXGiftActivityModel yy_modelWithJSON:responseObject[@"data"]];
weakSelf.model = model; weakSelf.model = model;
[self.collectionView reloadData]; [self.collectionView reloadData];

View File

@@ -10,6 +10,8 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@interface QXTimePraizeRecordView : UIView @interface QXTimePraizeRecordView : UIView
/// 61 爱豆计划 12 时空之巅
@property (nonatomic,strong)NSString *gift_bag_id;
@property (nonatomic,strong)NSString *roomId; @property (nonatomic,strong)NSString *roomId;
-(void)showInView:(UIView *)view; -(void)showInView:(UIView *)view;
@end @end

View File

@@ -115,7 +115,7 @@
} }
MJWeakSelf MJWeakSelf
NSDictionary *parameters = @{ NSDictionary *parameters = @{
@"gift_bag_id":@"12", @"gift_bag_id":self.gift_bag_id?:@"12",
@"page":[NSNumber numberWithInteger:self.page] @"page":[NSNumber numberWithInteger:self.page]
}; };
NSString *server = QXGlobal.shareGlobal.currentServer; NSString *server = QXGlobal.shareGlobal.currentServer;

View File

@@ -27,6 +27,7 @@
#import "QGVAPWrapView+download.h" #import "QGVAPWrapView+download.h"
#import "SVGAPlayer/SVGA.h" #import "SVGAPlayer/SVGA.h"
#import "UIViewController+CurViewController.h" #import "UIViewController+CurViewController.h"
#import "QXDiamondViewController.h"
@interface WL_StakeView ()<SVGAPlayerDelegate, ZWTimerDelegate, HWDMP4PlayDelegate, VAPWrapViewDelegate> @interface WL_StakeView ()<SVGAPlayerDelegate, ZWTimerDelegate, HWDMP4PlayDelegate, VAPWrapViewDelegate>
@@ -251,7 +252,7 @@
- (void)fetchData { - (void)fetchData {
NSDictionary *params = @{}; NSDictionary *params = @{};
[[QXRequset shareInstance] postWithUrl:@"/api/monster/get_monster_info" parameters:params needCache:NO success:^(id responseObject) { [[QXRequset shareInstance] getWithUrl:@"/api/monster/get_monster_info" parameters:params needCache:NO success:^(id responseObject) {
WLStakeModel *model = [WLStakeModel mj_objectWithKeyValues:responseObject[@"data"]]; WLStakeModel *model = [WLStakeModel mj_objectWithKeyValues:responseObject[@"data"]];
self.unitPrice = model.open_monster_price; self.unitPrice = model.open_monster_price;
self.remainPrice = model.integral; self.remainPrice = model.integral;
@@ -274,7 +275,7 @@
self.balanceL.text = [NSString stringWithFormat:@"%@", model.integral]; self.balanceL.text = [NSString stringWithFormat:@"%@", model.integral];
[self onUpdateCurrentNumUI:model]; [self onUpdateCurrentNumUI:model];
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) { } fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
[SVProgressHUD showInfoWithStatus:msg];
}]; }];
} }
@@ -353,16 +354,21 @@
// }]; // }];
} }
-(void)finehouseAcNotice:(NSNotification *)noti { -(void)finehouseAcNotice:(NSNotification *)noti {
NSDictionary *dataDict = noti.userInfo; NSDictionary *dict = noti.userInfo;
NSString *code = [NSString stringWithFormat:@"%@",dataDict[@"code"]]; id object = dict[@"msg"];
if ([code isEqualToString:@"3031"]) { if ([object isKindOfClass:[NSDictionary class]]) {
// NSDictionary *dataDict = object;
[self onSocketStart:dataDict[@"msg"]]; NSString *code = [NSString stringWithFormat:@"%@",dataDict[@"code"]];
}else if ([code isEqualToString:@"3032"]){ if ([code isEqualToString:@"3031"]) {
[self onSocketResult:dataDict[@"msg"]]; //
}else if ([code isEqualToString:@"3033"]){ [self onSocketStart:dataDict[@"data"]];
[self onSocketEnd:dataDict[@"msg"]]; }else if ([code isEqualToString:@"3032"]){
[self onSocketResult:dataDict[@"data"]];
}else if ([code isEqualToString:@"3033"]){
[self onSocketEnd:dataDict[@"data"]];
}
} }
} }
- (void)onSocketStart:(NSDictionary *)dataDict { - (void)onSocketStart:(NSDictionary *)dataDict {
[self.failureView remove]; [self.failureView remove];
@@ -401,8 +407,7 @@
} }
- (void)onSocketResult:(NSDictionary *)dataDict { - (void)onSocketResult:(NSDictionary *)dataDict {
NSLog(@"抽奖结果--%@", dataDict); if (self.resultDict == nil) {
if (self.resultDict == nil) {
self.resultDict = dataDict; self.resultDict = dataDict;
WLStakeModel *model = [WLStakeModel mj_objectWithKeyValues:dataDict]; WLStakeModel *model = [WLStakeModel mj_objectWithKeyValues:dataDict];
if (model.is_win == 1) { if (model.is_win == 1) {
@@ -512,6 +517,11 @@
- (IBAction)shouqiBangMethod:(id)sender { - (IBAction)shouqiBangMethod:(id)sender {
[self buttonClickMethod:603]; [self buttonClickMethod:603];
} }
- (IBAction)exchangeAction:(id)sender {
QXDiamondViewController *vc = [[QXDiamondViewController alloc] init];
[self.viewController.navigationController pushViewController:vc animated:YES];
[self removeFromSuperview];
}
// //
- (IBAction)benQiJiangChiMethod:(id)sender { - (IBAction)benQiJiangChiMethod:(id)sender {

View File

@@ -61,13 +61,13 @@
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="天魔城" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="69l-gz-vCl"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="天魔城" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="69l-gz-vCl">
<rect key="frame" x="35.666666666666686" y="100.66666666666669" width="53.666666666666657" height="21.666666666666671"/> <rect key="frame" x="35.666666666666686" y="100.66666666666669" width="53.666666666666657" height="21.666666666666671"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/> <fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" red="1" green="0.73333333333333328" blue="0.28627450980392155" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="1" green="0.96470588235294119" blue="0.80392156862745101" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="x2倍" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xcg-NO-L5B"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="x2倍" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xcg-NO-L5B">
<rect key="frame" x="42" y="10" width="41.333333333333343" height="22"/> <rect key="frame" x="42" y="10" width="41.333333333333343" height="22"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/> <fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" red="1" green="0.73333333333333328" blue="0.28627450980392155" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="1" green="0.96470588235294119" blue="0.80392156862745101" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
</subviews> </subviews>
@@ -128,13 +128,13 @@
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="天悲谷" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MUf-54-p8R"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="天悲谷" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MUf-54-p8R">
<rect key="frame" x="35.666666666666657" y="100.66666666666663" width="53.666666666666657" height="21.666666666666671"/> <rect key="frame" x="35.666666666666657" y="100.66666666666663" width="53.666666666666657" height="21.666666666666671"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/> <fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" red="1" green="0.73333333329999995" blue="0.28627450980000002" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="1" green="0.96470588235294119" blue="0.80392156862745101" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="x2倍" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="8Af-js-2xq"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="x2倍" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="8Af-js-2xq">
<rect key="frame" x="42" y="10" width="41.333333333333343" height="22"/> <rect key="frame" x="42" y="10" width="41.333333333333343" height="22"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/> <fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" red="1" green="0.73333333329999995" blue="0.28627450980000002" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="1" green="0.96470588235294119" blue="0.80392156862745101" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
</subviews> </subviews>
@@ -195,13 +195,13 @@
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="九煞山" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Taf-tR-dzw"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="九煞山" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Taf-tR-dzw">
<rect key="frame" x="35.666666666666671" y="100.66666666666669" width="53.666666666666671" height="21.666666666666671"/> <rect key="frame" x="35.666666666666671" y="100.66666666666669" width="53.666666666666671" height="21.666666666666671"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/> <fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" red="1" green="0.73333333329999995" blue="0.28627450980000002" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="1" green="0.96470588235294119" blue="0.80392156862745101" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="x2倍" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kKm-Dx-FP8"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="x2倍" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kKm-Dx-FP8">
<rect key="frame" x="42" y="10" width="41.333333333333343" height="22"/> <rect key="frame" x="42" y="10" width="41.333333333333343" height="22"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/> <fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" red="1" green="0.73333333329999995" blue="0.28627450980000002" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="1" green="0.96470588235294119" blue="0.80392156862745101" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
</subviews> </subviews>
@@ -262,13 +262,13 @@
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="昊天府" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="W3C-Nj-dZt"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="昊天府" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="W3C-Nj-dZt">
<rect key="frame" x="35.666666666666671" y="100.66666666666669" width="53.666666666666671" height="21.666666666666671"/> <rect key="frame" x="35.666666666666671" y="100.66666666666669" width="53.666666666666671" height="21.666666666666671"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/> <fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" red="1" green="0.73333333329999995" blue="0.28627450980000002" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="1" green="0.96470588235294119" blue="0.80392156862745101" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="x2倍" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rji-41-NNa"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="x2倍" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rji-41-NNa">
<rect key="frame" x="42" y="10" width="41.333333333333343" height="22"/> <rect key="frame" x="42" y="10" width="41.333333333333343" height="22"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/> <fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" red="1" green="0.73333333329999995" blue="0.28627450980000002" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="1" green="0.96470588235294119" blue="0.80392156862745101" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
</subviews> </subviews>
@@ -329,13 +329,13 @@
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="凌云殿" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PNd-ZC-gEw"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="凌云殿" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PNd-ZC-gEw">
<rect key="frame" x="35.666666666666686" y="100.66666666666669" width="53.666666666666657" height="21.666666666666671"/> <rect key="frame" x="35.666666666666686" y="100.66666666666669" width="53.666666666666657" height="21.666666666666671"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/> <fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" red="1" green="0.73333333329999995" blue="0.28627450980000002" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="1" green="0.96470588235294119" blue="0.80392156862745101" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="x2倍" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="U6N-SP-K0c"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="x2倍" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="U6N-SP-K0c">
<rect key="frame" x="42" y="10" width="41.333333333333343" height="22"/> <rect key="frame" x="42" y="10" width="41.333333333333343" height="22"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/> <fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" red="1" green="0.73333333329999995" blue="0.28627450980000002" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="1" green="0.96470588235294119" blue="0.80392156862745101" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
</subviews> </subviews>
@@ -396,13 +396,13 @@
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="半月宫" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bkF-HY-L5Y"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="半月宫" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bkF-HY-L5Y">
<rect key="frame" x="35.666666666666657" y="100.33333333333331" width="53.666666666666657" height="21.666666666666671"/> <rect key="frame" x="35.666666666666657" y="100.33333333333331" width="53.666666666666657" height="21.666666666666671"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/> <fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" red="1" green="0.73333333329999995" blue="0.28627450980000002" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="1" green="0.96470588235294119" blue="0.80392156862745101" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="x2倍" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="HE2-m7-vFc"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="x2倍" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="HE2-m7-vFc">
<rect key="frame" x="42" y="10" width="41.333333333333343" height="22"/> <rect key="frame" x="42" y="10" width="41.333333333333343" height="22"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/> <fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" red="1" green="0.73333333329999995" blue="0.28627450980000002" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="1" green="0.96470588235294119" blue="0.80392156862745101" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
</subviews> </subviews>
@@ -493,16 +493,16 @@
</connections> </connections>
</button> </button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="0xt-sR-reF"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="0xt-sR-reF">
<rect key="frame" x="91.666666666666686" y="539" width="192" height="44"/> <rect key="frame" x="51.666666666666657" y="539" width="192.00000000000003" height="44"/>
<subviews> <subviews>
<imageView clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="stake_yue_bg" translatesAutoresizingMaskIntoConstraints="NO" id="RCe-89-WsH"> <imageView clipsSubviews="YES" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="stake_yue_bg" translatesAutoresizingMaskIntoConstraints="NO" id="RCe-89-WsH">
<rect key="frame" x="0.0" y="0.0" width="192" height="44"/> <rect key="frame" x="0.0" y="0.0" width="192" height="44"/>
</imageView> </imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="stake_coin" translatesAutoresizingMaskIntoConstraints="NO" id="y2T-ph-9aT"> <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_corn" translatesAutoresizingMaskIntoConstraints="NO" id="y2T-ph-9aT">
<rect key="frame" x="77.666666666666671" y="10" width="24" height="24"/> <rect key="frame" x="73.666666666666657" y="8" width="28" height="28"/>
</imageView> </imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="M0u-pd-1xP"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="M0u-pd-1xP">
<rect key="frame" x="103.66666666666667" y="11.999999999999998" width="10.666666666666671" height="20.333333333333329"/> <rect key="frame" x="103.66666666666669" y="11.999999999999998" width="10.666666666666671" height="20.333333333333329"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/> <fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
@@ -536,6 +536,18 @@
<action selector="shuomingMethod:" destination="iN0-l3-epB" eventType="touchUpInside" id="WOM-A7-n3R"/> <action selector="shuomingMethod:" destination="iN0-l3-epB" eventType="touchUpInside" id="WOM-A7-n3R"/>
</connections> </connections>
</button> </button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="nHh-uE-CIX">
<rect key="frame" x="253.66666666666663" y="539" width="74" height="44"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="CIa-dh-9GH"/>
<constraint firstAttribute="width" constant="74" id="SmE-JH-kmg"/>
</constraints>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" backgroundImage="ac_exchange"/>
<connections>
<action selector="exchangeAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="C38-qh-ciw"/>
</connections>
</button>
</subviews> </subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints> <constraints>
@@ -555,13 +567,14 @@
<constraint firstItem="SRU-vE-hJi" firstAttribute="top" secondItem="0zi-7X-Yjd" secondAttribute="top" id="Qp9-dX-Nnx"/> <constraint firstItem="SRU-vE-hJi" firstAttribute="top" secondItem="0zi-7X-Yjd" secondAttribute="top" id="Qp9-dX-Nnx"/>
<constraint firstItem="SRU-vE-hJi" firstAttribute="centerX" secondItem="0zi-7X-Yjd" secondAttribute="centerX" id="Tad-nz-aam"/> <constraint firstItem="SRU-vE-hJi" firstAttribute="centerX" secondItem="0zi-7X-Yjd" secondAttribute="centerX" id="Tad-nz-aam"/>
<constraint firstItem="Eu2-Ht-btg" firstAttribute="top" secondItem="0zi-7X-Yjd" secondAttribute="top" constant="63" id="V9G-aX-xwa"/> <constraint firstItem="Eu2-Ht-btg" firstAttribute="top" secondItem="0zi-7X-Yjd" secondAttribute="top" constant="63" id="V9G-aX-xwa"/>
<constraint firstItem="nHh-uE-CIX" firstAttribute="leading" secondItem="0xt-sR-reF" secondAttribute="trailing" constant="10" id="ZDv-Vu-gk3"/>
<constraint firstAttribute="bottom" secondItem="EMw-vi-h9f" secondAttribute="bottom" id="aO6-Sz-wEJ"/> <constraint firstAttribute="bottom" secondItem="EMw-vi-h9f" secondAttribute="bottom" id="aO6-Sz-wEJ"/>
<constraint firstItem="0xt-sR-reF" firstAttribute="centerX" secondItem="0zi-7X-Yjd" secondAttribute="centerX" id="eD0-ho-BgY"/>
<constraint firstItem="EMw-vi-h9f" firstAttribute="leading" secondItem="0zi-7X-Yjd" secondAttribute="leading" id="gxI-gU-kr6"/> <constraint firstItem="EMw-vi-h9f" firstAttribute="leading" secondItem="0zi-7X-Yjd" secondAttribute="leading" id="gxI-gU-kr6"/>
<constraint firstItem="SRU-vE-hJi" firstAttribute="leading" secondItem="0zi-7X-Yjd" secondAttribute="leading" id="hnZ-A3-IRe"/> <constraint firstItem="SRU-vE-hJi" firstAttribute="leading" secondItem="0zi-7X-Yjd" secondAttribute="leading" id="hnZ-A3-IRe"/>
<constraint firstItem="5D4-ze-F5G" firstAttribute="centerX" secondItem="Eu2-Ht-btg" secondAttribute="centerX" id="i2A-v0-cMS"/> <constraint firstItem="5D4-ze-F5G" firstAttribute="centerX" secondItem="Eu2-Ht-btg" secondAttribute="centerX" id="i2A-v0-cMS"/>
<constraint firstAttribute="bottom" secondItem="0xt-sR-reF" secondAttribute="bottom" constant="25" id="raF-DE-Hse"/> <constraint firstAttribute="bottom" secondItem="0xt-sR-reF" secondAttribute="bottom" constant="25" id="raF-DE-Hse"/>
<constraint firstItem="0xt-sR-reF" firstAttribute="centerX" secondItem="0zi-7X-Yjd" secondAttribute="centerX" id="tjz-hl-qu8"/> <constraint firstItem="0xt-sR-reF" firstAttribute="centerX" secondItem="0zi-7X-Yjd" secondAttribute="centerX" constant="-40" id="tjz-hl-qu8"/>
<constraint firstItem="nHh-uE-CIX" firstAttribute="centerY" secondItem="0xt-sR-reF" secondAttribute="centerY" id="wNe-VX-BiC"/>
</constraints> </constraints>
</view> </view>
</subviews> </subviews>
@@ -620,16 +633,17 @@
</view> </view>
</objects> </objects>
<resources> <resources>
<image name="ac_exchange" width="74" height="44"/>
<image name="stake_cell_sel" width="80" height="26"/> <image name="stake_cell_sel" width="80" height="26"/>
<image name="stake_coin" width="24" height="24"/>
<image name="stake_countdown_bg" width="155" height="54"/> <image name="stake_countdown_bg" width="155" height="54"/>
<image name="stake_name_1" width="187.5" height="187.5"/> <image name="stake_name_1" width="125" height="125"/>
<image name="stake_name_2" width="187.5" height="187.5"/> <image name="stake_name_2" width="125" height="125"/>
<image name="stake_name_3" width="187.5" height="187.5"/> <image name="stake_name_3" width="125" height="125"/>
<image name="stake_name_4" width="187.5" height="187.5"/> <image name="stake_name_4" width="125" height="125"/>
<image name="stake_name_5" width="187.5" height="187.5"/> <image name="stake_name_5" width="125" height="125"/>
<image name="stake_name_6" width="187.5" height="187.5"/> <image name="stake_name_6" width="125" height="125"/>
<image name="stake_yue_bg" width="192" height="44"/> <image name="stake_yue_bg" width="192" height="44"/>
<image name="wallet_corn" width="28" height="28"/>
<image name="zhuan_stake_bg" width="375" height="608"/> <image name="zhuan_stake_bg" width="375" height="608"/>
<image name="zhuan_stake_pool" width="50" height="50"/> <image name="zhuan_stake_pool" width="50" height="50"/>
<image name="zhuan_stake_rank" width="50" height="50"/> <image name="zhuan_stake_rank" width="50" height="50"/>

View File

@@ -0,0 +1,20 @@
//
// JFIdolProjectView.h
// VoiceChat
//
// Created by feng on 2020/9/6.
// Copyright © 2020 NoCardData. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface JFIdolProjectView : UIView
@property (nonatomic,strong)NSString*roomId;
- (void)show;
+ (void)show;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,345 @@
//
// JFIdolProjectView.m
// VoiceChat
//
// Created by feng on 2020/9/6.
// Copyright © 2020 NoCardData. All rights reserved.
//
#import "JFIdolProjectView.h"
#import "SVGAParser.h"
#import "SVGAImageView.h"
#import "SVGAVideoEntity.h"
#import "JFIdolProjectResultView.h"
#import "QXTimePraizeRuleView.h"
#import "QXTimePraizePoolView.h"
#import "QXTimePraizeRecordView.h"
@interface JFIdolProjectView () <SVGAPlayerDelegate>
@property (weak, nonatomic) IBOutlet UIView *bgView;
@property (weak, nonatomic) IBOutlet SVGAImageView *svgaBoxView;
@property (weak, nonatomic) IBOutlet SVGAImageView *svgaOpenBoxView;
@property (weak, nonatomic) IBOutlet UIButton *openBtn1;
@property (weak, nonatomic) IBOutlet UIButton *openBtn2;
@property (weak, nonatomic) IBOutlet UIButton *openBtn3;
@property (weak, nonatomic) IBOutlet UIButton *giftAnimationBtn;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottom_contentView;
@property (weak, nonatomic) IBOutlet UILabel *goldBalanceLabel;
@property (nonatomic,assign) BOOL isShowingSvga;
@property (nonatomic,assign) BOOL isRequesting;
@property (weak, nonatomic) IBOutlet UIButton *onePriceBtn;
@property (weak, nonatomic) IBOutlet UIButton *tenPriceBtn;
@property (weak, nonatomic) IBOutlet UIButton *twentyPriceBtn;
@property (nonatomic, strong) NSArray<QXDrawGiftModel *> *models;
@property (nonatomic, strong) NSMutableArray<QXDrawGiftModel *> *allGiftArray;
@property (assign,nonatomic) NSInteger againType;
@property (nonatomic, strong)QXTimePraizeRuleView *ruleView;
@property (nonatomic, strong)QXTimePraizePoolView *poolView;
@property (nonatomic, strong)QXTimePraizeRecordView *recordView;
@property (nonatomic, strong)QXGiftActivityModel *model;
@end
@implementation JFIdolProjectView
- (instancetype)init
{
self = [super init];
if (self) {
self = [[NSBundle mainBundle] loadNibNamed:@"JFIdolProjectView" owner:self options:nil][0];
self.frame = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
self.giftAnimationBtn.selected = ![[NSUserDefaults standardUserDefaults] boolForKey:@"CloseIdolBoxAnimation"];
[self addNotification];
self.svgaOpenBoxView.delegate = self;
self.bgView.alpha = 0;
self.bottom_contentView.constant = -(iPhoneX ? 380 : 360);
[self layoutIfNeeded];
}
return self;
}
-(void)show{
[self getGiftList];
[self getMyWallet];
[[UIApplication sharedApplication].keyWindow addSubview:self];
[UIView animateWithDuration:0.28 animations:^{
self.bgView.alpha = 1;
self.bottom_contentView.constant = (iPhoneX ? 0 : -20);
[self layoutIfNeeded];
} completion:^(BOOL finished) {
}];
}
+ (void)show
{
JFIdolProjectView *view = [[NSBundle mainBundle] loadNibNamed:@"JFIdolProjectView" owner:self options:nil][0];
view.frame = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
[[UIApplication sharedApplication].keyWindow addSubview:view];
view.giftAnimationBtn.selected = ![[NSUserDefaults standardUserDefaults] boolForKey:@"CloseIdolBoxAnimation"];
[view addNotification];
view.svgaOpenBoxView.delegate = view;
view.bgView.alpha = 0;
view.bottom_contentView.constant = -(iPhoneX ? 380 : 360);
[view layoutIfNeeded];
[UIView animateWithDuration:0.28 animations:^{
view.bgView.alpha = 1;
view.bottom_contentView.constant = (iPhoneX ? 0 : -20);
[view layoutIfNeeded];
} completion:^(BOOL finished) {
}];
}
- (void)dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
}
- (void)addNotification
{
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onClickCloseBtn:) name:@"CloseRoomDialogView" object:nil];
}
#pragma mark - Event
///
- (IBAction)onClickCloseBtn:(id)sender
{
[UIView animateWithDuration:0.28 animations:^{
self.bgView.alpha = 0;
self.bottom_contentView.constant = -(iPhoneX ? 380 : 360);
[self layoutIfNeeded];
} completion:^(BOOL finished) {
[self removeFromSuperview];
}];
}
/// 1
- (IBAction)onClickOpenBtn1:(id)sender
{
[self openWishAction:1];
}
/// 10
- (IBAction)onClickOpenBtn2:(id)sender
{
[self openWishAction:10];
}
/// 20
- (IBAction)onClickOpenBtn3:(id)sender
{
[self openWishAction:20];
}
///
- (IBAction)onTapEnergyView:(id)sender {
[self onClickCloseBtn:nil];
}
///
- (IBAction)onClickRankBtn:(id)sender
{
self.ruleView.rule = self.model.rule_url;
[self.ruleView showInView:self];
}
///
- (IBAction)onClickGiftBtn:(id)sender
{
self.poolView.roomId = self.roomId;
self.poolView.gift_bag_id = @"61";
[self.poolView showInView:self];
}
///
- (IBAction)onClickRecordBtn:(id)sender
{
self.recordView.roomId = self.roomId;
self.recordView.gift_bag_id = @"61";
[self.recordView showInView:self];
}
///
- (IBAction)onClickAnimationSwitchBtn:(id)sender
{
self.giftAnimationBtn.selected = !self.giftAnimationBtn.selected;
[[NSUserDefaults standardUserDefaults] setBool:!self.giftAnimationBtn.selected forKey:@"CloseIdolBoxAnimation"];
}
- (void)setWishBtnUserinterface:(BOOL)canTap
{
self.openBtn1.userInteractionEnabled = canTap;
self.openBtn2.userInteractionEnabled = canTap;
self.openBtn3.userInteractionEnabled = canTap;
}
#pragma mark - Svga
- (void)startOpenBoxAnimation
{
self.isShowingSvga = YES;
[self.svgaOpenBoxView stopAnimation];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.25 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
self.svgaBoxView.alpha = 0;
});
self.svgaOpenBoxView.imageName = @"prize_call_open_box";
}
- (void)svgaPlayerDidFinishedAnimation:(SVGAPlayer *)player
{
self.isShowingSvga = NO;
self.svgaBoxView.alpha = 1;
[self checkHadShowResult];
}
#pragma mark - Network
- (void)openWishAction:(NSInteger)type
{
if (self.isRequesting) {
return;
}
self.isShowingSvga = YES;
self.isRequesting = YES;
if (self.giftAnimationBtn.selected) {
[self startOpenBoxAnimation];
}
[self setWishBtnUserinterface:NO];
__weak typeof(self) weakSelf = self;
// [JFHttpRequestHelper wish:type success:^(id data) {
//
// weakSelf.againType = type;
// weakSelf.isRequesting = NO;
// weakSelf.models = [data copy];
//
// if (!weakSelf.giftAnimationBtn.selected) {
// [weakSelf checkHadShowResult];
// }
//
// } failure:^(NSNumber *code, NSString *msg) {
// weakSelf.isRequesting = NO;
// [weakSelf setWishBtnUserinterface:YES];
// }];
[self drawGiftWithNum:[NSString stringWithFormat:@"%ld",type]];
}
-(void)drawGiftWithNum:(NSString*)num{
NSDictionary *parameters = @{
@"gift_bag_id":@"61",
@"room_id":self.roomId,
@"num":num,
};
MJWeakSelf
NSString *server = QXGlobal.shareGlobal.currentServer;
[[QXRequset shareInstance] postWithUrl:[NSString stringWithFormat:@"%@%@",server,@"api/BlindBoxTurntable/draw_gift"] parameters:parameters needCache:NO success:^(id responseObject) {
weakSelf.isRequesting = NO;
weakSelf.againType = num.integerValue;
QXDrawGiftResultModel *model = [QXDrawGiftResultModel yy_modelWithJSON:responseObject[@"data"]];
weakSelf.models = model.reslut_list;
[weakSelf getMyWallet];
if (!weakSelf.giftAnimationBtn.selected) {
[weakSelf checkHadShowResult];
}
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
weakSelf.isRequesting = NO;
[weakSelf setWishBtnUserinterface:YES];
showToast(msg);
}];
}
-(void)getGiftList{
if (![self.roomId isExist]) {
return;
}
// if (self.model) {
// return;
// }
MJWeakSelf
NSString *server = QXGlobal.shareGlobal.currentServer;
[[QXRequset shareInstance] postWithUrl:[NSString stringWithFormat:@"%@%@",server,@"api/BlindBoxTurntable/get_gift_list"] parameters:@{@"gift_bag_id":@"61",@"room_id":self.roomId?self.roomId:@""} needCache:NO success:^(id responseObject) {
QXGiftActivityModel *model = [QXGiftActivityModel yy_modelWithJSON:responseObject[@"data"]];
weakSelf.model = model;
[weakSelf.onePriceBtn setTitle:[NSString stringWithFormat:@"%@币",model.box_price] forState:(UIControlStateNormal)];
[weakSelf.tenPriceBtn setTitle:[NSString stringWithFormat:@"%ld币",model.box_price.integerValue*10] forState:(UIControlStateNormal)];
[weakSelf.twentyPriceBtn setTitle:[NSString stringWithFormat:@"%ld币",model.box_price.integerValue*20] forState:(UIControlStateNormal)];
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
}];
}
-(void)getMyWallet{
MJWeakSelf
[[QXRequset shareInstance] getWithUrl:QXWallet parameters:@{@"token":[QXGlobal shareGlobal].loginModel.token?[QXGlobal shareGlobal].loginModel.token:@""} needCache:NO success:^(id responseObject) {
double coin = [responseObject[@"data"][@"coin"] doubleValue];
NSString *coinStr = [NSString stringWithFormat:@"%.2f",coin];
weakSelf.goldBalanceLabel.text = coinStr;
// [weakSelf.coinBtn setTitle:[NSString stringWithFormat:@" %@",coinStr] forState:(UIControlStateNormal)];
// [weakSelf.coinBtn sizeToFit];
// CGFloat allWidth = weakSelf.coinBtn.width + self.exchangeBtn.width+15;
// weakSelf.coinView.width = allWidth;
// weakSelf.coinView.x = (weakSelf.bgView.width-allWidth)/2;
// weakSelf.coinBtn.frame = CGRectMake(10, 0, weakSelf.coinBtn.width, weakSelf.coinView.height);
// weakSelf.exchangeBtn.frame = CGRectMake(allWidth-weakSelf.exchangeBtn.width, 0, weakSelf.exchangeBtn.width, weakSelf.coinView.height);
// weakSelf.coin = coin;
// [weakSelf configBtnStatus];
} fail:^(NSError *error, NSString *msg, NSURLSessionDataTask *task) {
}];
}
///
- (void)checkHadShowResult
{
if (self.isRequesting) {
return;
}
if (self.models) {
__weak typeof(self) weakSelf = self;
[JFIdolProjectResultView showWish:self.models roomId:self.roomId againType:self.againType buyBlock:^(NSInteger type) {
[weakSelf openWishAction:type];
} refreshWalletBlock:^{
[weakSelf getMyWallet];
}];
self.models = nil;
[self setWishBtnUserinterface:YES];
}
}
-(NSMutableArray<QXDrawGiftModel *> *)allGiftArray{
if (!_allGiftArray) {
_allGiftArray = [NSMutableArray array];
}
return _allGiftArray;
}
-(QXTimePraizeRuleView *)ruleView{
if (!_ruleView) {
_ruleView = [[QXTimePraizeRuleView alloc] init];
}
return _ruleView;
}
-(QXTimePraizePoolView *)poolView{
if (!_poolView) {
_poolView = [[QXTimePraizePoolView alloc] init];
}
return _poolView;
}
-(QXTimePraizeRecordView *)recordView{
if (!_recordView) {
_recordView = [[QXTimePraizeRecordView alloc] init];
}
return _recordView;
}
@end

View File

@@ -0,0 +1,270 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="4KG-MG-1F6" customClass="JFIdolProjectView">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="nvJ-7U-2hu">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.5" colorSpace="custom" customColorSpace="calibratedRGB"/>
<gestureRecognizers/>
<connections>
<outletCollection property="gestureRecognizers" destination="B6u-lg-3BM" appends="YES" id="xTT-gh-a7v"/>
</connections>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="qGT-mm-y8V">
<rect key="frame" x="0.0" y="516" width="414" height="380"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="room_prize_call_bg" translatesAutoresizingMaskIntoConstraints="NO" id="Emv-73-WUK">
<rect key="frame" x="0.0" y="0.0" width="414" height="380"/>
</imageView>
<view userInteractionEnabled="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Bbd-Gb-6kx" customClass="SVGAImageView">
<rect key="frame" x="0.0" y="0.0" width="414" height="281.5"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" secondItem="Bbd-Gb-6kx" secondAttribute="height" multiplier="750:510" id="vIQ-Fj-LeR"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="loops">
<integer key="value" value="0"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="string" keyPath="imageName" value="prize_call_box_default"/>
<userDefinedRuntimeAttribute type="boolean" keyPath="autoPlay" value="YES"/>
</userDefinedRuntimeAttributes>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="3fh-jo-tKx" customClass="SVGAImageView">
<rect key="frame" x="0.0" y="0.0" width="414" height="281.5"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="autoPlay" value="YES"/>
<userDefinedRuntimeAttribute type="number" keyPath="loops">
<integer key="value" value="1"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="boolean" keyPath="clearsAfterStop" value="YES"/>
</userDefinedRuntimeAttributes>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="53n-Zt-Npj">
<rect key="frame" x="380" y="15" width="24" height="44"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="uAf-RW-ppj"/>
</constraints>
<state key="normal" image="room_prize_call_close"/>
<connections>
<action selector="onClickCloseBtn:" destination="4KG-MG-1F6" eventType="touchUpInside" id="qjW-Dc-MbA"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dIS-dP-qaY">
<rect key="frame" x="292" y="75" width="77" height="33"/>
<state key="normal" image="room_prize_call_box_open_1"/>
<connections>
<action selector="onClickOpenBtn1:" destination="4KG-MG-1F6" eventType="touchUpInside" id="2dg-7F-g9n"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7EQ-lP-Mmp">
<rect key="frame" x="294" y="122" width="93" height="34"/>
<state key="normal" image="room_prize_call_box_open_10"/>
<connections>
<action selector="onClickOpenBtn2:" destination="4KG-MG-1F6" eventType="touchUpInside" id="QTN-2A-cqc"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="sEb-Tl-9Ao">
<rect key="frame" x="267" y="170" width="112" height="35"/>
<state key="normal" image="room_prize_call_box_open_20"/>
<connections>
<action selector="onClickOpenBtn3:" destination="4KG-MG-1F6" eventType="touchUpInside" id="V70-96-x1v"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7M8-bY-hgU">
<rect key="frame" x="49" y="283" width="58" height="23"/>
<state key="normal" image="room_prize_call_box_rank"/>
<connections>
<action selector="onClickRankBtn:" destination="4KG-MG-1F6" eventType="touchUpInside" id="aBH-BH-Boi"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="qWb-BD-e5z">
<rect key="frame" x="122" y="283" width="56" height="23"/>
<state key="normal" image="room_prize_call_box_gift"/>
<connections>
<action selector="onClickGiftBtn:" destination="4KG-MG-1F6" eventType="touchUpInside" id="bZ3-xB-Pdo"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="2MI-Yq-wpQ">
<rect key="frame" x="193" y="282.5" width="58" height="24"/>
<state key="normal" image="room_prize_call_box_record"/>
<connections>
<action selector="onClickRecordBtn:" destination="4KG-MG-1F6" eventType="touchUpInside" id="RhY-3z-mxZ"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" selected="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Ex6-Tq-VUH">
<rect key="frame" x="266" y="282.5" width="100" height="24"/>
<state key="normal" image="room_prize_call_box_gift_anim_off"/>
<state key="selected" image="room_prize_call_box_gift_anim_on"/>
<connections>
<action selector="onClickAnimationSwitchBtn:" destination="4KG-MG-1F6" eventType="touchUpInside" id="CON-Eu-oQZ"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="S6K-aK-iAw">
<rect key="frame" x="313.5" y="225" width="54.5" height="28"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="mine_recharge_corn" translatesAutoresizingMaskIntoConstraints="NO" id="EsN-eZ-30y">
<rect key="frame" x="10" y="4" width="20" height="20"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oMI-em-ra6">
<rect key="frame" x="35" y="3.5" width="9.5" height="21"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" id="oEz-hS-fPl"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Semibold" family="PingFang SC" pointSize="15"/>
<color key="textColor" systemColor="systemYellowColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.38823529410000002" green="0.42745098040000001" blue="1" alpha="0.29999999999999999" colorSpace="custom" customColorSpace="sRGB"/>
<gestureRecognizers/>
<constraints>
<constraint firstItem="oMI-em-ra6" firstAttribute="centerY" secondItem="S6K-aK-iAw" secondAttribute="centerY" id="5Zh-EP-tu5"/>
<constraint firstItem="EsN-eZ-30y" firstAttribute="centerY" secondItem="S6K-aK-iAw" secondAttribute="centerY" id="JWD-ss-nco"/>
<constraint firstAttribute="height" constant="28" id="Pef-Hi-nHU"/>
<constraint firstItem="EsN-eZ-30y" firstAttribute="leading" secondItem="S6K-aK-iAw" secondAttribute="leading" constant="10" id="TFh-3U-ZLw"/>
<constraint firstAttribute="trailing" secondItem="oMI-em-ra6" secondAttribute="trailing" constant="10" id="Wac-fr-7bF"/>
<constraint firstItem="oMI-em-ra6" firstAttribute="leading" secondItem="EsN-eZ-30y" secondAttribute="trailing" constant="5" id="aGc-zE-lGQ"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="14"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="cS0-Ch-hVt">
<rect key="frame" x="319.5" y="93" width="22" height="12"/>
<fontDescription key="fontDescription" type="system" pointSize="10"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="10" image="mine_live_gift_corn">
<color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
</state>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="xyB-RC-OPp">
<rect key="frame" x="329.5" y="141" width="22" height="12"/>
<fontDescription key="fontDescription" type="system" pointSize="10"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="10" image="mine_live_gift_corn">
<color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
</state>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="jV4-Nm-ixq">
<rect key="frame" x="312" y="190" width="22" height="12"/>
<fontDescription key="fontDescription" type="system" pointSize="10"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="10" image="mine_live_gift_corn">
<color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
</state>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="3fh-jo-tKx" firstAttribute="trailing" secondItem="Bbd-Gb-6kx" secondAttribute="trailing" id="0gX-Yh-32j"/>
<constraint firstItem="xyB-RC-OPp" firstAttribute="centerX" secondItem="7EQ-lP-Mmp" secondAttribute="centerX" id="27W-mc-8mk"/>
<constraint firstItem="cS0-Ch-hVt" firstAttribute="bottom" secondItem="dIS-dP-qaY" secondAttribute="bottom" constant="-3" id="31C-FO-qpn"/>
<constraint firstItem="Bbd-Gb-6kx" firstAttribute="top" secondItem="qGT-mm-y8V" secondAttribute="top" id="3Kr-Df-w8x"/>
<constraint firstItem="S6K-aK-iAw" firstAttribute="top" secondItem="sEb-Tl-9Ao" secondAttribute="bottom" constant="20" id="5a2-uG-3b6"/>
<constraint firstItem="2MI-Yq-wpQ" firstAttribute="leading" secondItem="qWb-BD-e5z" secondAttribute="trailing" constant="15" id="88g-Iz-C5r"/>
<constraint firstItem="7M8-bY-hgU" firstAttribute="top" secondItem="S6K-aK-iAw" secondAttribute="bottom" constant="30" id="8FJ-zG-jZr"/>
<constraint firstItem="qWb-BD-e5z" firstAttribute="centerY" secondItem="2MI-Yq-wpQ" secondAttribute="centerY" id="Cl0-c2-lHo"/>
<constraint firstAttribute="trailing" secondItem="dIS-dP-qaY" secondAttribute="trailing" constant="45" id="DjB-1W-iqd"/>
<constraint firstItem="Ex6-Tq-VUH" firstAttribute="centerY" secondItem="2MI-Yq-wpQ" secondAttribute="centerY" id="Kzn-Ga-ANl"/>
<constraint firstAttribute="trailing" secondItem="Emv-73-WUK" secondAttribute="trailing" id="M3b-h9-6l8"/>
<constraint firstItem="2MI-Yq-wpQ" firstAttribute="centerX" secondItem="qGT-mm-y8V" secondAttribute="centerX" constant="15" id="MDx-IN-dCL"/>
<constraint firstItem="3fh-jo-tKx" firstAttribute="top" secondItem="Bbd-Gb-6kx" secondAttribute="top" id="Org-Nx-Qck"/>
<constraint firstItem="xyB-RC-OPp" firstAttribute="bottom" secondItem="7EQ-lP-Mmp" secondAttribute="bottom" constant="-3" id="PwA-69-hMm"/>
<constraint firstItem="53n-Zt-Npj" firstAttribute="top" secondItem="qGT-mm-y8V" secondAttribute="top" constant="15" id="QLr-om-MsK"/>
<constraint firstItem="sEb-Tl-9Ao" firstAttribute="top" secondItem="7EQ-lP-Mmp" secondAttribute="bottom" constant="14" id="RfN-WM-VwK"/>
<constraint firstItem="7M8-bY-hgU" firstAttribute="centerY" secondItem="2MI-Yq-wpQ" secondAttribute="centerY" id="ULO-ow-ORK"/>
<constraint firstItem="Emv-73-WUK" firstAttribute="top" secondItem="qGT-mm-y8V" secondAttribute="top" id="Xlf-Q8-37O"/>
<constraint firstItem="Emv-73-WUK" firstAttribute="leading" secondItem="qGT-mm-y8V" secondAttribute="leading" id="a3Y-Zm-lnN"/>
<constraint firstItem="cS0-Ch-hVt" firstAttribute="centerX" secondItem="dIS-dP-qaY" secondAttribute="centerX" id="bLQ-wJ-ocO"/>
<constraint firstAttribute="trailing" secondItem="7EQ-lP-Mmp" secondAttribute="trailing" constant="27" id="cah-WG-TBf"/>
<constraint firstItem="3fh-jo-tKx" firstAttribute="leading" secondItem="Bbd-Gb-6kx" secondAttribute="leading" id="cwH-Q3-fGN"/>
<constraint firstAttribute="bottom" secondItem="Emv-73-WUK" secondAttribute="bottom" id="fbY-0f-bnt"/>
<constraint firstItem="Ex6-Tq-VUH" firstAttribute="leading" secondItem="2MI-Yq-wpQ" secondAttribute="trailing" constant="15" id="fkk-2U-FdK"/>
<constraint firstAttribute="trailing" secondItem="sEb-Tl-9Ao" secondAttribute="trailing" constant="35" id="gTv-As-s0O"/>
<constraint firstItem="Bbd-Gb-6kx" firstAttribute="leading" secondItem="qGT-mm-y8V" secondAttribute="leading" id="jfi-bZ-XPF"/>
<constraint firstItem="dIS-dP-qaY" firstAttribute="top" secondItem="qGT-mm-y8V" secondAttribute="top" constant="75" id="k3p-bB-xkW"/>
<constraint firstItem="3fh-jo-tKx" firstAttribute="bottom" secondItem="Bbd-Gb-6kx" secondAttribute="bottom" id="ky8-MY-Ofz"/>
<constraint firstAttribute="trailing" secondItem="53n-Zt-Npj" secondAttribute="trailing" constant="10" id="lTQ-PT-mZe"/>
<constraint firstItem="qWb-BD-e5z" firstAttribute="leading" secondItem="7M8-bY-hgU" secondAttribute="trailing" constant="15" id="ucV-UA-Iro"/>
<constraint firstAttribute="height" constant="380" id="uvY-Sl-acU"/>
<constraint firstAttribute="trailing" secondItem="Bbd-Gb-6kx" secondAttribute="trailing" id="w4E-fe-gqQ"/>
<constraint firstItem="7EQ-lP-Mmp" firstAttribute="top" secondItem="dIS-dP-qaY" secondAttribute="bottom" constant="14" id="wfx-8c-hD2"/>
<constraint firstItem="jV4-Nm-ixq" firstAttribute="bottom" secondItem="sEb-Tl-9Ao" secondAttribute="bottom" constant="-3" id="xmt-Nx-oZs"/>
<constraint firstItem="S6K-aK-iAw" firstAttribute="centerX" secondItem="7EQ-lP-Mmp" secondAttribute="centerX" id="yzx-UE-wk2"/>
<constraint firstItem="jV4-Nm-ixq" firstAttribute="centerX" secondItem="sEb-Tl-9Ao" secondAttribute="centerX" id="zZR-Gv-l4Y"/>
</constraints>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="cBQ-2a-keM"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="nvJ-7U-2hu" firstAttribute="top" secondItem="4KG-MG-1F6" secondAttribute="top" id="3Nc-JM-tTC"/>
<constraint firstAttribute="bottom" secondItem="nvJ-7U-2hu" secondAttribute="bottom" id="56C-50-gAW"/>
<constraint firstItem="qGT-mm-y8V" firstAttribute="leading" secondItem="cBQ-2a-keM" secondAttribute="leading" id="DNP-ah-V5x"/>
<constraint firstAttribute="bottom" secondItem="qGT-mm-y8V" secondAttribute="bottom" id="Ecl-5g-4hX"/>
<constraint firstItem="cBQ-2a-keM" firstAttribute="trailing" secondItem="qGT-mm-y8V" secondAttribute="trailing" id="LUT-Sg-dC9"/>
<constraint firstItem="cBQ-2a-keM" firstAttribute="trailing" secondItem="nvJ-7U-2hu" secondAttribute="trailing" id="aCw-QG-8w4"/>
<constraint firstItem="nvJ-7U-2hu" firstAttribute="leading" secondItem="cBQ-2a-keM" secondAttribute="leading" id="tIv-n6-KmH"/>
</constraints>
<connections>
<outlet property="bgView" destination="nvJ-7U-2hu" id="Zp3-H0-1Rx"/>
<outlet property="bottom_contentView" destination="Ecl-5g-4hX" id="OMb-gW-UAW"/>
<outlet property="giftAnimationBtn" destination="Ex6-Tq-VUH" id="M0a-sj-Sxb"/>
<outlet property="goldBalanceLabel" destination="oMI-em-ra6" id="MHe-Bq-e3I"/>
<outlet property="onePriceBtn" destination="cS0-Ch-hVt" id="Qbu-1N-A7T"/>
<outlet property="openBtn1" destination="dIS-dP-qaY" id="kvz-CL-DYQ"/>
<outlet property="openBtn2" destination="7EQ-lP-Mmp" id="PtI-CJ-LfQ"/>
<outlet property="openBtn3" destination="sEb-Tl-9Ao" id="pHx-KJ-YNa"/>
<outlet property="svgaBoxView" destination="Bbd-Gb-6kx" id="XyU-Da-GPi"/>
<outlet property="svgaOpenBoxView" destination="3fh-jo-tKx" id="fZB-qJ-HSQ"/>
<outlet property="tenPriceBtn" destination="xyB-RC-OPp" id="tXd-qg-nD2"/>
<outlet property="twentyPriceBtn" destination="jV4-Nm-ixq" id="bQM-PV-XfN"/>
</connections>
<point key="canvasLocation" x="-97.101449275362327" y="136.60714285714286"/>
</view>
<tapGestureRecognizer id="B6u-lg-3BM">
<connections>
<action selector="onClickCloseBtn:" destination="4KG-MG-1F6" id="MiT-hd-LFN"/>
</connections>
</tapGestureRecognizer>
<tapGestureRecognizer id="qcj-da-2gH">
<connections>
<action selector="onTapEnergyView:" destination="4KG-MG-1F6" id="IF9-6L-xZT"/>
</connections>
</tapGestureRecognizer>
</objects>
<resources>
<image name="mine_live_gift_corn" width="10" height="10"/>
<image name="mine_recharge_corn" width="20" height="20"/>
<image name="room_prize_call_bg" width="375" height="344"/>
<image name="room_prize_call_box_gift" width="56" height="23"/>
<image name="room_prize_call_box_gift_anim_off" width="100" height="24"/>
<image name="room_prize_call_box_gift_anim_on" width="100" height="24"/>
<image name="room_prize_call_box_open_1" width="77" height="33"/>
<image name="room_prize_call_box_open_10" width="93" height="34"/>
<image name="room_prize_call_box_open_20" width="112" height="35"/>
<image name="room_prize_call_box_rank" width="58" height="23"/>
<image name="room_prize_call_box_record" width="58" height="24"/>
<image name="room_prize_call_close" width="24" height="24"/>
<systemColor name="systemYellowColor">
<color red="1" green="0.80000000000000004" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
</resources>
</document>

Some files were not shown because too many files have changed in this diff Show More