// // QXRedBagDrawView.h // QXLive // // Created by 启星 on 2025/10/11. // #import #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