• 曹云霄's avatar
    Merge branch 'learningCenter' · ebc84d85
    曹云霄 authored
    # Conflicts:
    #	Class/AllCustomerViewController.m
    #	Class/CardBeenUseViewController.m
    #	Class/CardDontUseViewController.m
    #	Class/CardViewController.m
    #	Class/ChangePasswordViewController.m
    #	Class/ClientShoppingCarViewController.m
    #	Class/ClientViewController.m
    #	Class/CustomerOrderViewController.m
    #	Class/Login/LoginViewController.m
    #	Class/LuckyDrawDetailsViewController.m
    #	Class/OrderRecordViewController.m
    #	Class/OrderdetailsViewController.m
    #	Class/PaymentsViewController.m
    #	Class/ProductDetailsViewController.m
    #	Class/ProductLibraryViewController.m
    #	Class/RebateDetailsViewController.m
    #	Class/RebateViewController.m
    #	Class/SceneLibraryViewController.m
    #	Class/SearchViewController.m
    #	Class/SettlementViewController.m
    #	Class/Shoppingcart/AddressViewController.m
    #	Class/Shoppingcart/GenerateOrdersViewController.m
    #	Class/Shoppingcart/ShoppingViewController.m
    #	Class/UserViewController.m
    #	Class/WithdrawalViewController.m
    #	Lighting.xcodeproj/project.pbxproj
    #	Lighting/Base.lproj/LaunchScreen.storyboard
    #	Lighting/Images.xcassets/00启动页.imageset/00启动页.jpg
    #	Lighting/Images.xcassets/Brand Assets.launchimage/Contents.json
    #	Pods/Target Support Files/Pods/Pods-dummy.m
    #	Pods/Target Support Files/Pods/Pods.debug.xcconfig
    #	Pods/Target Support Files/Pods/Pods.release.xcconfig
    #	Tools/BaseViewController.m
    #	Tools/LoadingView/XBLoadingView.h
    #	Tools/LoadingView/XBLoadingView.m
    #	Tools/NetworkRequestClassManager.h
    #	Tools/NetworkRequestClassManager.m
    #	Tools/PrefixHeader.pch
    #	Tools/SceneViewController.m
    #	Tools/ShoppingBagViewController.m
    ebc84d85
PaymentsDetailsTableViewController.m 1.54 KB
//
//  PaymentsDetailsTableViewController.m
//  Lighting
//
//  Created by 曹云霄 on 16/8/26.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "PaymentsDetailsTableViewController.h"

@interface PaymentsDetailsTableViewController ()

/**
 *  金额
 */
@property (weak, nonatomic) IBOutlet UILabel *amountLabel;

/**
 *  金额类型
 */
@property (weak, nonatomic) IBOutlet UILabel *amountTypeLabel;

/**
 *  时间
 */
@property (weak, nonatomic) IBOutlet UILabel *createTimeLabel;

/**
 *  流水号
 */
@property (weak, nonatomic) IBOutlet UILabel *serialNumberLabel;

/**
 *  余额
 */
@property (weak, nonatomic) IBOutlet UILabel *currentAmountLabel;

@end

@implementation PaymentsDetailsTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self uiConfigAction];
    [self fillDataAction];
}

#pragma mark - UI
- (void)uiConfigAction
{
    self.tableView.tableFooterView = [UIView new];
}

#pragma mark - 填充数据
- (void)fillDataAction
{
    NSString *string = ([self.model.amount floatValue] > 0)?[NSString stringWithFormat:@"+%.2f",[self.model.amount floatValue]]:[NSString stringWithFormat:@"%.2f",[self.model.amount floatValue]];
    self.amountLabel.text = string;
    self.createTimeLabel.text = self.model.createDate;
    self.serialNumberLabel.text = self.model.billNumber;
    self.amountTypeLabel.text = [BaseViewController separatePaymentsAndWithfrawal:self.model.amount withType:self.model.type];
    self.currentAmountLabel.text = [self.model.remainAmount stringValue];
}





@end