KWMPaySuccessVC.m 2.72 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 23 24 25 26 27 28 29 30 31 32 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 75 76 77 78 79 80 81
//
//  KWMPaySuccess.m
//  iCemarose
//
//  Created by HouWeiBin on 16/9/5.
//  Copyright © 2016年 kollway. All rights reserved.
//

#import "KWMPaySuccessVC.h"
#import "UIColor+SAMAdditions.h"
#import "KWMInformationVC.h"
#import "KWMShopCartData.h"
#import "UIViewController+BackButtonHandler.h"
#import "KWMOrderVC.h"

@interface KWMPaySuccessVC ()

@end

@implementation KWMPaySuccessVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"支付成功";
    
    [[KWMShopCartData alloc] removeAllItems];
    
    [self initButton];
}

+(NSString *)kwmTag{
    return @"KWMPaySuccessVC";
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

- (void)initButton{
    self.btnGetTime.layer.masksToBounds = YES;
    //btn.layer.cornerRadius = 20/2; //圆角(圆形)
    self.btnGetTime.layer.borderColor  = [UIColor sam_colorWithHex:@"979797"].CGColor; //要设置的颜色
    self.btnGetTime.layer.borderWidth = 1; //要设置的描边宽
    self.btnStartTime.layer.masksToBounds = YES;
    self.btnStartTime.layer.borderColor  = [UIColor sam_colorWithHex:@"979797"].CGColor; //要设置的颜色
    self.btnStartTime.layer.borderWidth = 1; //要设置的描边宽
    self.btnMyOrder.layer.masksToBounds = YES;
    self.btnMyOrder.layer.borderColor  = [UIColor sam_colorWithHex:@"979797"].CGColor; //要设置的颜色
    self.btnMyOrder.layer.borderWidth = 1; //要设置的描边宽
}


-(void)onClickStartTime:(id)sender{
    KWMInformationVC *informationVC = (KWMInformationVC *)[KWMBaseVC findControllerBy:[KWMInformationVC kwmTag] fromStoryboard:@"Main"];
    informationVC.inforStr = NSLocalizedString(@"WhenPutGoods",@"WhenPutGoods");
    informationVC.inforTitleStr = NSLocalizedString(@"WhenPutGoodsTitle",@"WhenPutGoodsTitle");
    informationVC.titleStr = @"何时发货";
    [self.navigationController pushViewController:informationVC animated:YES];
}

-(void)onClickGetTime:(id)sender{
    KWMInformationVC *informationVC = (KWMInformationVC *)[KWMBaseVC findControllerBy:[KWMInformationVC kwmTag] fromStoryboard:@"Main"];
    informationVC.inforStr = NSLocalizedString(@"WhenPutGoods",@"WhenPutGoods");
    informationVC.inforTitleStr = NSLocalizedString(@"WhenPutGoodsTitle",@"WhenPutGoodsTitle");
    informationVC.titleStr = @"多久到货";
    [self.navigationController pushViewController:informationVC animated:YES];
}

-(void)onClickMyOrder:(id)sender{
    KWMOrderVC *orderVC = (KWMOrderVC *)[KWMBaseVC findControllerBy:[KWMOrderVC kwmTag] fromStoryboard:@"Mine"];
    [self.navigationController pushViewController:orderVC animated:YES];
}

-(BOOL) navigationShouldPopOnBackButton {
    [self.navigationController popToRootViewControllerAnimated:YES];

     return NO; // Ignore 'Back' button this time
}


@end