// // QXMeetActivityView.h // QXLive // // Created by 启星 on 2025/8/29. // #import #import "QXTimer.h" #import "GKCycleScrollView.h" #import "QXMeetActivityDriftView.h" NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSInteger) { /// 抽一次 QXMeetDrawBtnTypeOne = 1, /// 抽10次 QXMeetDrawBtnTypeTen = 10, /// 抽100次 QXMeetDrawBtnTypeHundred = 100, }QXMeetDrawBtnType; @protocol QXMeetActivityViewDelegate @optional -(void)timeDownDidFinished; -(void)timeDownStartAnimation; -(void)timeDownStopAnimation; -(void)timeDownUpdateAnimationWithTime:(NSInteger)time; @end @interface QXMeetActivityView : UIView -(void)showInView:(UIView *)view; @property (nonatomic,strong)NSString *roomId; @property (nonatomic,strong)QXGiftModel *giftModel; -(void)updateUserAndGiftInfoWithModel:(QXMeetActivityDriftModel*)model; @end @interface QXMeetTimeDownView :UIView @property (nonatomic,strong)UIImageView *bgImageView; @property (nonatomic,strong)UILabel *bigTimeLabel; @property (nonatomic,strong)UILabel *titleLabel; @property (nonatomic,strong)UILabel *timeLabel; @property (nonatomic,assign)long long endTime; @property (nonatomic,assign)long long startTime; @property (nonatomic,strong)QXTimer *timer; @property (nonatomic,weak)iddelegate; @end @interface QXMeetDrawBtn : UIControl @property (nonatomic,strong)UIImageView *bgImageView; @property (nonatomic,strong)UILabel *titleLabel; @property (nonatomic,strong)UIButton *giftCoin; @property (nonatomic,assign)BOOL isDisable; @property (nonatomic,assign)QXMeetDrawBtnType btnType; @end @interface QXMeetUserView : UIView @property (nonatomic,strong)UIImageView *headerImageView; @property (nonatomic,strong)UIImageView *dressImageView; @property (nonatomic,strong)UILabel *tagLabel; @property (nonatomic,strong)UILabel *nameLabel; @property (nonatomic,assign)BOOL isLuckUser; @property (nonatomic,strong)QXUserModel *model; -(void)resetView; @end @interface QXMeetGiftView : UIView @property (nonatomic,strong)UIImageView *bgImageView; @property (nonatomic,strong)UIImageView *giftBgImageView; @property (nonatomic,strong)UIImageView *giftImageView; @property (nonatomic,strong)UIImageView *giftPriceBgView; @property (nonatomic,strong)UIButton *giftCoin; @property (nonatomic,strong)UILabel *giftNameLabel; @property (nonatomic,assign)BOOL isLockGift; @property (nonatomic,strong)QXDrawGiftModel* model; // 控制方法 - (void)startAnimation; - (void)stopAnimation; - (void)resetAnimation; @end //@interface QXMeetGiftCell : GKCycleScrollViewCell //@property (nonatomic,strong)UIImageView *giftBgImageView; //@property (nonatomic,strong)UIImageView *giftImageView; //@property (nonatomic,strong)UIImageView *giftNameBgImageView; //@property (nonatomic,strong)UILabel *giftNameLabel; //@property (nonatomic,strong)UIButton *giftCoinBtn; //@property (nonatomic,strong)QXDrawGiftModel *model; //@end NS_ASSUME_NONNULL_END