From 19a3cec9bbafe352d67a57ae9a1c4c601c73b6c0 Mon Sep 17 00:00:00 2001 From: younger_times <841720330@qq.com> Date: 星期四, 27 七月 2023 22:19:27 +0800 Subject: [PATCH] fix --- WanPai/Root/Course/TCell/CourseBookingTCell.swift | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/WanPai/Root/Course/TCell/CourseBookingTCell.swift b/WanPai/Root/Course/TCell/CourseBookingTCell.swift index 60295ce..90b6240 100644 --- a/WanPai/Root/Course/TCell/CourseBookingTCell.swift +++ b/WanPai/Root/Course/TCell/CourseBookingTCell.swift @@ -9,10 +9,28 @@ class CourseBookingTCell: UITableViewCell { + var weeklyCourseItemModel:WeeklyCourseItemModel!{ + didSet{ + label_title.text = weeklyCourseItemModel.courseName + label_time.text = weeklyCourseItemModel.timeStr + label_info.text = weeklyCourseItemModel.detail + } + } + @IBOutlet weak var label_title: UILabel! + @IBOutlet weak var label_time: UILabel! + @IBOutlet weak var label_info: UILabel! + + var clickClouse:((WeeklyCourseItemModel)->Void)? + override func awakeFromNib() { super.awakeFromNib() selectionStyle = .none backgroundColor = .clear contentView.backgroundColor = .clear } + + @IBAction func bookingAction(_ sender: UIButton) { + clickClouse?(weeklyCourseItemModel) + + } } -- Gitblit v1.7.1