You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

45 lines
2.0 KiB

//
// HomeViewController.h
// HC
//
// Created by huilinLi on 2025/11/18.
//
#import <UIKit/UIKit.h>
#import "CommonTabBar.h"
NS_ASSUME_NONNULL_BEGIN
@interface HomeViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, UIScrollViewDelegate,CommonTabBarDelegate>
@property (nonatomic, strong) UILabel *successLabel;
@property (nonatomic, strong) UITextField *searchField;
@property (nonatomic, strong) UIImageView *logoImage;
@property (nonatomic, strong) UIImageView *flagIcon;
@property (nonatomic, strong) UIButton *messageBtn;
@property (nonatomic, strong) UIScrollView *functionScrollView;
@property (nonatomic, strong) NSMutableArray<UIButton *> *functionBtns;
@property (nonatomic, strong) UIScrollView *bannerScrollView;
@property (nonatomic, strong) UIPageControl *bannerPageControl;
@property (nonatomic, strong) UIView *tabContainer;
@property (nonatomic, strong) UIButton *courseBtn; // 课程按钮
@property (nonatomic, strong) UIButton *infoBtn; // 资讯按钮
@property (nonatomic, strong) UIButton *activityBtn; // 活动按钮
@property (nonatomic, strong) UIView *courseUnderline; // 课程下划线
@property (nonatomic, strong) UIView *infoUnderline; // 资讯下划线
@property (nonatomic, strong) UIView *activityUnderline;// 活动下划线
@property (nonatomic, strong) UITableView *courseTableView;
// @property (nonatomic, strong) UIView *commonTabBar;
@property (nonatomic, strong) CommonTabBar *commonTabBar;
@property (nonatomic, strong) UIButton *homeTabBtn;
@property (nonatomic, strong) UIButton *marketTabBtn;
@property (nonatomic, strong) UIButton *favoritesTabBtn;
@property (nonatomic, strong) UIButton *mineTabBtn;
@property (nonatomic, strong) UIImageView *redPacketIcon;
@property (nonatomic, strong) NSArray *functionIcons;
@property (nonatomic, strong) NSArray *courseData;
@property (nonatomic, strong) NSTimer *bannerTimer; // 轮播图的定时器
@property (nonatomic, assign) NSInteger currentBannerIndex; // 当前轮播页码
@end
NS_ASSUME_NONNULL_END