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

// 收起状态

parent 9dbd1e60
...@@ -98,6 +98,7 @@ class YHPrincipleApprovedWaitSubmitVC: YHBaseViewController { ...@@ -98,6 +98,7 @@ class YHPrincipleApprovedWaitSubmitVC: YHBaseViewController {
viewModel.getEnvelopeInfo(orderId: orderId) { success, error in viewModel.getEnvelopeInfo(orderId: orderId) { success, error in
self.items.removeAll() self.items.removeAll()
// 已获得港府甄选名额 // 已获得港府甄选名额
self.viewModel.envelopModel.isUnfold = true
self.items.append(self.viewModel.envelopModel) self.items.append(self.viewModel.envelopModel)
self.tableView.reloadData() self.tableView.reloadData()
} }
......
...@@ -9,6 +9,18 @@ ...@@ -9,6 +9,18 @@
import UIKit import UIKit
import AttributedString import AttributedString
enum YHCustomerServiceStatus: Int {
case none = 0
case principleWaitResult = 11 // 原则批等待结果
case principleSupplement = 12 // 原则批待补件
case principleApproved = 13 // 原则批已获批
case principleRejected = 14 // 原则批未获批准
case officialApproved = 15 // 正式批已获批
}
class YHPrincipleWaitResultViewController: YHBaseViewController { class YHPrincipleWaitResultViewController: YHBaseViewController {
var orderId: Int = -1 var orderId: Int = -1
...@@ -47,16 +59,13 @@ class YHPrincipleWaitResultViewController: YHBaseViewController { ...@@ -47,16 +59,13 @@ class YHPrincipleWaitResultViewController: YHBaseViewController {
super.viewDidLoad() super.viewDidLoad()
self.view.backgroundColor = .white self.view.backgroundColor = .white
// 11 原则批等待结果 if self.status == YHCustomerServiceStatus.principleWaitResult.rawValue {
// 12 原则批待补件
// 14 原则批未获批准
if self.status == 11 {
self.gk_navTitle = "等待中" self.gk_navTitle = "等待中"
} else if self.status == 12 { } else if self.status == YHCustomerServiceStatus.principleRejected.rawValue {
self.gk_navTitle = "未获批准" self.gk_navTitle = "未获批准"
} else if self.status == 14 { } else if self.status == YHCustomerServiceStatus.principleSupplement.rawValue {
self.gk_navTitle = "待补件" self.gk_navTitle = "待补件"
} }
gk_navigationBar.backgroundColor = .clear gk_navigationBar.backgroundColor = .clear
...@@ -96,24 +105,38 @@ extension YHPrincipleWaitResultViewController { ...@@ -96,24 +105,38 @@ extension YHPrincipleWaitResultViewController {
} }
// 入境处已认收受理 // 入境处已认收受理
if !waitResultModel.applicationFileNumberAttachment.isEmpty {
let model2 = waitResultModel.copy() let model2 = waitResultModel.copy()
model2.type = .entry model2.type = .entry
model2.title = "入境处已认收受理" model2.title = "入境处已认收受理"
model2.subTitle = "申请确认通知书:(来自香港入境处)" model2.subTitle = "申请确认通知书:(来自香港入境处)"
model2.isUnfold = true if self.status == YHCustomerServiceStatus.principleWaitResult.rawValue { // 原则批等待结果
self.items.append(model2) model2.isUnfold = waitResultModel.resultImageList.count <= 0
} else if self.status == YHCustomerServiceStatus.principleSupplement.rawValue { // 原则批待补件
model2.isUnfold = false
} else if self.status == YHCustomerServiceStatus.principleRejected.rawValue { // 原则批未获批准
model2.isUnfold = false
} }
self.items.append(model2)
// 申请资料已递交港府留档 // 申请资料已递交港府留档
if waitResultModel.fileNumberList.count > 0 {
let model3 = waitResultModel.copy() let model3 = waitResultModel.copy()
model3.type = .profile model3.type = .profile
model3.title = "申请资料已递交港府留档" model3.title = "申请资料已递交港府留档"
model3.subTitle = "档案号:" model3.subTitle = "档案号:"
model3.isUnfold = true if self.status == YHCustomerServiceStatus.principleWaitResult.rawValue { // 原则批等待结果
self.items.append(model3) model3.isUnfold = waitResultModel.resultImageList.count <= 0
} else if self.status == YHCustomerServiceStatus.principleSupplement.rawValue { // 原则批待补件
model3.isUnfold = false
} else if self.status == YHCustomerServiceStatus.principleRejected.rawValue { // 原则批未获批准
model3.isUnfold = false
} }
self.items.append(model3)
self.tableView.reloadData() self.tableView.reloadData()
} }
...@@ -188,7 +211,7 @@ extension YHPrincipleWaitResultViewController: UITableViewDelegate, UITableViewD ...@@ -188,7 +211,7 @@ extension YHPrincipleWaitResultViewController: UITableViewDelegate, UITableViewD
name = String(name.prefix(5)) + "..." name = String(name.prefix(5)) + "..."
} }
let callName = self.viewModel.waitResultModel.applicant.sex == 2 ? "女士" : "先生" let callName = self.viewModel.waitResultModel.applicant.sex == 2 ? "女士" : "先生"
let helloName = self.status == 12 ? "很遗憾," : "您好," let helloName = self.status == YHCustomerServiceStatus.principleRejected.rawValue ? "很遗憾," : "您好,"
let title: ASAttributedString = .init("\(helloName)\(name)\(callName)!", .font(UIFont.PFSC_M(ofSize: 24)),.foreground(UIColor.mainTextColor)) let title: ASAttributedString = .init("\(helloName)\(name)\(callName)!", .font(UIFont.PFSC_M(ofSize: 24)),.foreground(UIColor.mainTextColor))
titleLabel.attributed.text = title titleLabel.attributed.text = title
view.addSubview(titleLabel) view.addSubview(titleLabel)
...@@ -245,7 +268,7 @@ extension YHPrincipleWaitResultViewController: UITableViewDelegate, UITableViewD ...@@ -245,7 +268,7 @@ extension YHPrincipleWaitResultViewController: UITableViewDelegate, UITableViewD
// 13 原则批已获批 // 13 原则批已获批
// 14 未获批准~ // 14 未获批准~
if status == 11 { // 等待原则批结果 if status == YHCustomerServiceStatus.principleWaitResult.rawValue { // 等待原则批结果
let str1: ASAttributedString = .init("您的【优秀人才入境计划】赴港居留申请资料已经递交港府,且入境事务处已经认收受理!港府审核周期预计在12个月内,", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor(alpha: 0.7))) let str1: ASAttributedString = .init("您的【优秀人才入境计划】赴港居留申请资料已经递交港府,且入境事务处已经认收受理!港府审核周期预计在12个月内,", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor(alpha: 0.7)))
let str2: ASAttributedString = .init("我们将实时为您查询身份申请进度", .font(UIFont.PFSC_B(ofSize: 14)),.foreground(UIColor.brandMainColor)) let str2: ASAttributedString = .init("我们将实时为您查询身份申请进度", .font(UIFont.PFSC_B(ofSize: 14)),.foreground(UIColor.brandMainColor))
var str3: ASAttributedString = .init(",请您耐心等待!", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor(alpha: 0.7))) var str3: ASAttributedString = .init(",请您耐心等待!", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor(alpha: 0.7)))
...@@ -254,12 +277,12 @@ extension YHPrincipleWaitResultViewController: UITableViewDelegate, UITableViewD ...@@ -254,12 +277,12 @@ extension YHPrincipleWaitResultViewController: UITableViewDelegate, UITableViewD
} }
return str1 + str2 + str3 return str1 + str2 + str3
} else if status == 12 { // 待补件 } else if status == YHCustomerServiceStatus.principleSupplement.rawValue { // 待补件
let str1: ASAttributedString = .init("受港府邮件通知,需要您补充资料才能继续后续流程。", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor(alpha: 0.7))) let str1: ASAttributedString = .init("受港府邮件通知,需要您补充资料才能继续后续流程。", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor(alpha: 0.7)))
let str2: ASAttributedString = .init("请联系为您服务的生活管家,为您提供更多详情!", .font(UIFont.PFSC_B(ofSize: 14)),.foreground(UIColor.brandMainColor)) let str2: ASAttributedString = .init("请联系为您服务的生活管家,为您提供更多详情!", .font(UIFont.PFSC_B(ofSize: 14)),.foreground(UIColor.brandMainColor))
return str1 + str2 return str1 + str2
} else if status == 14 { // 未获批准~ } else if status == YHCustomerServiceStatus.principleRejected.rawValue { // 未获批准~
let str1: ASAttributedString = .init("您【与家人】申请的【优秀人才入境计划】", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor(alpha: 0.7))) let str1: ASAttributedString = .init("您【与家人】申请的【优秀人才入境计划】", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor(alpha: 0.7)))
let str2: ASAttributedString = .init("未获批准", .font(UIFont.PFSC_B(ofSize: 14)),.foreground(UIColor.brandMainColor)) let str2: ASAttributedString = .init("未获批准", .font(UIFont.PFSC_B(ofSize: 14)),.foreground(UIColor.brandMainColor))
......
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