| | |
| | | |
| | | if weeklyCourseItemModel.type == 1{ |
| | | btn_handle.setTitle("请假", for: .normal) |
| | | btn_handle.isEnabled = true |
| | | btn_handle.backgroundColor = UIColor(hexStr: "#6CC366") |
| | | } |
| | | |
| | | if weeklyCourseItemModel.type == 2{ |
| | | btn_handle.setTitle("购课", for: .normal) |
| | | btn_handle.isEnabled = true |
| | | btn_handle.backgroundColor = UIColor(hexStr: "#6CC366") |
| | | } |
| | | |
| | | if weeklyCourseItemModel.type == 3{ |
| | | btn_handle.setTitle("已请假", for: .normal) |
| | | btn_handle.isEnabled = false |
| | | btn_handle.backgroundColor = UIColor(hexStr: "#C0C0C0") |
| | | } |
| | | |
| | | } |
| | | } |
| | | @IBOutlet weak var label_title: UILabel! |