| | |
| | | func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { |
| | | let item = viewModel.dataSource.value[indexPath.row] |
| | | Services.registeredData(coursePayId: item.coursePayId).subscribe(onNext: {data in |
| | | if let m = data.data{ |
| | | let vc = CourseDetailVC(id: item.coursePackageId,signUpCourseModel: m) |
| | | self.push(vc: vc) |
| | | } |
| | | |
| | | |
| | | }) { error in |
| | | |
| | | }.disposed(by: disposeBag) |
| | | |
| | | |
| | | /** |
| | | let item = viewModel.dataSource.value[indexPath.row] |
| | | Services.queryCourseInfo(id: item.coursePackageId).subscribe(onNext: { data in |
| | | if let m = data.data{ |
| | | let vc = CourseDetailApplyVC(detailModel: m,isExtend: item.payStatus.rawValue == 2) |
| | | let vc = CourseDetailApplyVC(detailModel: m,signUpCourseModel: item) |
| | | self.push(vc: vc) |
| | | } |
| | | }).disposed(by: self.disposeBag) |
| | | |
| | | */ |
| | | } |
| | | } |
| | | |