// // 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") } }