From 29ca792f9cd6216f5618cf8706d35a51b57b1376 Mon Sep 17 00:00:00 2001 From: 无故事王国 <841720330@qq.com> Date: 星期一, 23 十月 2023 17:37:24 +0800 Subject: [PATCH] 修复BUG --- WanPai/Root/Course/TCell/CourseBookingTCell.swift | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/WanPai/Root/Course/TCell/CourseBookingTCell.swift b/WanPai/Root/Course/TCell/CourseBookingTCell.swift index 9ddf432..eab367c 100644 --- a/WanPai/Root/Course/TCell/CourseBookingTCell.swift +++ b/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) { -- Gitblit v1.7.1