From 637afbbebd8543f45f5eea6b727316eb95683625 Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期四, 16 十一月 2023 14:35:19 +0800
Subject: [PATCH] 修复BUG

---
 WanPai/Root/Course/VC/SignUpCourseVC.swift |   14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)

diff --git a/WanPai/Root/Course/VC/SignUpCourseVC.swift b/WanPai/Root/Course/VC/SignUpCourseVC.swift
index ae167bf..6decc74 100644
--- a/WanPai/Root/Course/VC/SignUpCourseVC.swift
+++ b/WanPai/Root/Course/VC/SignUpCourseVC.swift
@@ -108,28 +108,20 @@
 
 extension SignUpCourseVC:UITableViewDelegate{
 	func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
-let item = viewModel.dataSource.value[indexPath.row]
+		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)
-
-		 */
 	}
 }
 

--
Gitblit v1.7.1