//
//  ShoppingBagViewController.h
//  Lighting
//
//  Created by 曹云霄 on 16/6/6.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "BaseViewController.h"
#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

@interface ShoppingBagViewController : BaseViewController


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

/**
 *  购物袋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
