Commit 7843c031 authored by pete谢兆麟's avatar pete谢兆麟

续签证件管理列表逻辑

parent ef7a258a
...@@ -82,6 +82,11 @@ extension YHResignCertificateListViewController: UITableViewDelegate, UITableVie ...@@ -82,6 +82,11 @@ extension YHResignCertificateListViewController: UITableViewDelegate, UITableVie
model = self.viewModel.mainModel.SMALL_WHITE_BAR model = self.viewModel.mainModel.SMALL_WHITE_BAR
cell.titleLabel.text = "最新一次小白条" cell.titleLabel.text = "最新一次小白条"
} }
if model.count == 0 {
cell.isHidden = true
} else {
cell.isHidden = false
}
cell.dataSource = model cell.dataSource = model
cell.clickBlock = { [weak self] model in cell.clickBlock = { [weak self] model in
guard let self = self else { return } guard let self = self else { return }
...@@ -134,7 +139,9 @@ extension YHResignCertificateListViewController: UITableViewDelegate, UITableVie ...@@ -134,7 +139,9 @@ extension YHResignCertificateListViewController: UITableViewDelegate, UITableVie
if indexPath.row == 3 { if indexPath.row == 3 {
count = self.viewModel.mainModel.SMALL_WHITE_BAR.count count = self.viewModel.mainModel.SMALL_WHITE_BAR.count
} }
if count == 0 {
return 0
}
return CGFloat(68 + count * 52) return CGFloat(68 + count * 52)
} }
......
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