Files
featherVoice/QXLive/活动/天空之境/QXSkyPraizeView.h
2025-10-20 09:43:10 +08:00

68 lines
1.8 KiB
Objective-C

//
// QXSkyPraizeView.h
// QXLive 天空之镜
//
// Created by 启星 on 2025/8/16.
//
#import <UIKit/UIKit.h>
#import "QXGiftActivityModel.h"
typedef NS_ENUM(NSInteger) {
/// 抽一次
QXSkyDrawBtnTypeOne = 1,
/// 抽10次
QXSkyDrawBtnTypeTen = 6,
/// 抽100次
QXSkyDrawBtnTypeHundred = 9,
}QXSkyDrawBtnType;
NS_ASSUME_NONNULL_BEGIN
@interface QXSkyPraizeView : UIView
@property (nonatomic,strong)NSString *roomId;
@property (nonatomic,strong)QXGiftModel *giftModel;
@property (nonatomic,strong)QXGiftActivityModel *model;
@property (nonatomic,strong)NSString* userIds;
@property (nonatomic,strong)NSString* heartId;
@property (nonatomic,strong)NSString* auctionId;
@property (nonatomic,copy)void(^startBlock)(void);
-(void)showInView:(UIView *)view;
-(void)hide;
-(void)updateProgress:(QXXLHModel*)model;
-(void)destroyViews;
@end
@interface QXSkyPraizeSubView :UIView
@property (nonatomic,strong)UIView *bgView;
@property (nonatomic,strong)UIImageView *bgImageView;
@property (nonatomic,strong)UIImageView *giftImageView;
@property (nonatomic,strong)UILabel *titleLabel;
@property (nonatomic,strong)UIView *resultView;
@property (nonatomic,strong)UIImageView *resultBgImageView;
@property (nonatomic,strong)UILabel *countLabel;
@property (nonatomic,strong)UIButton *giftCoin;
@property (nonatomic,strong)QXDrawGiftModel *giftModel;
@property (nonatomic,assign)BOOL isSelected;
@property (nonatomic,strong)NSString *count;
- (void)startPulseAnimationWithLayer;
// 停止动画
- (void)stopPulseAnimationWithLayer;
@end
@interface QXSkyDrawBtn : UIControl
@property (nonatomic,strong)UIImageView *bgImageView;
@property (nonatomic,strong)UILabel *titleLabel;
@property (nonatomic,strong)UIButton *giftCoin;
@property (nonatomic,assign)BOOL isDisable;
@property (nonatomic,assign)QXSkyDrawBtnType btnType;
@end
NS_ASSUME_NONNULL_END