| | |
| | | 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") |
| | | } |
| | |
| | | @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) { |