| | |
| | | |
| | | 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() |
| | | } |
| | |
| | | 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 |
| | | } |
| | | |