Files
midi_ios/QXLive/活动/巡乐会/QXMeetLotteryView.h
2025-09-08 08:49:04 +08:00

39 lines
959 B
Objective-C

//
// QXMeetLotteryView.h
// QXLive
//
// Created by 启星 on 2025/9/2.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@protocol QXMeetLotteryViewDelegate <NSObject>
- (void)lotteryWheelDidStopAtIndex:(NSInteger)index;
@end
@interface QXMeetLotteryView : UIView
@property (nonatomic, weak) id<QXMeetLotteryViewDelegate> delegate;
@property (nonatomic, strong) NSArray *prizes; // 奖品数据源
@property (nonatomic, assign) NSInteger finalPrizeIndex; // 最终奖品索引
- (void)startLotteryAnimation;
- (void)stopLotteryAnimation;
@end
@interface QXMeetLotterySubView : UIView
@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