无故事王国
2023-10-23 29ca792f9cd6216f5618cf8706d35a51b57b1376
WanPai/Root/Course/TCell/CourseBookingTCell.swift
@@ -18,11 +18,14 @@
         if weeklyCourseItemModel.type == 1{
            btn_handle.setTitle("请假", for: .normal)
            btn_handle.isEnabled = true
            btn_handle.backgroundColor = UIColor(hexStr: "#6CC366")
//            btn_handle.backgroundColor = UIColor(hexStr: "#6CC366")
            let handleColor = weeklyCourseItemModel.isType == 1 ? UIColor.gray.withAlphaComponent(0.5):UIColor(hexStr: "#6CC366")
            btn_handle.backgroundColor = handleColor
         }
         if weeklyCourseItemModel.type == 2{
            btn_handle.setTitle("购课", for: .normal)
            btn_handle.setTitle("报名", for: .normal)
            btn_handle.isEnabled = true
            btn_handle.backgroundColor = UIColor(hexStr: "#6CC366")
         }
@@ -39,14 +42,15 @@
    @IBOutlet weak var label_time: UILabel!
    @IBOutlet weak var label_info: UILabel!
   @IBOutlet weak var btn_handle: UIButton!
   @IBOutlet weak var view_corner: UIView!
   
    var clickClouse:((WeeklyCourseItemModel)->Void)?
    
    override func awakeFromNib() {
        super.awakeFromNib()
        selectionStyle = .none
        backgroundColor = .clear
        contentView.backgroundColor = .clear
        backgroundColor = .white
        contentView.backgroundColor = .white
    }
    @IBAction func bookingAction(_ sender: UIButton) {