宽窄优行-由【嘉易行】项目成品而来
younger_times
2023-07-05 0d8f5fc8a516bfd07e425909e4a4432600572ee7
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
//
//  MineApplyRecordTCell.swift
//  OKProject
//
//  Created by 无故事王国 on 2023/5/23.
//  Copyright © 2023 yangwang. All rights reserved.
//
 
import UIKit
 
class MineApplyRecordTCell: UITableViewCell {
 
    var model:LinesModel!{
        didSet{
            label_datetime.text = model.createTime
            label_account.text = "¥\(model.applyQuota.remain2Digits())"
            switch model.status{
                case .pass:
                    label_status.text = "成功"
                    label_status.textColor = UIColor(hexString: "#F01D1D")
                case .reject:
                    label_status.text = "失败"
                    label_status.textColor = UIColor(hexString: "#888888")
                case .pending:
                    label_status.text = "申请中"
                    label_status.textColor = UIColor(hexString: "#888888")
                case .none:
                    label_status.text = "未知"
            }
        }
    }
 
    @IBOutlet weak var label_datetime: UILabel!
    @IBOutlet weak var label_account: UILabel!
    @IBOutlet weak var label_status: UILabel!
 
    override func awakeFromNib() {
        super.awakeFromNib()
 
    }
}