无故事王国
2023-10-10 a1ac0f1634ff0bd8f04259fc4cf7ebabd8c8c82d
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
//
//  CustomerContentTCell.swift
//  WanPai
//
//  Created by 无故事王国 on 2023/6/30.
//
 
import UIKit
import JQTools
 
class CustomerContentTCell: UITableViewCell {
 
    @IBOutlet weak var label_title: UILabel!
    @IBOutlet weak var label_time: UILabel!
    @IBOutlet weak var label_content: UILabel!
 
    var noticeItemModel:NoticeItemModel!{
        didSet{
            label_title.text = noticeItemModel.noticeTitle
            label_time.text = noticeItemModel.noticeTime
 
            let attribute = AttributedStringbuilder.build().add(string: noticeItemModel.noticeContents.jq_filterFromHTML_1(), withFont: .systemFont(ofSize: 13), withColor: UIColor(hexStr: "#3D3D3D"), lineSpace: 4).mutableAttributedString
            label_content.attributedText = attribute
 
        }
    }
 
    override func awakeFromNib() {
        super.awakeFromNib()
        selectionStyle = .none
    }
}