12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //
- // BrokerageCell.swift
- // ADHTuanCan
- //
- // Created by 敖德亨 on 2023/11/8.
- //
- import UIKit
- class BrokerageCell: UITableViewCell {
- @IBOutlet weak var typeLab: UILabel!
-
- @IBOutlet weak var timeLab: UILabel!
-
- @IBOutlet weak var numLab: UILabel!
-
- override func awakeFromNib() {
- super.awakeFromNib()
- // Initialization code
- }
- override func setSelected(_ selected: Bool, animated: Bool) {
- super.setSelected(selected, animated: animated)
- // Configure the view for the selected state
- }
-
- //佣金
- func configModel(model : BrokerageListItemModel){
- self.typeLab.text = "\(model.remarks ?? "")"
- self.timeLab.text = "\(model.settleTime ?? "")"
-
- if model.isAdd === 1{
- self.numLab.text = "+\(model.eventAmount ?? "")"
- }else{
- self.numLab.text = "-\(model.eventAmount ?? "")"
- }
- }
-
- //推广
- func configPromotionModel(model : PromotionListItemModel){
- self.typeLab.text = "\(model.remarks ?? "")"
- self.timeLab.text = "\(model.settleTime ?? "")"
- self.numLab.text = LanguagesUtil.createTextBy(Ctext: "\(model.eventCount ?? "")次", Etext: "\(model.eventCount ?? "") times")
- }
- }
|