From 29ca792f9cd6216f5618cf8706d35a51b57b1376 Mon Sep 17 00:00:00 2001 From: 无故事王国 <841720330@qq.com> Date: 星期一, 23 十月 2023 17:37:24 +0800 Subject: [PATCH] 修复BUG --- WanPai/Common/View/PaymentCourseView.swift | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/WanPai/Common/View/PaymentCourseView.swift b/WanPai/Common/View/PaymentCourseView.swift index 79e1e87..e4407e2 100644 --- a/WanPai/Common/View/PaymentCourseView.swift +++ b/WanPai/Common/View/PaymentCourseView.swift @@ -130,6 +130,8 @@ extension PaymentCourseView:UITableViewDelegate{ func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { + let model = models[indexPath.row] + guard model.courseNum != 0 else {return} selectIndex = indexPath.row tableView.reloadData() } @@ -142,6 +144,11 @@ let cell = tableView.dequeueReusableCell(withIdentifier: "_PaymentCourseTCell") as! PaymentCourseTCell cell.courseListSubModel = model cell.isselect(indexPath.row == selectIndex) + if model.courseNum == 0{ + cell.contentView.alpha = 0.3 + }else{ + cell.contentView.alpha = 1.0 + } return cell } -- Gitblit v1.7.1