Commit e2c6f87d authored by Steven杜宇's avatar Steven杜宇

// 消息

parent 10f4cb5d
...@@ -269,15 +269,47 @@ extension YHMessageDetailListVC: UITableViewDelegate, UITableViewDataSource { ...@@ -269,15 +269,47 @@ extension YHMessageDetailListVC: UITableViewDelegate, UITableViewDataSource {
self.navigationController?.popToRootViewController(animated: false) self.navigationController?.popToRootViewController(animated: false)
goTabBarBy(tabType: .service) goTabBarBy(tabType: .service)
} else if self.type == YHMessageType.identityApproved.rawValue { // 身份获批 } else if (self.type == YHMessageType.identityApproved.rawValue ||
self.navigationController?.popToRootViewController(animated: false) self.type == YHMessageType.goToHK.rawValue)
goTabBarBy(tabType: .service)
} else if self.type == YHMessageType.goToHK.rawValue { // 赴港办证
} else if self.type == YHMessageType.renewal.rawValue { // 身份续签 { // 身份获批 或 赴港办证
let orderId = Int(item.orderId) ?? 0
if item.redirectPage == "add_dependent" { // 新增受养人
let vc = YHAddAdoptersViewController()
vc.orderId = orderId
navigationController?.pushViewController(vc)
} else if item.redirectPage == "principal_approval_success" { // 原则批获批成功
let vc = YHPrincipleApprovedWaitSubmitVC()
vc.orderId = orderId
navigationController?.pushViewController(vc)
} else if item.redirectPage == "pay_electronic_visa" { // 电子签证缴费
let vc = YHVisaPaymentVC()
vc.orderID = orderId
navigationController?.pushViewController(vc)
} else if item.redirectPage == "prepare_travel_certificate" { // 旅行证件准备
let vc = YHTravelDocsPreparationListViewController()
vc.orderId = orderId
navigationController?.pushViewController(vc)
} else if item.redirectPage == "upload_pass_certificate" { // 上传过关证件
let vc = YHUploadCertificateVC()
vc.orderId = orderId
navigationController?.pushViewController(vc)
} else if item.redirectPage == "appoint_for_id_card" { // 赴港办证预约
let vc = YHCertificateAppointViewController()
vc.orderId = orderId
navigationController?.pushViewController(vc)
} else if self.type == YHMessageType.renewal.rawValue { // 身份续签
} else { // 其余条件进入服务页
self.navigationController?.popToRootViewController(animated: false)
goTabBarBy(tabType: .service)
}
} }
} }
} }
......
...@@ -104,6 +104,7 @@ class YHDetailMessageModel: SmartCodable { ...@@ -104,6 +104,7 @@ class YHDetailMessageModel: SmartCodable {
var isRead: Bool = false var isRead: Bool = false
var orderId: String = "" var orderId: String = ""
var url: String = "" var url: String = ""
var redirectPage: String = ""
required init() { required init() {
...@@ -113,5 +114,6 @@ class YHDetailMessageModel: SmartCodable { ...@@ -113,5 +114,6 @@ class YHDetailMessageModel: SmartCodable {
case id, title, content, time, url case id, title, content, time, url
case isRead = "is_read" case isRead = "is_read"
case orderId = "order_id" case orderId = "order_id"
case redirectPage = "redirect_page"
} }
} }
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