KWMNewGoodsCell.h 1.05 KB
Newer Older
houweibin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
//
//  KWMNewGoodsCell.h
//  iCemarose
//
//  Created by 陈荣科 on 16/9/1.
//  Copyright © 2016年 kollway. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Buy/Buy.h"
#import "KWMLoadStatus.h"

@class KWMNewGoodsCell;
@protocol KWMNewGoodsCellDelegate <NSObject>

- (void)kwm_selectCollectionCell:(BUYProduct *)product;

//每当滑动到倒数15个的时候,尝试load下一页
- (void)kwm_onNexPage:(BOOL)isNewBrand;

@end

@interface KWMNewGoodsCell : UITableViewCell<UICollectionViewDelegate,UICollectionViewDataSource>
@property (weak, nonatomic) IBOutlet UICollectionView *clvNewGoods;

@property (weak, nonatomic) IBOutlet UIView *vWatch;

@property (nonatomic) BOOL isDetail;

@property (weak, nonatomic) id<KWMNewGoodsCellDelegate>delegate;

//加载数据
@property (nonatomic) KWMLoadStatus *loadStatus;

@property (nonatomic) NSMutableArray *products;

@property (nonatomic) BOOL isSameBrand;

-(void)setLoadStatusData:(KWMLoadStatus *) loadStatus;

-(void)scrollToTop;

-(void)setData:(NSArray*) products;

-(void)addData:(NSArray*) products;

@end