//
//  KWMContectUsVC.m
//  iCemarose
//
//  Created by HouWeiBin on 16/8/31.
//  Copyright © 2016年 kollway. All rights reserved.
//

#import "KWMContactUsVC.h"
#import "PSPDFAlertView.h"

@interface KWMContactUsVC ()

@end

@implementation KWMContactUsVC

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

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

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

-(void)awakeFromNib{
    [super awakeFromNib];
    self.title = @"联系我们";
}

-(void)onClickPhone:(id)sender{
    
    PSPDFAlertView *alertView = [[PSPDFAlertView alloc] initWithTitle:@"" message:@"是否拨打电话?"];
    [alertView setCancelButtonWithTitle:@"取消" block:^{
        
    }];
    [alertView addButtonWithTitle:@"确定" block:^{
        NSString *phoneNum = @"4006878706";
        NSString *phone = [[NSString alloc]initWithFormat:@"tel:%@",phoneNum];
        [[UIApplication sharedApplication]openURL:[NSURL URLWithString:phone]];
    }];
    [alertView show];

}

-(void)onClickEmail:(id)sender{
    NSString *EmailAddress = @"info@cemarose.com";
    NSString *Email = [[NSString alloc]initWithFormat:@"mailto://%@",EmailAddress];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:Email]];
}

- (IBAction)wechatAction:(id)sender {
    [self showToast:@"复制成功"];
    UIPasteboard *pb = [UIPasteboard generalPasteboard];
    pb.string = @"cemarose";
}

- (IBAction)weiboAction:(id)sender {
    [self showToast:@"复制成功"];
    UIPasteboard *pb = [UIPasteboard generalPasteboard];
    pb.string = @"cemarose";
}


@end