//
//  AccountViewController.m
//  Car
//
//  Created by Javen on 2017/2/8.
//  Copyright © 2017年 上海勾芒信息科技. All rights reserved.
//

#import "AccountViewController.h"

@interface AccountViewController ()

/**
 工分总额
 */
@property (weak, nonatomic) IBOutlet UIView *labelTotalScore;

/**
 可换公分
 */
@property (weak, nonatomic) IBOutlet UILabel *labelValidScore;

/**
 公分
 */
@property (weak, nonatomic) IBOutlet UITextField *textFieldScore;

/**
 工分提现说明
 */
@property (weak, nonatomic) IBOutlet UILabel *labelInfo;

/**
 提醒绑定微信提示
 */
@property (weak, nonatomic) IBOutlet UILabel *labelToWechatInfo;
@property (weak, nonatomic) IBOutlet UIView *scoreView;

@end

@implementation AccountViewController

- (void)viewDidLoad {
    [super viewDidLoad];
//    self.scoreView.hidden = YES;
    self.title = @"工分提现";
    [self configUI];
    // Do any additional setup after loading the view.
}

- (void)configUI {
    //未绑定微信的底部的提示
    NSString *contentStr = @"亲,您还没有绑定微信哦,工分提现需要先绑定微信哦,我们的提现金额会提到微信钱包中。                     ";
    NSRange range = [contentStr rangeOfString:@"提现金额会提到微信钱包中"];
    NSMutableAttributedString *str = [[NSMutableAttributedString alloc]initWithString:contentStr];
    //设置:在0-3个单位长度内的内容显示成红色
    [str addAttribute:NSForegroundColorAttributeName value:kMainColor range:range];
    self.labelToWechatInfo.attributedText = str;
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end