ShoppingBagViewController.h 1.34 KB
Newer Older
曹云霄's avatar
曹云霄 committed
1 2 3 4 5 6 7 8 9
//
//  ShoppingBagViewController.h
//  Lighting
//
//  Created by 曹云霄 on 16/6/6.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "BaseViewController.h"
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#import "ShoppingTableViewCell.h"
#import "TOGoodsEntityModel.h"
#import "ShopcarModel.h"

@protocol ShoppingBagDelegate <NSObject>

/**
 关闭购物袋
 */
- (void)dismissController;

/**
 添加到购物车,完成回调
 */
- (void)addToShoppingCar:(NSArray<ShopcarModel *>*)selectGoods finish:(void(^)(NSString *osskey))completed;

@end
曹云霄's avatar
曹云霄 committed
27 28 29 30

@interface ShoppingBagViewController : BaseViewController


31 32
@property (nonatomic, weak) id<ShoppingBagDelegate>delegate;

曹云霄's avatar
曹云霄 committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
/**
 *  购物袋tableView
 */
@property (weak, nonatomic) IBOutlet UITableView *shoppingBagTableView;

/**
 *  合计金额
 */
@property (weak, nonatomic) IBOutlet UILabel *totalPriceLabe;


/**
 *  确认添加
 */
@property (weak, nonatomic) IBOutlet UIButton *sureButton;

/**
 *  购物袋背景
 */
@property (weak, nonatomic) IBOutlet UIView *shoppingBagBackView;

/**
 *  数据源
 */
@property (nonatomic,strong) NSMutableArray *datasArray;

/**
 *  全选
 */
@property (weak, nonatomic) IBOutlet UIButton *totalSelectedButton;

/**
 *  删除
 */
@property (weak, nonatomic) IBOutlet UIButton *delectedButton;

/**
 *  dismiss回传
 */
@property (nonatomic,copy) void(^dismissBlock)();

@end