Commit 10cc1cf6 authored by David黄金龙's avatar David黄金龙

处理 一处跳转问题

parent fdea691e
......@@ -115,12 +115,22 @@ extension YHOrderSearchViewController: UITableViewDelegate, UITableViewDataSourc
cell.cellBlock = {[weak self] model in
guard let self = self else { return }
if self.mobile == model.mobile {
if let orderID = UserDefaults.standard.value(forKey: "orderIdForPreview") as? Int {
if orderID == model.id {
self.navigationController?.popToRootViewController(animated: true)
} else {
let vc = YHServiceCenterViewController()
vc.model = model
self.navigationController?.pushViewController(vc)
}
} else {
self.navigationController?.popToRootViewController(animated: true)
}
} else {
let vc = YHServiceCenterViewController()
vc.model = model
self.navigationController?.pushViewController(vc)
}
}
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