KWMBeforePayVC.h 2.69 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,KWMSelectAddressDelegate,KWMSelectShippingRateDelegate>
houweibin committed
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

//沒有默認地址時,高度為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;

36 37
//支付方式
@property (weak, nonatomic) IBOutlet UIView *vPayType;
houweibin committed
38

39 40 41
@property (weak, nonatomic) IBOutlet UIImageView *ivAliPay;

@property (weak, nonatomic) IBOutlet UIImageView *ivWechatPay;
houweibin committed
42

43
//折扣
houweibin committed
44 45
@property (weak, nonatomic) IBOutlet UILabel *lbGiftCard;

46 47 48 49 50 51 52 53
@property (weak, nonatomic) IBOutlet UIButton *btnDiscountCancel;

@property (weak, nonatomic) IBOutlet UIButton *btnDiscountConfirm;

@property (weak, nonatomic) IBOutlet UIButton *btnDiscountEdit;

@property (weak, nonatomic) IBOutlet UITextField *tfDiscount;
//价格
houweibin committed
54 55 56 57
@property (weak, nonatomic) IBOutlet UILabel *lbTotalPrice;

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

houweibin committed
58 59 60
//清关信息
@property (weak, nonatomic) IBOutlet UILabel *lbCustomsClearance;

houweibin committed
61 62
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *heightPayType;

houweibin committed
63 64
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *heightCustomsClearance;

houweibin committed
65 66 67 68 69 70 71 72 73 74 75 76 77 78
@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;

79 80
@property (nonatomic) KWMPayType payType;

houweibin committed
81 82
@property (nonatomic) KWMBeforePayData *beforePayData;

lee committed
83 84
@property (strong, nonatomic) NSString *cartCookie;

houweibin committed
85 86 87 88 89 90 91 92 93 94 95 96
- (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
97 98
- (IBAction)onClickCustomsClearance:(id)sender;

99 100 101
- (IBAction)onClickDiscountConfirm:(id)sender;

- (IBAction)onClickDiscountCancel:(id)sender;
houweibin committed
102 103 104

@end