Commit 161fe2d8 authored by pete谢兆麟's avatar pete谢兆麟

服务中心逻辑

parent b83e48b8
...@@ -8494,7 +8494,7 @@ ...@@ -8494,7 +8494,7 @@
CODE_SIGN_ENTITLEMENTS = galaxy/galaxyTestEnv.entitlements; CODE_SIGN_ENTITLEMENTS = galaxy/galaxyTestEnv.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2; CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
...@@ -8521,7 +8521,7 @@ ...@@ -8521,7 +8521,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
MARKETING_VERSION = 2.2.3; MARKETING_VERSION = 2.2.4;
PRODUCT_BUNDLE_IDENTIFIER = com.intelligence.galaxy; PRODUCT_BUNDLE_IDENTIFIER = com.intelligence.galaxy;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = ""; PROVISIONING_PROFILE_SPECIFIER = "";
...@@ -8642,7 +8642,7 @@ ...@@ -8642,7 +8642,7 @@
CODE_SIGN_ENTITLEMENTS = galaxy/galaxy.entitlements; CODE_SIGN_ENTITLEMENTS = galaxy/galaxy.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2; CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
...@@ -8669,7 +8669,7 @@ ...@@ -8669,7 +8669,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
MARKETING_VERSION = 2.2.3; MARKETING_VERSION = 2.2.4;
PRODUCT_BUNDLE_IDENTIFIER = com.intelligence.galaxy; PRODUCT_BUNDLE_IDENTIFIER = com.intelligence.galaxy;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = ""; PROVISIONING_PROFILE_SPECIFIER = "";
...@@ -8852,7 +8852,7 @@ ...@@ -8852,7 +8852,7 @@
CODE_SIGN_ENTITLEMENTS = galaxy/galaxyDebug.entitlements; CODE_SIGN_ENTITLEMENTS = galaxy/galaxyDebug.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2; CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
...@@ -8879,7 +8879,7 @@ ...@@ -8879,7 +8879,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
MARKETING_VERSION = 2.2.3; MARKETING_VERSION = 2.2.4;
PRODUCT_BUNDLE_IDENTIFIER = com.intelligence.galaxy; PRODUCT_BUNDLE_IDENTIFIER = com.intelligence.galaxy;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = ""; PROVISIONING_PROFILE_SPECIFIER = "";
...@@ -8902,7 +8902,7 @@ ...@@ -8902,7 +8902,7 @@
CODE_SIGN_ENTITLEMENTS = galaxy/galaxy.entitlements; CODE_SIGN_ENTITLEMENTS = galaxy/galaxy.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2; CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
...@@ -8929,7 +8929,7 @@ ...@@ -8929,7 +8929,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
MARKETING_VERSION = 2.2.3; MARKETING_VERSION = 2.2.4;
PRODUCT_BUNDLE_IDENTIFIER = com.intelligence.galaxy; PRODUCT_BUNDLE_IDENTIFIER = com.intelligence.galaxy;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = ""; PROVISIONING_PROFILE_SPECIFIER = "";
......
...@@ -341,8 +341,12 @@ extension YHServiceCenterViewController { ...@@ -341,8 +341,12 @@ extension YHServiceCenterViewController {
self.homeTableView.tableHeaderView = UIView() self.homeTableView.tableHeaderView = UIView()
if self.model.product_type == 1 { if self.model.product_type == 1 {
self.titleLabel.setTitle("优才审批阶段", for: .normal) self.titleLabel.setTitle("优才审批阶段", for: .normal)
} else { } else if self.model.product_type == 2 {
self.titleLabel.setTitle("高才审批阶段", for: .normal) self.titleLabel.setTitle("高才审批阶段", for: .normal)
} else if self.model.product_type == 3 {
self.titleLabel.setTitle("专才审批阶段", for: .normal)
} else if self.model.product_type == 4 {
self.titleLabel.setTitle("留学审批阶段", for: .normal)
} }
self.titleLabel.setImage(UIImage(named: "service_center_select_step"), for: .normal) self.titleLabel.setImage(UIImage(named: "service_center_select_step"), for: .normal)
} }
...@@ -362,8 +366,12 @@ extension YHServiceCenterViewController { ...@@ -362,8 +366,12 @@ extension YHServiceCenterViewController {
self.headView.dataSource = self.serviceCenterMainReqVM.mainModel.renewalSection.list self.headView.dataSource = self.serviceCenterMainReqVM.mainModel.renewalSection.list
if self.model.product_type == 1 { if self.model.product_type == 1 {
self.titleLabel.setTitle("优才续签阶段", for: .normal) self.titleLabel.setTitle("优才续签阶段", for: .normal)
} else { } else if self.model.product_type == 2 {
self.titleLabel.setTitle("高才续签阶段", for: .normal) self.titleLabel.setTitle("高才续签阶段", for: .normal)
} else if self.model.product_type == 3 {
self.titleLabel.setTitle("专才续签阶段", for: .normal)
} else if self.model.product_type == 4 {
self.titleLabel.setTitle("留学续签阶段", for: .normal)
} }
self.titleLabel.setImage(UIImage(named: "service_center_select_step"), for: .normal) self.titleLabel.setImage(UIImage(named: "service_center_select_step"), for: .normal)
self.isCanSelectStep = true self.isCanSelectStep = true
...@@ -413,8 +421,12 @@ extension YHServiceCenterViewController { ...@@ -413,8 +421,12 @@ extension YHServiceCenterViewController {
self.homeTableView.tableHeaderView = UIView() self.homeTableView.tableHeaderView = UIView()
if self.model.product_type == 1 { if self.model.product_type == 1 {
self.titleLabel.setTitle("优才申请阶段", for: .normal) self.titleLabel.setTitle("优才申请阶段", for: .normal)
} else { } else if self.model.product_type == 2 {
self.titleLabel.setTitle("高才申请阶段", for: .normal) self.titleLabel.setTitle("高才申请阶段", for: .normal)
} else if self.model.product_type == 3 {
self.titleLabel.setTitle("专才申请阶段", for: .normal)
} else if self.model.product_type == 4 {
self.titleLabel.setTitle("留学申请阶段", for: .normal)
} }
self.titleLabel.setImage(UIImage(named: ""), for: .normal) self.titleLabel.setImage(UIImage(named: ""), for: .normal)
} }
...@@ -423,8 +435,12 @@ extension YHServiceCenterViewController { ...@@ -423,8 +435,12 @@ extension YHServiceCenterViewController {
self.homeTableView.tableHeaderView = UIView() self.homeTableView.tableHeaderView = UIView()
if self.model.product_type == 1 { if self.model.product_type == 1 {
self.titleLabel.setTitle("优才审批阶段", for: .normal) self.titleLabel.setTitle("优才审批阶段", for: .normal)
} else { } else if self.model.product_type == 2 {
self.titleLabel.setTitle("高才审批阶段", for: .normal) self.titleLabel.setTitle("高才审批阶段", for: .normal)
} else if self.model.product_type == 3 {
self.titleLabel.setTitle("专才审批阶段", for: .normal)
} else if self.model.product_type == 4 {
self.titleLabel.setTitle("留学审批阶段", for: .normal)
} }
if isCanSelectStep { if isCanSelectStep {
self.titleLabel.setImage(UIImage(named: "service_center_select_step"), for: .normal) self.titleLabel.setImage(UIImage(named: "service_center_select_step"), for: .normal)
...@@ -448,8 +464,12 @@ extension YHServiceCenterViewController { ...@@ -448,8 +464,12 @@ extension YHServiceCenterViewController {
self.headView.dataSource = self.serviceCenterMainReqVM.mainModel.renewalSection.list self.headView.dataSource = self.serviceCenterMainReqVM.mainModel.renewalSection.list
if self.model.product_type == 1 { if self.model.product_type == 1 {
self.titleLabel.setTitle("优才续签阶段", for: .normal) self.titleLabel.setTitle("优才续签阶段", for: .normal)
} else { } else if self.model.product_type == 2 {
self.titleLabel.setTitle("高才续签阶段", for: .normal) self.titleLabel.setTitle("高才续签阶段", for: .normal)
} else if self.model.product_type == 3 {
self.titleLabel.setTitle("专才续签阶段", for: .normal)
} else if self.model.product_type == 4 {
self.titleLabel.setTitle("留学续签阶段", for: .normal)
} }
self.titleLabel.setImage(UIImage(named: "service_center_select_step"), for: .normal) self.titleLabel.setImage(UIImage(named: "service_center_select_step"), for: .normal)
} }
......
...@@ -63,6 +63,8 @@ class YHServiceOrderListViewController: YHBaseViewController { ...@@ -63,6 +63,8 @@ class YHServiceOrderListViewController: YHBaseViewController {
NotificationCenter.default.addObserver(self, selector: #selector(endDragging), name: Notification.Name(rawValue: "scrollViewDidEndDragging0"), object: nil) NotificationCenter.default.addObserver(self, selector: #selector(endDragging), name: Notification.Name(rawValue: "scrollViewDidEndDragging0"), object: nil)
} }
// swiftlint:disable function_body_length
// swiftlint:disable cyclomatic_complexity
class func jumpToMessageController(type: Int, orderId: Int, _ stepId: Int = 0, productType: Int = 0) { class func jumpToMessageController(type: Int, orderId: Int, _ stepId: Int = 0, productType: Int = 0) {
if type == 1 { if type == 1 {
// 我的证件 // 我的证件
...@@ -204,6 +206,291 @@ class YHServiceOrderListViewController: YHBaseViewController { ...@@ -204,6 +206,291 @@ class YHServiceOrderListViewController: YHBaseViewController {
let vc = YHUploadCertificateVC() let vc = YHUploadCertificateVC()
vc.orderId = orderId vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc) UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 211 || type == 212 || type == 214 {
// 11 原则批等待结果
// 12 原则批待补件
// 14 原则批未获批准
let vc = YHPrincipleWaitResultViewController()
vc.status = type
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 213 {
// 原则批已获批~
let vc = YHPrincipleApprovedResultVC()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 215 {
// 正式批已获批~
let vc = YHOfficialApprovalResultVC()
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 221 {
// 新增受养人
let vc = YHAddAdoptersViewController()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 222 {
// 家庭信息确认
let vc = YHFamilyInfoConfirmViewController()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 223 {
// 电子签字缴费
let vc = YHVisaPaymentVC()
vc.orderID = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 224 {
// 赴港时间预约
let vc = YHCertificateAppointViewController()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 225 {
// 赴港行程指引
YHHUD.show(.progress(message: "加载中..."))
let appointViewModel = YHCerAppointViewModel()
appointViewModel.getIsNeedGoToHK(orderId: orderId) {
// needGoHK 1需要赴港 0不需要 2没有选择
// reservationToHK 0 没有预约 1 已经预約
needGoHK, reservationToHK in
YHHUD.hide()
var isNeedAppoint = true
if needGoHK == 1, reservationToHK == 1 { // 选择赴港且已预约
isNeedAppoint = false
} else if needGoHK == 0 { // 赴港选择否
isNeedAppoint = false
}
if isNeedAppoint {
// 预约弹窗
let alert = YHDisappointHKAlertView.alertView()
alert.confirmBlock = {
let vc = YHCertificateAppointViewController()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
}
alert.show()
} else { // 已预约过直接进入赴港行程指引
if let token = YHLoginManager.shared.userModel?.token, token.count > 5 {
var url = YHBaseUrlManager.shared.curH5URL() + "superAppBridge.html#/tohkList"
url = url + "?paramO=\(orderId)" + "&param=" + YHLoginManager.shared.h5Token
url = url + "&app_platform=ios" + "&app_version=" + UIDevice.appVersion()
printLog("UURL: \(url)")
let vc = YHH5WebViewVC()
vc.title = "赴港行程指引"
vc.url = url
vc.isFullScreenFlag = false
vc.navTitle = "赴港行程指引"
vc.isNeedRefreshDataFlag = true
UIViewController.current?.navigationController?.pushViewController(vc)
}
}
}
} else if type == 226 {
// 旅行证件准备
let vc = YHTravelDocsPreparationListViewController()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 227 {
// 上传过关证件
let vc = YHUploadCertificateVC()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 311 || type == 312 || type == 314 {
// 11 原则批等待结果
// 12 原则批待补件
// 14 原则批未获批准
let vc = YHPrincipleWaitResultViewController()
vc.status = type
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 313 {
// 原则批已获批~
let vc = YHPrincipleApprovedResultVC()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 315 {
// 正式批已获批~
let vc = YHOfficialApprovalResultVC()
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 321 {
// 新增受养人
let vc = YHAddAdoptersViewController()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 322 {
// 家庭信息确认
let vc = YHFamilyInfoConfirmViewController()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 323 {
// 电子签字缴费
let vc = YHVisaPaymentVC()
vc.orderID = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 324 {
// 赴港时间预约
let vc = YHCertificateAppointViewController()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 325 {
// 赴港行程指引
YHHUD.show(.progress(message: "加载中..."))
let appointViewModel = YHCerAppointViewModel()
appointViewModel.getIsNeedGoToHK(orderId: orderId) {
// needGoHK 1需要赴港 0不需要 2没有选择
// reservationToHK 0 没有预约 1 已经预約
needGoHK, reservationToHK in
YHHUD.hide()
var isNeedAppoint = true
if needGoHK == 1, reservationToHK == 1 { // 选择赴港且已预约
isNeedAppoint = false
} else if needGoHK == 0 { // 赴港选择否
isNeedAppoint = false
}
if isNeedAppoint {
// 预约弹窗
let alert = YHDisappointHKAlertView.alertView()
alert.confirmBlock = {
let vc = YHCertificateAppointViewController()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
}
alert.show()
} else { // 已预约过直接进入赴港行程指引
if let token = YHLoginManager.shared.userModel?.token, token.count > 5 {
var url = YHBaseUrlManager.shared.curH5URL() + "superAppBridge.html#/tohkList"
url = url + "?paramO=\(orderId)" + "&param=" + YHLoginManager.shared.h5Token
url = url + "&app_platform=ios" + "&app_version=" + UIDevice.appVersion()
printLog("UURL: \(url)")
let vc = YHH5WebViewVC()
vc.title = "赴港行程指引"
vc.url = url
vc.isFullScreenFlag = false
vc.navTitle = "赴港行程指引"
vc.isNeedRefreshDataFlag = true
UIViewController.current?.navigationController?.pushViewController(vc)
}
}
}
} else if type == 326 {
// 旅行证件准备
let vc = YHTravelDocsPreparationListViewController()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 327 {
// 上传过关证件
let vc = YHUploadCertificateVC()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 411 || type == 412 || type == 414 {
// 11 原则批等待结果
// 12 原则批待补件
// 14 原则批未获批准
let vc = YHPrincipleWaitResultViewController()
vc.status = type
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 413 {
// 原则批已获批~
let vc = YHPrincipleApprovedResultVC()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 415 {
// 正式批已获批~
let vc = YHOfficialApprovalResultVC()
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 421 {
// 新增受养人
let vc = YHAddAdoptersViewController()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 422 {
// 家庭信息确认
let vc = YHFamilyInfoConfirmViewController()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 423 {
// 电子签字缴费
let vc = YHVisaPaymentVC()
vc.orderID = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 424 {
// 赴港时间预约
let vc = YHCertificateAppointViewController()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 425 {
// 赴港行程指引
YHHUD.show(.progress(message: "加载中..."))
let appointViewModel = YHCerAppointViewModel()
appointViewModel.getIsNeedGoToHK(orderId: orderId) {
// needGoHK 1需要赴港 0不需要 2没有选择
// reservationToHK 0 没有预约 1 已经预約
needGoHK, reservationToHK in
YHHUD.hide()
var isNeedAppoint = true
if needGoHK == 1, reservationToHK == 1 { // 选择赴港且已预约
isNeedAppoint = false
} else if needGoHK == 0 { // 赴港选择否
isNeedAppoint = false
}
if isNeedAppoint {
// 预约弹窗
let alert = YHDisappointHKAlertView.alertView()
alert.confirmBlock = {
let vc = YHCertificateAppointViewController()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
}
alert.show()
} else { // 已预约过直接进入赴港行程指引
if let token = YHLoginManager.shared.userModel?.token, token.count > 5 {
var url = YHBaseUrlManager.shared.curH5URL() + "superAppBridge.html#/tohkList"
url = url + "?paramO=\(orderId)" + "&param=" + YHLoginManager.shared.h5Token
url = url + "&app_platform=ios" + "&app_version=" + UIDevice.appVersion()
printLog("UURL: \(url)")
let vc = YHH5WebViewVC()
vc.title = "赴港行程指引"
vc.url = url
vc.isFullScreenFlag = false
vc.navTitle = "赴港行程指引"
vc.isNeedRefreshDataFlag = true
UIViewController.current?.navigationController?.pushViewController(vc)
}
}
}
} else if type == 426 {
// 旅行证件准备
let vc = YHTravelDocsPreparationListViewController()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 427 {
// 上传过关证件
let vc = YHUploadCertificateVC()
vc.orderId = orderId
UIViewController.current?.navigationController?.pushViewController(vc)
} else if type == 31 { } else if type == 31 {
// 续签资料管理 // 续签资料管理
let vc = YHResinMaterialManageContainerVC() let vc = YHResinMaterialManageContainerVC()
...@@ -350,6 +637,8 @@ class YHServiceOrderListViewController: YHBaseViewController { ...@@ -350,6 +637,8 @@ class YHServiceOrderListViewController: YHBaseViewController {
UIViewController.current?.navigationController?.pushViewController(vc) UIViewController.current?.navigationController?.pushViewController(vc)
} }
} }
// swiftlint:enable function_body_length
// swiftlint:enable cyclomatic_complexity
} }
extension YHServiceOrderListViewController { extension YHServiceOrderListViewController {
...@@ -561,7 +850,7 @@ extension YHServiceOrderListViewController: UITableViewDelegate, UITableViewData ...@@ -561,7 +850,7 @@ extension YHServiceOrderListViewController: UITableViewDelegate, UITableViewData
let arr = self.arrDataForSeviceCenterProgress let arr = self.arrDataForSeviceCenterProgress
if 0 <= indexPath.row, indexPath.row < arr.count { if 0 <= indexPath.row, indexPath.row < arr.count {
let model = arr[indexPath.row] let model = arr[indexPath.row]
if model.type == 27 || model.type == 32 || model.type == 31 || model.type == 34 || model.type == 42 || model.type == 41 || model.type == 44 { if model.type == 27 || model.type == 227 || model.type == 327 || model.type == 427 || model.type == 32 || model.type == 31 || model.type == 34 || model.type == 42 || model.type == 41 || model.type == 44 {
return 162 return 162
} }
return 144 return 144
......
...@@ -18,7 +18,7 @@ struct YHContactItemModel: SmartCodable { ...@@ -18,7 +18,7 @@ struct YHContactItemModel: SmartCodable {
var type: String = "" var type: String = ""
var mobile: String = "" var mobile: String = ""
var status: Int = 0 var status: Int = 0
var product_type: Int = 0 // 1-优才 2-高才 var product_type: Int = 0 // 1-优才 2-高才 // 3-专才 // 4-留学
var isOther: Bool = false // 是否协作单 var isOther: Bool = false // 是否协作单
var service_name: String = "" var service_name: String = ""
} }
...@@ -154,6 +154,149 @@ extension YHServiceOrderProgressTableViewCell { ...@@ -154,6 +154,149 @@ extension YHServiceOrderProgressTableViewCell {
messageLabel.text = "点击保存入境小白条及香港身份证(后续身份续签、永居均涉及)" messageLabel.text = "点击保存入境小白条及香港身份证(后续身份续签、永居均涉及)"
} }
if model.type == 222 {
titleLabel.text = "家庭信息确认"
messageLabel.text = "请确认现阶段信息是否存在变更~"
}
if model.type == 221 {
titleLabel.text = "新增受养人"
messageLabel.text = "如需,建议现阶段新增,激活后新增需香港住址证明"
progress.isHidden = true
progressImageView.isHidden = true
progressLabel.isHidden = true
messageLabel.snp.remakeConstraints { make in
make.top.equalTo(49)
make.left.equalTo(21)
make.right.equalTo(-21)
}
}
if model.type == 224 {
titleLabel.text = "赴港办证预约"
messageLabel.text = "请填写意向办证时间,银河代预约~"
}
if model.type == 223 {
titleLabel.text = "电子签证缴费"
messageLabel.text = "请根据指引缴费领取电子签证~"
}
if model.type == 225 {
titleLabel.text = "赴港行程指引"
messageLabel.text = "请根据指引清单提前规划赴港行程"
progressImageView.isHidden = true
progressLabel.isHidden = true
messageLabel.snp.remakeConstraints { make in
make.top.equalTo(49)
make.left.equalTo(21)
make.right.equalTo(-21)
}
}
if model.type == 226 {
titleLabel.text = "旅行证件准备"
messageLabel.text = "请更新所有赴港人员的旅行证件"
}
if model.type == 227 {
titleLabel.text = "上传过关证件"
messageLabel.text = "点击保存入境小白条及香港身份证(后续身份续签、永居均涉及)"
}
if model.type == 322 {
titleLabel.text = "家庭信息确认"
messageLabel.text = "请确认现阶段信息是否存在变更~"
}
if model.type == 321 {
titleLabel.text = "新增受养人"
messageLabel.text = "如需,建议现阶段新增,激活后新增需香港住址证明"
progress.isHidden = true
progressImageView.isHidden = true
progressLabel.isHidden = true
messageLabel.snp.remakeConstraints { make in
make.top.equalTo(49)
make.left.equalTo(21)
make.right.equalTo(-21)
}
}
if model.type == 324 {
titleLabel.text = "赴港办证预约"
messageLabel.text = "请填写意向办证时间,银河代预约~"
}
if model.type == 323 {
titleLabel.text = "电子签证缴费"
messageLabel.text = "请根据指引缴费领取电子签证~"
}
if model.type == 325 {
titleLabel.text = "赴港行程指引"
messageLabel.text = "请根据指引清单提前规划赴港行程"
progressImageView.isHidden = true
progressLabel.isHidden = true
messageLabel.snp.remakeConstraints { make in
make.top.equalTo(49)
make.left.equalTo(21)
make.right.equalTo(-21)
}
}
if model.type == 326 {
titleLabel.text = "旅行证件准备"
messageLabel.text = "请更新所有赴港人员的旅行证件"
}
if model.type == 327 {
titleLabel.text = "上传过关证件"
messageLabel.text = "点击保存入境小白条及香港身份证(后续身份续签、永居均涉及)"
}
if model.type == 422 {
titleLabel.text = "家庭信息确认"
messageLabel.text = "请确认现阶段信息是否存在变更~"
}
if model.type == 421 {
titleLabel.text = "新增受养人"
messageLabel.text = "如需,建议现阶段新增,激活后新增需香港住址证明"
progress.isHidden = true
progressImageView.isHidden = true
progressLabel.isHidden = true
messageLabel.snp.remakeConstraints { make in
make.top.equalTo(49)
make.left.equalTo(21)
make.right.equalTo(-21)
}
}
if model.type == 424 {
titleLabel.text = "赴港办证预约"
messageLabel.text = "请填写意向办证时间,银河代预约~"
}
if model.type == 423 {
titleLabel.text = "电子签证缴费"
messageLabel.text = "请根据指引缴费领取电子签证~"
}
if model.type == 425 {
titleLabel.text = "赴港行程指引"
messageLabel.text = "请根据指引清单提前规划赴港行程"
progressImageView.isHidden = true
progressLabel.isHidden = true
messageLabel.snp.remakeConstraints { make in
make.top.equalTo(49)
make.left.equalTo(21)
make.right.equalTo(-21)
}
}
if model.type == 426 {
titleLabel.text = "旅行证件准备"
messageLabel.text = "请更新所有赴港人员的旅行证件"
}
if model.type == 427 {
titleLabel.text = "上传过关证件"
messageLabel.text = "点击保存入境小白条及香港身份证(后续身份续签、永居均涉及)"
}
if model.type == 31 { if model.type == 31 {
titleLabel.text = "续签资料管理" titleLabel.text = "续签资料管理"
messageLabel.text = "请根据资料清单上传您的续签证明文件~" messageLabel.text = "请根据资料清单上传您的续签证明文件~"
...@@ -229,112 +372,509 @@ extension YHServiceOrderProgressTableViewCell { ...@@ -229,112 +372,509 @@ extension YHServiceOrderProgressTableViewCell {
messageLabel.text = "请根据指引缴费并领取新电子签证~" messageLabel.text = "请根据指引缴费并领取新电子签证~"
} }
if model.type == 48 { if model.type == 48 {
titleLabel.text = "上传旅行证件" titleLabel.text = "上传旅行证件"
messageLabel.text = "请上传&核对续签旅行证件~" messageLabel.text = "请上传&核对续签旅行证件~"
}
if model.type == 201 {
titleLabel.text = "我的信息"
}
if model.type == 202 {
titleLabel.text = "我的方案"
messageLabel.text = "您的专属方案还没生成哦~"
}
if model.type == 203 {
titleLabel.text = "我的证件"
messageLabel.text = "您的证件还没生成哦~"
}
if model.type == 204 {
titleLabel.text = "我的签字"
messageLabel.text = "您的文件还没签字哦~"
}
}
if model.status == 2 {
titleLabel.textColor = UIColor.mainTextColor
buttonLabel.text = "进行中"
buttonLabel.backgroundColor = UIColor.brandMainColor
progressImageView.image = UIImage(named: "service_progress_start")
progress.changeColor(UIColor.brandMainColor)
// 1 证件 2 信息完善 3 我的评分 4 我的方案 5 我的签字 6我的文书
if model.type == 1 {
titleLabel.text = "我的证件"
// messageLabel.text = "恭喜您,证件已全部上传完~"
buttonLabel.text = "去上传"
let a: ASAttributedString = .init("您还有", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
let aa: ASAttributedString = .init(NSAttributedString(string: "\(model.num)份"), .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.brandMainColor))
let aaa: ASAttributedString = .init("证件待上传哦~", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
messageLabel.attributed.text = a + aa + aaa
}
if model.type == 2 {
titleLabel.text = "我的信息"
buttonLabel.text = "去填写"
if model.reject_status == 0 {
let a: ASAttributedString = .init("您还有", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
let aa: ASAttributedString = .init(NSAttributedString(string: "\(model.num)份"), .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.brandMainColor))
let aaa: ASAttributedString = .init("信息待填写哦~", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
messageLabel.attributed.text = a + aa + aaa
} else {
let a: ASAttributedString = .init("您的信息被", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
let aa: ASAttributedString = .init(NSAttributedString(string: "驳回"), .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.failColor))
let aaa: ASAttributedString = .init("了哦~", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
messageLabel.attributed.text = a + aa + aaa
buttonLabel.text = "去修改"
}
}
if model.type == 3 {
titleLabel.text = "我的评分"
messageLabel.text = "后端出问题会显示"
}
if model.type == 4 {
titleLabel.text = "我的方案"
messageLabel.text = "后端出问题会显示"
}
if model.type == 5 {
titleLabel.text = "我的签字"
buttonLabel.text = "去签字"
let a: ASAttributedString = .init("您还有", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
let aa: ASAttributedString = .init(NSAttributedString(string: "\(model.num)份"), .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.brandMainColor))
let aaa: ASAttributedString = .init("文件待签字哦~", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
messageLabel.attributed.text = a + aa + aaa
}
if model.type == 6 {
titleLabel.text = "我的文书"
buttonLabel.text = "去确认"
if model.percentage == 66 {
let a: ASAttributedString = .init("您的文书正在", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
let aa: ASAttributedString = .init(NSAttributedString(string: "审核中"), .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.brandMainColor))
let aaa: ASAttributedString = .init("哦~", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
messageLabel.attributed.text = a + aa + aaa
buttonLabel.text = "请稍候"
buttonLabel.backgroundColor = UIColor.mainTextColor50
} else {
let a: ASAttributedString = .init("您还有", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
let aa: ASAttributedString = .init(NSAttributedString(string: "\(model.num)份"), .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.brandMainColor))
let aaa: ASAttributedString = .init("文书待返稿哦~", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
messageLabel.attributed.text = a + aa + aaa
}
}
if model.type == 7 {
titleLabel.text = "递交确认"
let a: ASAttributedString = .init("您还有", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
let aa: ASAttributedString = .init(NSAttributedString(string: "\(model.num)项"), .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.brandMainColor))
let aaa: ASAttributedString = .init("信息确认签署待完成哦~", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
messageLabel.attributed.text = a + aa + aaa
buttonLabel.text = "去确认"
}
let b: ASAttributedString = .init(NSAttributedString(string: "\(model.percentage)"), .font(UIFont(name: "DINAlternate-Bold", size: 24)!), .foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 10)), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
progressLabel.attributed.text = b + bb
if model.type == 11 {
titleLabel.text = "港府获批结果"
messageLabel.text = "正在等待原则批结果~"
buttonLabel.text = "去查看"
buttonLabel.backgroundColor = UIColor.brandMainColor
messageLabel.textColor = UIColor.mainTextColor50
progress.changeColor(UIColor.brandMainColor)
progressImageView.image = UIImage(named: "service_progress_normal")
let b: ASAttributedString = .init(NSAttributedString(string: "\(model.percentage)"), .font(UIFont(name: "DINAlternate-Bold", size: 24)!), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
let bb: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 10)), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
progressLabel.attributed.text = b + bb
}
if model.type == 12 {
titleLabel.text = "港府获批结果"
messageLabel.text = "正在进行原则批补件~"
buttonLabel.text = "去查看"
buttonLabel.backgroundColor = UIColor.brandMainColor
messageLabel.textColor = UIColor.mainTextColor50
progress.changeColor(UIColor.brandMainColor)
progressImageView.image = UIImage(named: "service_progress_normal")
let b: ASAttributedString = .init(NSAttributedString(string: "\(model.percentage)"), .font(UIFont(name: "DINAlternate-Bold", size: 24)!), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
let bb: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 10)), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
progressLabel.attributed.text = b + bb
}
if model.type == 13 {
titleLabel.text = "港府获批结果"
messageLabel.text = "恭喜您,原则批已获批~"
buttonLabel.text = "去查看"
buttonLabel.backgroundColor = UIColor.brandMainColor
messageLabel.textColor = UIColor.mainTextColor50
progress.changeColor(UIColor.brandMainColor)
progressImageView.image = UIImage(named: "service_progress_start")
let b: ASAttributedString = .init(NSAttributedString(string: "\(model.percentage)"), .font(UIFont(name: "DINAlternate-Bold", size: 24)!), .foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 10)), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
progressLabel.attributed.text = b + bb
}
if model.type == 14 {
titleLabel.text = "港府获批结果"
messageLabel.text = "很遗憾,您未获批准~"
buttonLabel.text = "去查看"
buttonLabel.backgroundColor = UIColor(hex: 0x55cba0)
messageLabel.textColor = UIColor.mainTextColor50
progress.changeColor(UIColor(hex: 0x55cba0))
progressImageView.image = UIImage(named: "service_progress_end")
let b: ASAttributedString = .init(NSAttributedString(string: "\(model.percentage)"), .font(UIFont(name: "DINAlternate-Bold", size: 24)!), .foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 10)), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
progressLabel.attributed.text = b + bb
}
if model.type == 15 {
titleLabel.text = "港府获批结果"
messageLabel.text = "恭喜您,正式批已获批~"
buttonLabel.text = "去查看"
buttonLabel.backgroundColor = UIColor(hex: 0x55cba0)
messageLabel.textColor = UIColor.mainTextColor50
progress.changeColor(UIColor(hex: 0x55cba0))
progressImageView.image = UIImage(named: "service_progress_end")
let b: ASAttributedString = .init(NSAttributedString(string: "\(model.percentage)"), .font(UIFont(name: "DINAlternate-Bold", size: 24)!), .foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 10)), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
progressLabel.attributed.text = b + bb
}
if model.type == 22 {
titleLabel.text = "家庭信息确认"
messageLabel.text = "请确认现阶段信息是否存在变更~"
buttonLabel.text = "待确认"
messageLabel.textColor = UIColor.mainTextColor50
}
if model.type == 21 {
titleLabel.text = "新增受养人"
messageLabel.text = "如需,建议现阶段新增,激活后新增需香港住址证明"
buttonLabel.text = "待完善"
progress.isHidden = true
progressImageView.isHidden = true
progressLabel.isHidden = true
messageLabel.textColor = UIColor.mainTextColor50
messageLabel.snp.remakeConstraints { make in
make.top.equalTo(49)
make.left.equalTo(21)
make.right.equalTo(-21)
}
}
if model.type == 24 {
titleLabel.text = "赴港办证预约"
if model.percentage == 50 {
messageLabel.text = "抢号中~"
} else {
messageLabel.text = "请填写意向办证时间,银河代预约~"
}
buttonLabel.text = "去查看"
messageLabel.textColor = UIColor.mainTextColor50
}
if model.type == 23 {
titleLabel.text = "电子签证缴费"
messageLabel.text = "请根据指引缴费领取电子签证~"
buttonLabel.text = "待缴费"
messageLabel.textColor = UIColor.mainTextColor50
}
if model.type == 25 {
titleLabel.text = "赴港行程指引"
messageLabel.text = "请根据指引清单提前规划赴港行程"
buttonLabel.text = "去查看"
messageLabel.textColor = UIColor.mainTextColor50
progressImageView.isHidden = true
progressLabel.isHidden = true
messageLabel.snp.remakeConstraints { make in
make.top.equalTo(49)
make.left.equalTo(21)
make.right.equalTo(-21)
}
}
if model.type == 26 {
titleLabel.text = "旅行证件准备"
messageLabel.text = "请更新所有赴港人员的旅行证件"
buttonLabel.text = "去上传"
messageLabel.textColor = UIColor.mainTextColor50
}
if model.type == 27 {
titleLabel.text = "上传过关证件"
messageLabel.text = "点击保存入境小白条及香港身份证(后续身份续签、永居均涉及)"
buttonLabel.text = "去上传"
messageLabel.textColor = UIColor.mainTextColor50
}
if model.type == 211 {
titleLabel.text = "港府获批结果"
messageLabel.text = "正在等待原则批结果~"
buttonLabel.text = "去查看"
buttonLabel.backgroundColor = UIColor.brandMainColor
messageLabel.textColor = UIColor.mainTextColor50
progress.changeColor(UIColor.brandMainColor)
progressImageView.image = UIImage(named: "service_progress_normal")
let b: ASAttributedString = .init(NSAttributedString(string: "\(model.percentage)"), .font(UIFont(name: "DINAlternate-Bold", size: 24)!), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
let bb: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 10)), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
progressLabel.attributed.text = b + bb
}
if model.type == 212 {
titleLabel.text = "港府获批结果"
messageLabel.text = "正在进行原则批补件~"
buttonLabel.text = "去查看"
buttonLabel.backgroundColor = UIColor.brandMainColor
messageLabel.textColor = UIColor.mainTextColor50
progress.changeColor(UIColor.brandMainColor)
progressImageView.image = UIImage(named: "service_progress_normal")
let b: ASAttributedString = .init(NSAttributedString(string: "\(model.percentage)"), .font(UIFont(name: "DINAlternate-Bold", size: 24)!), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
let bb: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 10)), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
progressLabel.attributed.text = b + bb
}
if model.type == 213 {
titleLabel.text = "港府获批结果"
messageLabel.text = "恭喜您,原则批已获批~"
buttonLabel.text = "去查看"
buttonLabel.backgroundColor = UIColor.brandMainColor
messageLabel.textColor = UIColor.mainTextColor50
progress.changeColor(UIColor.brandMainColor)
progressImageView.image = UIImage(named: "service_progress_start")
let b: ASAttributedString = .init(NSAttributedString(string: "\(model.percentage)"), .font(UIFont(name: "DINAlternate-Bold", size: 24)!), .foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 10)), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
progressLabel.attributed.text = b + bb
}
if model.type == 214 {
titleLabel.text = "港府获批结果"
messageLabel.text = "很遗憾,您未获批准~"
buttonLabel.text = "去查看"
buttonLabel.backgroundColor = UIColor(hex: 0x55cba0)
messageLabel.textColor = UIColor.mainTextColor50
progress.changeColor(UIColor(hex: 0x55cba0))
progressImageView.image = UIImage(named: "service_progress_end")
let b: ASAttributedString = .init(NSAttributedString(string: "\(model.percentage)"), .font(UIFont(name: "DINAlternate-Bold", size: 24)!), .foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 10)), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
progressLabel.attributed.text = b + bb
}
if model.type == 215 {
titleLabel.text = "港府获批结果"
messageLabel.text = "恭喜您,正式批已获批~"
buttonLabel.text = "去查看"
buttonLabel.backgroundColor = UIColor(hex: 0x55cba0)
messageLabel.textColor = UIColor.mainTextColor50
progress.changeColor(UIColor(hex: 0x55cba0))
progressImageView.image = UIImage(named: "service_progress_end")
let b: ASAttributedString = .init(NSAttributedString(string: "\(model.percentage)"), .font(UIFont(name: "DINAlternate-Bold", size: 24)!), .foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 10)), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
progressLabel.attributed.text = b + bb
}
if model.type == 222 {
titleLabel.text = "家庭信息确认"
messageLabel.text = "请确认现阶段信息是否存在变更~"
buttonLabel.text = "待确认"
messageLabel.textColor = UIColor.mainTextColor50
}
if model.type == 221 {
titleLabel.text = "新增受养人"
messageLabel.text = "如需,建议现阶段新增,激活后新增需香港住址证明"
buttonLabel.text = "待完善"
progress.isHidden = true
progressImageView.isHidden = true
progressLabel.isHidden = true
messageLabel.textColor = UIColor.mainTextColor50
messageLabel.snp.remakeConstraints { make in
make.top.equalTo(49)
make.left.equalTo(21)
make.right.equalTo(-21)
}
}
if model.type == 224 {
titleLabel.text = "赴港办证预约"
if model.percentage == 50 {
messageLabel.text = "抢号中~"
} else {
messageLabel.text = "请填写意向办证时间,银河代预约~"
}
buttonLabel.text = "去查看"
messageLabel.textColor = UIColor.mainTextColor50
}
if model.type == 223 {
titleLabel.text = "电子签证缴费"
messageLabel.text = "请根据指引缴费领取电子签证~"
buttonLabel.text = "待缴费"
messageLabel.textColor = UIColor.mainTextColor50
}
if model.type == 225 {
titleLabel.text = "赴港行程指引"
messageLabel.text = "请根据指引清单提前规划赴港行程"
buttonLabel.text = "去查看"
messageLabel.textColor = UIColor.mainTextColor50
progressImageView.isHidden = true
progressLabel.isHidden = true
messageLabel.snp.remakeConstraints { make in
make.top.equalTo(49)
make.left.equalTo(21)
make.right.equalTo(-21)
}
}
if model.type == 226 {
titleLabel.text = "旅行证件准备"
messageLabel.text = "请更新所有赴港人员的旅行证件"
buttonLabel.text = "去上传"
messageLabel.textColor = UIColor.mainTextColor50
}
if model.type == 227 {
titleLabel.text = "上传过关证件"
messageLabel.text = "点击保存入境小白条及香港身份证(后续身份续签、永居均涉及)"
buttonLabel.text = "去上传"
messageLabel.textColor = UIColor.mainTextColor50
}
if model.type == 311 {
titleLabel.text = "港府获批结果"
messageLabel.text = "正在等待原则批结果~"
buttonLabel.text = "去查看"
buttonLabel.backgroundColor = UIColor.brandMainColor
messageLabel.textColor = UIColor.mainTextColor50
progress.changeColor(UIColor.brandMainColor)
progressImageView.image = UIImage(named: "service_progress_normal")
let b: ASAttributedString = .init(NSAttributedString(string: "\(model.percentage)"), .font(UIFont(name: "DINAlternate-Bold", size: 24)!), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
let bb: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 10)), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
progressLabel.attributed.text = b + bb
}
if model.type == 312 {
titleLabel.text = "港府获批结果"
messageLabel.text = "正在进行原则批补件~"
buttonLabel.text = "去查看"
buttonLabel.backgroundColor = UIColor.brandMainColor
messageLabel.textColor = UIColor.mainTextColor50
progress.changeColor(UIColor.brandMainColor)
progressImageView.image = UIImage(named: "service_progress_normal")
let b: ASAttributedString = .init(NSAttributedString(string: "\(model.percentage)"), .font(UIFont(name: "DINAlternate-Bold", size: 24)!), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
let bb: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 10)), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
progressLabel.attributed.text = b + bb
}
if model.type == 313 {
titleLabel.text = "港府获批结果"
messageLabel.text = "恭喜您,原则批已获批~"
buttonLabel.text = "去查看"
buttonLabel.backgroundColor = UIColor.brandMainColor
messageLabel.textColor = UIColor.mainTextColor50
progress.changeColor(UIColor.brandMainColor)
progressImageView.image = UIImage(named: "service_progress_start")
let b: ASAttributedString = .init(NSAttributedString(string: "\(model.percentage)"), .font(UIFont(name: "DINAlternate-Bold", size: 24)!), .foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 10)), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
progressLabel.attributed.text = b + bb
}
if model.type == 314 {
titleLabel.text = "港府获批结果"
messageLabel.text = "很遗憾,您未获批准~"
buttonLabel.text = "去查看"
buttonLabel.backgroundColor = UIColor(hex: 0x55cba0)
messageLabel.textColor = UIColor.mainTextColor50
progress.changeColor(UIColor(hex: 0x55cba0))
progressImageView.image = UIImage(named: "service_progress_end")
let b: ASAttributedString = .init(NSAttributedString(string: "\(model.percentage)"), .font(UIFont(name: "DINAlternate-Bold", size: 24)!), .foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 10)), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
progressLabel.attributed.text = b + bb
} }
if model.type == 201 { if model.type == 315 {
titleLabel.text = "我的信息" titleLabel.text = "港府获批结果"
} messageLabel.text = "恭喜您,正式批已获批~"
buttonLabel.text = "去查看"
if model.type == 202 { buttonLabel.backgroundColor = UIColor(hex: 0x55cba0)
titleLabel.text = "我的方案" messageLabel.textColor = UIColor.mainTextColor50
messageLabel.text = "您的专属方案还没生成哦~" progress.changeColor(UIColor(hex: 0x55cba0))
progressImageView.image = UIImage(named: "service_progress_end")
let b: ASAttributedString = .init(NSAttributedString(string: "\(model.percentage)"), .font(UIFont(name: "DINAlternate-Bold", size: 24)!), .foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 10)), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3)))
progressLabel.attributed.text = b + bb
} }
if model.type == 203 { if model.type == 322 {
titleLabel.text = "我的证件" titleLabel.text = "家庭信息确认"
messageLabel.text = "您的证件还没生成哦~" messageLabel.text = "请确认现阶段信息是否存在变更~"
buttonLabel.text = "待确认"
messageLabel.textColor = UIColor.mainTextColor50
} }
if model.type == 204 { if model.type == 321 {
titleLabel.text = "我的签字" titleLabel.text = "新增受养人"
messageLabel.text = "您的文件还没签字哦~" messageLabel.text = "如需,建议现阶段新增,激活后新增需香港住址证明"
buttonLabel.text = "待完善"
progress.isHidden = true
progressImageView.isHidden = true
progressLabel.isHidden = true
messageLabel.textColor = UIColor.mainTextColor50
messageLabel.snp.remakeConstraints { make in
make.top.equalTo(49)
make.left.equalTo(21)
make.right.equalTo(-21)
}
} }
} if model.type == 324 {
if model.status == 2 { titleLabel.text = "赴港办证预约"
titleLabel.textColor = UIColor.mainTextColor if model.percentage == 50 {
buttonLabel.text = "进行中" messageLabel.text = "抢号中~"
buttonLabel.backgroundColor = UIColor.brandMainColor
progressImageView.image = UIImage(named: "service_progress_start")
progress.changeColor(UIColor.brandMainColor)
// 1 证件 2 信息完善 3 我的评分 4 我的方案 5 我的签字 6我的文书
if model.type == 1 {
titleLabel.text = "我的证件"
// messageLabel.text = "恭喜您,证件已全部上传完~"
buttonLabel.text = "去上传"
let a: ASAttributedString = .init("您还有", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
let aa: ASAttributedString = .init(NSAttributedString(string: "\(model.num)份"), .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.brandMainColor))
let aaa: ASAttributedString = .init("证件待上传哦~", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
messageLabel.attributed.text = a + aa + aaa
}
if model.type == 2 {
titleLabel.text = "我的信息"
buttonLabel.text = "去填写"
if model.reject_status == 0 {
let a: ASAttributedString = .init("您还有", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
let aa: ASAttributedString = .init(NSAttributedString(string: "\(model.num)份"), .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.brandMainColor))
let aaa: ASAttributedString = .init("信息待填写哦~", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
messageLabel.attributed.text = a + aa + aaa
} else { } else {
let a: ASAttributedString = .init("您的信息被", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor)) messageLabel.text = "请填写意向办证时间,银河代预约~"
let aa: ASAttributedString = .init(NSAttributedString(string: "驳回"), .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.failColor))
let aaa: ASAttributedString = .init("了哦~", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
messageLabel.attributed.text = a + aa + aaa
buttonLabel.text = "去修改"
} }
buttonLabel.text = "去查看"
messageLabel.textColor = UIColor.mainTextColor50
} }
if model.type == 3 {
titleLabel.text = "我的评分" if model.type == 323 {
messageLabel.text = "后端出问题会显示" titleLabel.text = "电子签证缴费"
} messageLabel.text = "请根据指引缴费领取电子签证~"
if model.type == 4 { buttonLabel.text = "待缴费"
titleLabel.text = "我的方案" messageLabel.textColor = UIColor.mainTextColor50
messageLabel.text = "后端出问题会显示"
}
if model.type == 5 {
titleLabel.text = "我的签字"
buttonLabel.text = "去签字"
let a: ASAttributedString = .init("您还有", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
let aa: ASAttributedString = .init(NSAttributedString(string: "\(model.num)份"), .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.brandMainColor))
let aaa: ASAttributedString = .init("文件待签字哦~", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
messageLabel.attributed.text = a + aa + aaa
} }
if model.type == 6 {
titleLabel.text = "我的文书" if model.type == 325 {
buttonLabel.text = "去确认" titleLabel.text = "赴港行程指引"
if model.percentage == 66 { messageLabel.text = "请根据指引清单提前规划赴港行程"
let a: ASAttributedString = .init("您的文书正在", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor)) buttonLabel.text = "去查看"
let aa: ASAttributedString = .init(NSAttributedString(string: "审核中"), .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.brandMainColor)) messageLabel.textColor = UIColor.mainTextColor50
let aaa: ASAttributedString = .init("哦~", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor)) progressImageView.isHidden = true
messageLabel.attributed.text = a + aa + aaa progressLabel.isHidden = true
buttonLabel.text = "请稍候" messageLabel.snp.remakeConstraints { make in
buttonLabel.backgroundColor = UIColor.mainTextColor50 make.top.equalTo(49)
} else { make.left.equalTo(21)
let a: ASAttributedString = .init("您还有", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor)) make.right.equalTo(-21)
let aa: ASAttributedString = .init(NSAttributedString(string: "\(model.num)份"), .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.brandMainColor))
let aaa: ASAttributedString = .init("文书待返稿哦~", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor))
messageLabel.attributed.text = a + aa + aaa
} }
} }
if model.type == 7 { if model.type == 326 {
titleLabel.text = "递交确认" titleLabel.text = "旅行证件准备"
let a: ASAttributedString = .init("您还有", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor)) messageLabel.text = "请更新所有赴港人员的旅行证件"
let aa: ASAttributedString = .init(NSAttributedString(string: "\(model.num)项"), .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.brandMainColor)) buttonLabel.text = "去上传"
let aaa: ASAttributedString = .init("信息确认签署待完成哦~", .font(UIFont.PFSC_M(ofSize: 13)), .foreground(UIColor.yhGreyColor)) messageLabel.textColor = UIColor.mainTextColor50
messageLabel.attributed.text = a + aa + aaa
buttonLabel.text = "去确认"
} }
let b: ASAttributedString = .init(NSAttributedString(string: "\(model.percentage)"), .font(UIFont(name: "DINAlternate-Bold", size: 24)!), .foreground(UIColor.mainTextColor)) if model.type == 327 {
let bb: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 10)), .foreground(UIColor.mainTextColor.withAlphaComponent(0.3))) titleLabel.text = "上传过关证件"
progressLabel.attributed.text = b + bb messageLabel.text = "点击保存入境小白条及香港身份证(后续身份续签、永居均涉及)"
buttonLabel.text = "去上传"
if model.type == 11 { messageLabel.textColor = UIColor.mainTextColor50
}
if model.type == 411 {
titleLabel.text = "港府获批结果" titleLabel.text = "港府获批结果"
messageLabel.text = "正在等待原则批结果~" messageLabel.text = "正在等待原则批结果~"
buttonLabel.text = "去查看" buttonLabel.text = "去查看"
...@@ -347,7 +887,7 @@ extension YHServiceOrderProgressTableViewCell { ...@@ -347,7 +887,7 @@ extension YHServiceOrderProgressTableViewCell {
progressLabel.attributed.text = b + bb progressLabel.attributed.text = b + bb
} }
if model.type == 12 { if model.type == 412 {
titleLabel.text = "港府获批结果" titleLabel.text = "港府获批结果"
messageLabel.text = "正在进行原则批补件~" messageLabel.text = "正在进行原则批补件~"
buttonLabel.text = "去查看" buttonLabel.text = "去查看"
...@@ -360,7 +900,7 @@ extension YHServiceOrderProgressTableViewCell { ...@@ -360,7 +900,7 @@ extension YHServiceOrderProgressTableViewCell {
progressLabel.attributed.text = b + bb progressLabel.attributed.text = b + bb
} }
if model.type == 13 { if model.type == 413 {
titleLabel.text = "港府获批结果" titleLabel.text = "港府获批结果"
messageLabel.text = "恭喜您,原则批已获批~" messageLabel.text = "恭喜您,原则批已获批~"
buttonLabel.text = "去查看" buttonLabel.text = "去查看"
...@@ -373,7 +913,7 @@ extension YHServiceOrderProgressTableViewCell { ...@@ -373,7 +913,7 @@ extension YHServiceOrderProgressTableViewCell {
progressLabel.attributed.text = b + bb progressLabel.attributed.text = b + bb
} }
if model.type == 14 { if model.type == 414 {
titleLabel.text = "港府获批结果" titleLabel.text = "港府获批结果"
messageLabel.text = "很遗憾,您未获批准~" messageLabel.text = "很遗憾,您未获批准~"
buttonLabel.text = "去查看" buttonLabel.text = "去查看"
...@@ -386,7 +926,7 @@ extension YHServiceOrderProgressTableViewCell { ...@@ -386,7 +926,7 @@ extension YHServiceOrderProgressTableViewCell {
progressLabel.attributed.text = b + bb progressLabel.attributed.text = b + bb
} }
if model.type == 15 { if model.type == 415 {
titleLabel.text = "港府获批结果" titleLabel.text = "港府获批结果"
messageLabel.text = "恭喜您,正式批已获批~" messageLabel.text = "恭喜您,正式批已获批~"
buttonLabel.text = "去查看" buttonLabel.text = "去查看"
...@@ -399,14 +939,14 @@ extension YHServiceOrderProgressTableViewCell { ...@@ -399,14 +939,14 @@ extension YHServiceOrderProgressTableViewCell {
progressLabel.attributed.text = b + bb progressLabel.attributed.text = b + bb
} }
if model.type == 22 { if model.type == 422 {
titleLabel.text = "家庭信息确认" titleLabel.text = "家庭信息确认"
messageLabel.text = "请确认现阶段信息是否存在变更~" messageLabel.text = "请确认现阶段信息是否存在变更~"
buttonLabel.text = "待确认" buttonLabel.text = "待确认"
messageLabel.textColor = UIColor.mainTextColor50 messageLabel.textColor = UIColor.mainTextColor50
} }
if model.type == 21 { if model.type == 421 {
titleLabel.text = "新增受养人" titleLabel.text = "新增受养人"
messageLabel.text = "如需,建议现阶段新增,激活后新增需香港住址证明" messageLabel.text = "如需,建议现阶段新增,激活后新增需香港住址证明"
buttonLabel.text = "待完善" buttonLabel.text = "待完善"
...@@ -421,7 +961,7 @@ extension YHServiceOrderProgressTableViewCell { ...@@ -421,7 +961,7 @@ extension YHServiceOrderProgressTableViewCell {
} }
} }
if model.type == 24 { if model.type == 424 {
titleLabel.text = "赴港办证预约" titleLabel.text = "赴港办证预约"
if model.percentage == 50 { if model.percentage == 50 {
messageLabel.text = "抢号中~" messageLabel.text = "抢号中~"
...@@ -432,14 +972,14 @@ extension YHServiceOrderProgressTableViewCell { ...@@ -432,14 +972,14 @@ extension YHServiceOrderProgressTableViewCell {
messageLabel.textColor = UIColor.mainTextColor50 messageLabel.textColor = UIColor.mainTextColor50
} }
if model.type == 23 { if model.type == 423 {
titleLabel.text = "电子签证缴费" titleLabel.text = "电子签证缴费"
messageLabel.text = "请根据指引缴费领取电子签证~" messageLabel.text = "请根据指引缴费领取电子签证~"
buttonLabel.text = "待缴费" buttonLabel.text = "待缴费"
messageLabel.textColor = UIColor.mainTextColor50 messageLabel.textColor = UIColor.mainTextColor50
} }
if model.type == 25 { if model.type == 425 {
titleLabel.text = "赴港行程指引" titleLabel.text = "赴港行程指引"
messageLabel.text = "请根据指引清单提前规划赴港行程" messageLabel.text = "请根据指引清单提前规划赴港行程"
buttonLabel.text = "去查看" buttonLabel.text = "去查看"
...@@ -453,14 +993,14 @@ extension YHServiceOrderProgressTableViewCell { ...@@ -453,14 +993,14 @@ extension YHServiceOrderProgressTableViewCell {
} }
} }
if model.type == 26 { if model.type == 426 {
titleLabel.text = "旅行证件准备" titleLabel.text = "旅行证件准备"
messageLabel.text = "请更新所有赴港人员的旅行证件" messageLabel.text = "请更新所有赴港人员的旅行证件"
buttonLabel.text = "去上传" buttonLabel.text = "去上传"
messageLabel.textColor = UIColor.mainTextColor50 messageLabel.textColor = UIColor.mainTextColor50
} }
if model.type == 27 { if model.type == 427 {
titleLabel.text = "上传过关证件" titleLabel.text = "上传过关证件"
messageLabel.text = "点击保存入境小白条及香港身份证(后续身份续签、永居均涉及)" messageLabel.text = "点击保存入境小白条及香港身份证(后续身份续签、永居均涉及)"
buttonLabel.text = "去上传" buttonLabel.text = "去上传"
...@@ -691,7 +1231,111 @@ extension YHServiceOrderProgressTableViewCell { ...@@ -691,7 +1231,111 @@ extension YHServiceOrderProgressTableViewCell {
messageLabel.text = "点击保存入境小白条及香港身份证(后续身份续签、永居均涉及)" messageLabel.text = "点击保存入境小白条及香港身份证(后续身份续签、永居均涉及)"
buttonLabel.text = "已完成" buttonLabel.text = "已完成"
} }
if model.type == 215 {
titleLabel.text = "港府获批结果"
messageLabel.text = "恭喜您,正式批已获批~"
buttonLabel.text = "去查看"
}
if model.type == 222 {
titleLabel.text = "家庭信息确认"
messageLabel.text = "请确认现阶段信息是否存在变更~"
buttonLabel.text = "已完成"
}
if model.type == 224 {
titleLabel.text = "赴港办证预约"
messageLabel.text = "请填写意向办证时间,银河代预约~"
buttonLabel.text = "已完成"
}
if model.type == 223 {
titleLabel.text = "电子签证缴费"
messageLabel.text = "请根据指引缴费领取电子签证~"
buttonLabel.text = "已完成"
}
if model.type == 226 {
titleLabel.text = "旅行证件准备"
messageLabel.text = "请更新所有赴港人员的旅行证件"
buttonLabel.text = "已完成"
}
if model.type == 227 {
titleLabel.text = "上传过关证件"
messageLabel.text = "点击保存入境小白条及香港身份证(后续身份续签、永居均涉及)"
buttonLabel.text = "已完成"
}
if model.type == 315 {
titleLabel.text = "港府获批结果"
messageLabel.text = "恭喜您,正式批已获批~"
buttonLabel.text = "去查看"
}
if model.type == 322 {
titleLabel.text = "家庭信息确认"
messageLabel.text = "请确认现阶段信息是否存在变更~"
buttonLabel.text = "已完成"
}
if model.type == 324 {
titleLabel.text = "赴港办证预约"
messageLabel.text = "请填写意向办证时间,银河代预约~"
buttonLabel.text = "已完成"
}
if model.type == 323 {
titleLabel.text = "电子签证缴费"
messageLabel.text = "请根据指引缴费领取电子签证~"
buttonLabel.text = "已完成"
}
if model.type == 326 {
titleLabel.text = "旅行证件准备"
messageLabel.text = "请更新所有赴港人员的旅行证件"
buttonLabel.text = "已完成"
}
if model.type == 327 {
titleLabel.text = "上传过关证件"
messageLabel.text = "点击保存入境小白条及香港身份证(后续身份续签、永居均涉及)"
buttonLabel.text = "已完成"
}
if model.type == 415 {
titleLabel.text = "港府获批结果"
messageLabel.text = "恭喜您,正式批已获批~"
buttonLabel.text = "去查看"
}
if model.type == 422 {
titleLabel.text = "家庭信息确认"
messageLabel.text = "请确认现阶段信息是否存在变更~"
buttonLabel.text = "已完成"
}
if model.type == 424 {
titleLabel.text = "赴港办证预约"
messageLabel.text = "请填写意向办证时间,银河代预约~"
buttonLabel.text = "已完成"
}
if model.type == 423 {
titleLabel.text = "电子签证缴费"
messageLabel.text = "请根据指引缴费领取电子签证~"
buttonLabel.text = "已完成"
}
if model.type == 426 {
titleLabel.text = "旅行证件准备"
messageLabel.text = "请更新所有赴港人员的旅行证件"
buttonLabel.text = "已完成"
}
if model.type == 427 {
titleLabel.text = "上传过关证件"
messageLabel.text = "点击保存入境小白条及香港身份证(后续身份续签、永居均涉及)"
buttonLabel.text = "已完成"
}
if model.type == 31 { if model.type == 31 {
titleLabel.text = "续签资料管理" titleLabel.text = "续签资料管理"
messageLabel.text = "请根据资料清单上传您的续签证明文件~" messageLabel.text = "请根据资料清单上传您的续签证明文件~"
......
...@@ -17,7 +17,7 @@ class YHAnalytics { ...@@ -17,7 +17,7 @@ class YHAnalytics {
#if DEBUG #if DEBUG
let options = SAConfigOptions.init(serverURL: YhConstant.SensorsAnalytics.urlForTest, launchOptions: launchOptions) let options = SAConfigOptions.init(serverURL: YhConstant.SensorsAnalytics.urlForTest, launchOptions: launchOptions)
// 开启log // 开启log
options.enableLog = true options.enableLog = false
SensorsAnalyticsSDK.sharedInstance()?.set(["evn": "test"]) SensorsAnalyticsSDK.sharedInstance()?.set(["evn": "test"])
#elseif TESTENV #elseif TESTENV
let options = SAConfigOptions.init(serverURL: YhConstant.SensorsAnalytics.urlForTest, launchOptions: launchOptions) let options = SAConfigOptions.init(serverURL: YhConstant.SensorsAnalytics.urlForTest, launchOptions: launchOptions)
......
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