宽窄优行-由【嘉易行】项目成品而来
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
42
43
44
45
46
//
//  PlatformMessageCell.swift
//  OKProject
//
//  Created by alvin_y on 2020/6/17.
//  Copyright © 2020 yangwang. All rights reserved.
//
 
import UIKit
 
class PlatformMessageCell: UITableViewCell {
 
    /// 内容
    @IBOutlet weak var label_content: UILabel!
    
    /// 时间
    @IBOutlet weak var label_date: UILabel!
    
    /// 标题
    @IBOutlet weak var label_title: UILabel!
    
    /// 图片
    @IBOutlet weak var image_cover: UIImageView!
    @IBOutlet weak var redPointView: UIView!
 
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
 
    
    func configure(model: SystemMessageModel){
        image_cover.load(url: model.img)
        label_title.text = model.title
        label_date.text = model.time
        redPointView.isHidden = model.read == 2
        label_content.text = model.content.filterHTML()
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
 
        // Configure the view for the selected state
    }
    
}