Commit 4586fd0c authored by Alex朱枝文's avatar Alex朱枝文

高才我的方案调整

parent 2ccebf14
...@@ -45,10 +45,20 @@ extension YHGCMineSchemeViewController: UITableViewDelegate, UITableViewDataSour ...@@ -45,10 +45,20 @@ extension YHGCMineSchemeViewController: UITableViewDelegate, UITableViewDataSour
} }
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
guard let dataSource = dataSource, dataSource.count > indexPath.row else {
return UITableViewCell()
}
let cell = tableView.dequeueReusableCell(withClass: YHGCSchemeTableViewCell.self) let cell = tableView.dequeueReusableCell(withClass: YHGCSchemeTableViewCell.self)
cell.dataSource = dataSource?[indexPath.row] let model = dataSource[indexPath.row]
cell.dataSource = model
cell.schemeBlock = { cell.schemeBlock = {
// /*
if let orderID = UserDefaults.standard.value(forKey: "orderIdForPreview"), model.title == "资料清单" {
let vc = YHMineCertificateEntryViewController()
vc.orderId = orderID as? Int ?? 0
UIViewController.current?.navigationController?.pushViewController(vc)
}
*/
} }
return cell return cell
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment