KWMSelectAddressVC.h 1.35 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
//
//  KWMSelectAddressVC.h
//  iCemarose
//
//  Created by HouWeiBin on 16/9/2.
//  Copyright © 2016年 kollway. All rights reserved.
//

#import "KWMBaseVC.h"
#import "KWMBasePageVC.h"
#import "KWMDeleteView.h"
#import "KWMAddressCell.h"
#import "KWMNeedAddressView.h"

@protocol KWMSelectAddressDelegate <NSObject>

//下单页面,订单没有生成成功时,只是返回一个地址
- (void)kwm_getAddress:(BUYAddress *)address;

//订单如果生成成功,则更新订单,并返回该订单
- (void)kwm_selectAddress:(BUYCheckout *)checkout;

lee committed
23 24 25 26 27 28 29
/**
 *  这里只是一个地址选择  不应该去关心过多的业务   至于后面要怎么样和这个页面无关
 *
 *  @param address <#address description#>
 */
- (void)kwm_setAddress:(BUYAddress *) address;

houweibin committed
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
@end
@interface KWMSelectAddressVC : KWMBasePageVC<KWMAddressCellDelegate,KWMDeleteDelegate,KWMCancelDelegate>


@property (weak, nonatomic) IBOutlet UITableView *tbvAddress;
@property (weak, nonatomic) IBOutlet UIView *vNoAddress;
@property (weak, nonatomic) IBOutlet KWMNeedAddressView *needAddressView;
@property (weak, nonatomic) IBOutlet KWMDeleteView *vDelete;

@property(nonatomic) BOOL isEditing;

@property(nonatomic) BOOL loading;

@property(nonatomic) BUYCheckout *checkout;

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


- (IBAction)onClickAddAddress:(id)sender;


@end