| | |
| | | btn_handle.backgroundColor = UIColor(hexStr: "#C0C0C0") |
| | | } |
| | | |
| | | // btn_handle.isHidden = (weeklyCourseItemModel.courseType == 2 && weeklyCourseItemModel.type == 2) |
| | | //visibility = if ((data.courseType != 1&&data.type == 2)||(data.type == 1&&data.isType == 1)) View.GONE else View.VISIBLE //||(data.isType == 0) 1、假期班隐藏:报名 按钮 2、报名体验购课,需隐藏按钮:请假 |
| | | btn_handle.isHidden = weeklyCourseItemModel.courseType != 1 && weeklyCourseItemModel.type == 2 || weeklyCourseItemModel.type == 1 && weeklyCourseItemModel.type == 2 |
| | | |
| | | if weeklyCourseItemModel.isType == 3{ |
| | | btn_handle.setTitle("已取消", for: .normal) |
| | | btn_handle.isEnabled = false |
| | | btn_handle.isHidden = false |
| | | btn_handle.backgroundColor = UIColor(hexStr: "#C0C0C0") |
| | | } |
| | | |
| | | } |
| | | } |
| | | @IBOutlet weak var label_title: UILabel! |