Files
midi_ios/QXLive/HomePage(声播)/View/房间/红包/QXRedBagDrawView.h
2025-10-12 15:48:35 +08:00

49 lines
1.3 KiB
Objective-C

//
// QXRedBagDrawView.h
// QXLive
//
// Created by 启星 on 2025/10/11.
//
#import <UIKit/UIKit.h>
#import "QXRedPacketModel.h"
typedef NS_ENUM(NSInteger) {
/// 打开红包
QXRedBagDrawTypeOpen = 0,
/// 倒计时
QXRedBagDrawTypeTimeDown,
/// 收藏房间
QXRedBagDrawTypeCollect,
/// 手慢了被领完了
QXRedBagDrawTypeFinished,
/// 口令红包发送评论
QXRedBagDrawTypePwdSend,
/// 口令红包倒计时
QXRedBagDrawTypePwdTimeDown,
/// 口令红包收藏房间
QXRedBagDrawTypePwdCollect,
/// 需要完成两个任务
QXRedBagDrawTypePwdAllTask,
}QXRedBagDrawType;
NS_ASSUME_NONNULL_BEGIN
@interface QXRedBagDrawView : UIView
@property (nonatomic,strong)QXRedPacketModel *redpacketModel;
@property (nonatomic,assign)QXRedBagDrawType type;
@property (nonatomic,copy)void(^toInputPwdBlock)(NSString *password,QXRedPacketModel*redpacketModel);
-(void)showInView:(UIView*)view;
-(void)hide;
@end
@interface QXRedBagTimeDownView : UIView
@property (nonatomic,strong)UIImageView *bgImageView;
@property (nonatomic,strong)UILabel *timeLabel;
@property (nonatomic,strong)UIButton *btn;
@property (nonatomic,assign)QXRedBagDrawType type;
@property (nonatomic,assign)int time;
@property (nonatomic,copy)void(^btnBlcok)(QXRedBagDrawType type);
@end
NS_ASSUME_NONNULL_END