无故事王国
2023-10-23 29ca792f9cd6216f5618cf8706d35a51b57b1376
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
   }