younger_times
2023-07-12 5a590aaf3fd9ed5f9cfd2d54e72c904ce4918e7f
WanPai/Root/Other/CCell/Common_1_CCell.swift
@@ -10,9 +10,22 @@
class Common_1_CCell: UICollectionViewCell {
    @IBOutlet weak var label_content: UILabel!
    var courseDetailListModel:CourseDetailListModel?{
        didSet{
            if let m = courseDetailListModel{
                label_content.text = "\(m.classHours)课时"
                label_content.backgroundColor = isSelected ? Def_ThemeColor : .white
                label_content.textColor = isSelected ? .white : UIColor(hexStr: "#898989")
                label_content.borderWidth = isSelected ? 0:1
            }
        }
    }
    override func awakeFromNib() {
        super.awakeFromNib()
        label_content.borderColor = UIColor(hexStr: "#898989")
        label_content.cornerRadius = 4
    }
}