KWMBeforePayVC.h 2.35 KB
Newer Older
houweibin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//
//  KWMBeforePayVC.h
//  iCemarose
//
//  Created by HouWeiBin on 16/9/2.
//  Copyright © 2016年 kollway. All rights reserved.
//

#import "KWMBaseVC.h"
#import "Buy/Buy.h"
#import "KWMDiscountVC.h"
#import "KWMGiftCardVC.h"
#import "KWMSelectAddressVC.h"
#import "KWMAddGiftCardVC.h"
#import "KWMShippingVC.h"
16
#import "KWMPayTypeVC.h"
houweibin committed
17
#import "KWMBeforePayData.h"
18 19

@interface KWMBeforePayVC : KWMBaseVC<KWMGiftCardDelegate,KWMDiscountDelegate,KWMSelectAddressDelegate,KWMSelectShippingRateDelegate,KWMPayTypeDelegate>
houweibin committed
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

//沒有默認地址時,高度為37,有地址時,高度為90
@property(nonatomic,weak) IBOutlet NSLayoutConstraint *vAddressHeight;

@property (weak, nonatomic) IBOutlet UILabel *lbName;

@property (weak, nonatomic) IBOutlet UILabel *lbPhone;

@property (weak, nonatomic) IBOutlet UILabel *lbAddress;

@property (weak, nonatomic) IBOutlet UILabel *lbAddressDetail;

@property (weak, nonatomic) IBOutlet UILabel *lbNoAddress;

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

@property (weak, nonatomic) IBOutlet UILabel *lbPayType;

//折扣
@property (weak, nonatomic) IBOutlet UILabel *lbDiscount;

@property (weak, nonatomic) IBOutlet UILabel *lbGiftCard;

@property (weak, nonatomic) IBOutlet UILabel *lbTotalPrice;

@property (weak, nonatomic) IBOutlet UILabel *lbShippingRate;

houweibin committed
47 48 49
//清关信息
@property (weak, nonatomic) IBOutlet UILabel *lbCustomsClearance;

houweibin committed
50 51 52 53
@property (weak, nonatomic) IBOutlet UIView *vPayType;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *heightPayType;

houweibin committed
54 55
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *heightCustomsClearance;

houweibin committed
56 57 58 59 60 61 62 63 64 65 66 67 68 69
@property (nonatomic) BUYAddress *address;

//创建订单异步请求
@property (nonatomic, strong) NSOperation *checkoutCreationOperation;

@property (nonatomic) NSArray *shopcartArray;

@property (nonatomic) BUYCart *cart;

@property (nonatomic) BUYCheckout *checkout;

//快速购买购物车
@property (nonatomic) BUYCart *fastPayCart;

70 71
@property (nonatomic) KWMPayType payType;

houweibin committed
72 73
@property (nonatomic) KWMBeforePayData *beforePayData;

lee committed
74 75
@property (strong, nonatomic) NSString *cartCookie;

houweibin committed
76 77 78 79 80 81 82 83 84 85 86 87
- (IBAction)onClickPayType:(id)sender;

- (IBAction)onClickAddress:(id)sender;

- (IBAction)onClickDiscount:(id)sender;

- (IBAction)onClickGiftCard:(id)sender;

- (IBAction)onClickPay:(id)sender;

- (IBAction)onClickShipping:(id)sender;

houweibin committed
88 89
- (IBAction)onClickCustomsClearance:(id)sender;

houweibin committed
90 91 92

@end