Commit e143adcf authored by pete谢兆麟's avatar pete谢兆麟

跳转逻辑

parent 2bfd6f29
......@@ -186,9 +186,19 @@ extension YHMyDocumentsListViewController: UITableViewDelegate, UITableViewDataS
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let model = viewModel?.mainModel?.docs[indexPath.row]
if model?.file_type == "doc" {
if model?.template_id == 195 {
//跳转赴港计划书
} else {
let vc = YHMyDocumentsDetailViewController()
vc.id = model?.id ?? 0
self.navigationController?.pushViewController(vc)
}
} else {
let vc = YHMySignatureDetailViewController()
vc.id = model?.id ?? 0
self.navigationController?.pushViewController(vc)
}
}
}
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