68 lines
1.8 KiB
Objective-C
68 lines
1.8 KiB
Objective-C
//
|
|
// QXAgePraizeView.h
|
|
// QXLive 天空之镜
|
|
//
|
|
// Created by 启星 on 2025/8/16.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import "QXGiftActivityModel.h"
|
|
typedef NS_ENUM(NSInteger) {
|
|
/// 抽一次
|
|
QXAgeDrawBtnTypeOne = 1,
|
|
/// 抽10次
|
|
QXAgeDrawBtnTypeTen = 6,
|
|
/// 抽100次
|
|
QXAgeDrawBtnTypeHundred = 9,
|
|
}QXAgeDrawBtnType;
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface QXAgePraizeView : 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 QXAgePraizeSubView :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 QXAgeDrawBtn : UIControl
|
|
@property (nonatomic,strong)UIImageView *bgImageView;
|
|
@property (nonatomic,strong)UILabel *titleLabel;
|
|
@property (nonatomic,strong)UIButton *giftCoin;
|
|
@property (nonatomic,assign)BOOL isDisable;
|
|
@property (nonatomic,assign)QXAgeDrawBtnType btnType;
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|