OrderDetailSectionView.swift 563 B

12345678910111213141516171819202122232425
  1. //
  2. // OrderDetailSectionView.swift
  3. // ADHTuanCan
  4. //
  5. // Created by 敖德亨 on 2023/11/8.
  6. //
  7. import UIKit
  8. class OrderDetailSectionView: UIView {
  9. @IBOutlet weak var timeLab: UILabel!
  10. @IBOutlet weak var typeLab: UILabel!
  11. override func awakeFromNib() {
  12. super.awakeFromNib()
  13. }
  14. func configModel(model : OrderDetailModel){
  15. timeLab.text = "\(model.whichDay ?? "")(\(model.orderDate ?? ""))"
  16. let item : OrderInsideMsgs = model.orderInsideMsgs![0]
  17. typeLab.text = "\(item.supplyType ?? "")"
  18. }
  19. }