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

  1. //
  2. // HomeViewController.h
  3. // HC
  4. //
  5. // Created by huilinLi on 2025/11/18.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import "CommonTabBar.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface HomeViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, UIScrollViewDelegate,CommonTabBarDelegate>
  11. @property (nonatomic, strong) UILabel *successLabel;
  12. @property (nonatomic, strong) UITextField *searchField;
  13. @property (nonatomic, strong) UIImageView *logoImage;
  14. @property (nonatomic, strong) UIImageView *flagIcon;
  15. @property (nonatomic, strong) UIButton *messageBtn;
  16. @property (nonatomic, strong) UIScrollView *functionScrollView;
  17. @property (nonatomic, strong) NSMutableArray<UIButton *> *functionBtns;
  18. @property (nonatomic, strong) UIScrollView *bannerScrollView;
  19. @property (nonatomic, strong) UIPageControl *bannerPageControl;
  20. @property (nonatomic, strong) UIView *tabContainer;
  21. @property (nonatomic, strong) UIButton *courseBtn; // 课程按钮
  22. @property (nonatomic, strong) UIButton *infoBtn; // 资讯按钮
  23. @property (nonatomic, strong) UIButton *activityBtn; // 活动按钮
  24. @property (nonatomic, strong) UIView *courseUnderline; // 课程下划线
  25. @property (nonatomic, strong) UIView *infoUnderline; // 资讯下划线
  26. @property (nonatomic, strong) UIView *activityUnderline;// 活动下划线
  27. @property (nonatomic, strong) UITableView *courseTableView;
  28. // @property (nonatomic, strong) UIView *commonTabBar;
  29. @property (nonatomic, strong) CommonTabBar *commonTabBar;
  30. @property (nonatomic, strong) UIButton *homeTabBtn;
  31. @property (nonatomic, strong) UIButton *marketTabBtn;
  32. @property (nonatomic, strong) UIButton *favoritesTabBtn;
  33. @property (nonatomic, strong) UIButton *mineTabBtn;
  34. @property (nonatomic, strong) UIImageView *redPacketIcon;
  35. @property (nonatomic, strong) NSArray *functionIcons;
  36. @property (nonatomic, strong) NSArray *courseData;
  37. @property (nonatomic, strong) NSTimer *bannerTimer; // 轮播图的定时器
  38. @property (nonatomic, assign) NSInteger currentBannerIndex; // 当前轮播页码
  39. @end
  40. NS_ASSUME_NONNULL_END