2025-11-09 13:56:13 +08:00
|
|
|
|
//
|
|
|
|
|
|
// KBShopItemVC.h
|
|
|
|
|
|
// keyBoard
|
|
|
|
|
|
//
|
|
|
|
|
|
// Created by Mac on 2025/11/9.
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
#import <JXPagingView/JXPagerView.h>
|
|
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
2025-12-11 13:16:06 +08:00
|
|
|
|
@class KBShopStyleModel;
|
|
|
|
|
|
@class KBShopVM;
|
|
|
|
|
|
@class KBShopThemeModel;
|
|
|
|
|
|
|
2025-11-09 13:56:13 +08:00
|
|
|
|
@interface KBShopItemVC : UIViewController<JXPagerViewListViewDelegate>
|
2025-11-09 18:07:47 +08:00
|
|
|
|
/// 列表:使用 UICollectionView 展示两列皮肤卡片
|
|
|
|
|
|
@property (nonatomic, strong) UICollectionView *collectionView;
|
2025-12-11 13:16:06 +08:00
|
|
|
|
/// 数据源:主题列表
|
|
|
|
|
|
@property (nonatomic, strong) NSMutableArray<KBShopThemeModel *> *dataSource;
|
2025-11-09 18:07:47 +08:00
|
|
|
|
/// 是否需要上拉加载更多
|
2025-11-09 13:56:13 +08:00
|
|
|
|
@property (nonatomic, assign) BOOL isNeedFooter;
|
2025-11-09 18:07:47 +08:00
|
|
|
|
/// 是否需要下拉刷新
|
2025-11-09 13:56:13 +08:00
|
|
|
|
@property (nonatomic, assign) BOOL isNeedHeader;
|
2025-11-09 18:07:47 +08:00
|
|
|
|
/// 首次是否已刷新过(避免重复触发)
|
|
|
|
|
|
@property (nonatomic, assign) BOOL isHeaderRefreshed; // 默认为 YES
|
2025-12-11 13:16:06 +08:00
|
|
|
|
/// 当前所属风格
|
|
|
|
|
|
@property (nonatomic, strong, nullable) KBShopStyleModel *style;
|
|
|
|
|
|
/// 可复用的 ShopVM(由外部传入,便于共用缓存/网络配置)
|
|
|
|
|
|
@property (nonatomic, strong, nullable) KBShopVM *shopViewModel;
|
2025-11-09 13:56:13 +08:00
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|