payMentItemCell.swift 964 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // payMentItemCell.swift
  3. // ADHTuanCan
  4. //
  5. // Created by 敖德亨 on 2023/11/8.
  6. //
  7. import UIKit
  8. class payMentItemCell: UITableViewCell {
  9. @IBOutlet weak var nameLab: UILabel!
  10. @IBOutlet weak var typeImg: UIImageView!
  11. override func awakeFromNib() {
  12. super.awakeFromNib()
  13. // Initialization code
  14. }
  15. func configModel(model : PaySettleTypeModel){
  16. if model.isSelect{
  17. self.typeImg.image = UIImage.init(named: "地址选中")
  18. }else{
  19. self.typeImg.image = UIImage.init(named: "地址未选中")
  20. }
  21. self.nameLab.text = "\(model.name ?? "")"
  22. }
  23. func configPayMentModel(model : PayMentTypeModel){
  24. if model.isSelect{
  25. self.typeImg.image = UIImage.init(named: "地址选中")
  26. }else{
  27. self.typeImg.image = UIImage.init(named: "地址未选中")
  28. }
  29. self.nameLab.text = "\(model.name ?? "")"
  30. }
  31. }