Commit 92a17536 authored by Steven杜宇's avatar Steven杜宇

// 确认

parent 1f2e9216
...@@ -322,7 +322,8 @@ extension YHResignCertificateDetailHkViewController: UITableViewDelegate, UITabl ...@@ -322,7 +322,8 @@ extension YHResignCertificateDetailHkViewController: UITableViewDelegate, UITabl
if !result.issuing_authority.isEmpty { if !result.issuing_authority.isEmpty {
self.dataModel.cert_info.address = result.issuing_authority self.dataModel.cert_info.address = result.issuing_authority
} }
if !result.back_term_begins.isEmpty { self.dataModel.cert_info.validate_start = result.back_term_begins if !result.back_term_begins.isEmpty {
self.dataModel.cert_info.validate_start = result.back_term_begins
} }
if !result.back_end_of_term.isEmpty { if !result.back_end_of_term.isEmpty {
self.dataModel.cert_info.validate_end = result.back_end_of_term self.dataModel.cert_info.validate_end = result.back_end_of_term
......
...@@ -638,6 +638,7 @@ class YHResignCertificateHKTableViewCell: UITableViewCell { ...@@ -638,6 +638,7 @@ class YHResignCertificateHKTableViewCell: UITableViewCell {
} }
@objc func frontImageClick() { @objc func frontImageClick() {
self.endEditing(true)
if firstUrl.count != 0 { if firstUrl.count != 0 {
let vc = YHImageViewController() let vc = YHImageViewController()
vc.imgString = firstUrl vc.imgString = firstUrl
...@@ -664,6 +665,7 @@ class YHResignCertificateHKTableViewCell: UITableViewCell { ...@@ -664,6 +665,7 @@ class YHResignCertificateHKTableViewCell: UITableViewCell {
} }
@objc func backSurfaceImageClick() { @objc func backSurfaceImageClick() {
self.endEditing(true)
if lastUrl.count != 0 { if lastUrl.count != 0 {
let vc = YHImageViewController() let vc = YHImageViewController()
vc.imgString = lastUrl vc.imgString = lastUrl
......
...@@ -59,8 +59,8 @@ class YHResignCertificateDetailViewModel: YHBaseViewModel { ...@@ -59,8 +59,8 @@ class YHResignCertificateDetailViewModel: YHBaseViewModel {
let item5 = YHItemModel(id: .id36, isNeed: true, title: "证件号码", isUserKeyBoard: true, prompts: "请输入", message: getResultString(dataModel.cert_info.number), isShowPrompts: isShowPrompt, alertMessage:"请输入证件号码") let item5 = YHItemModel(id: .id36, isNeed: true, title: "证件号码", isUserKeyBoard: true, prompts: "请输入", message: getResultString(dataModel.cert_info.number), isShowPrompts: isShowPrompt, alertMessage:"请输入证件号码")
let item6 = YHItemModel(id: .id37, isNeed: true, title: "签发地", isUserKeyBoard: true, prompts: "请输入", message: getResultString(dataModel.cert_info.address), isShowPrompts: isShowPrompt, alertMessage:"请输入签发地") let item6 = YHItemModel(id: .id37, isNeed: true, title: "签发地", isUserKeyBoard: true, prompts: "请输入", message: getResultString(dataModel.cert_info.address), isShowPrompts: isShowPrompt, alertMessage:"请输入签发地")
let item1 = YHItemModel(id: .id1, isNeed: true, title: "开始时间", isUserKeyBoard: false, prompts: "请选择", message: getResultString(dataModel.cert_info.issue_start), type: .time, isShowPrompts: isShowPrompt, alertMessage:"请选择开始时间") let item1 = YHItemModel(id: .id1, isNeed: true, title: "签发时间", isUserKeyBoard: false, prompts: "请选择", message: getResultString(dataModel.cert_info.issue_start), type: .time, isShowPrompts: isShowPrompt, alertMessage:"请选择开始时间")
let item2 = YHItemModel(id: .id2, isNeed: true, title: "到期时间", isUserKeyBoard: false, prompts: "请选择", message: getResultString(dataModel.cert_info.issue_end), type: .time, isShowPrompts: isShowPrompt, alertMessage:"请选择到期时间") let item2 = YHItemModel(id: .id2, isNeed: true, title: "届满时间", isUserKeyBoard: false, prompts: "请选择", message: getResultString(dataModel.cert_info.issue_end), type: .time, isShowPrompts: isShowPrompt, alertMessage:"请选择到期时间")
let item3 = YHItemModel(id: .id3, isNeed: true, title: "开始时间", isUserKeyBoard: false, prompts: "请选择", message: getResultString(dataModel.cert_info.validate_start), type: .time, isShowPrompts: isShowPrompt, alertMessage:"请选择开始时间") let item3 = YHItemModel(id: .id3, isNeed: true, title: "开始时间", isUserKeyBoard: false, prompts: "请选择", message: getResultString(dataModel.cert_info.validate_start), type: .time, isShowPrompts: isShowPrompt, alertMessage:"请选择开始时间")
let item4 = YHItemModel(id: .id4, isNeed: true, title: "到期时间", isUserKeyBoard: false, prompts: "请选择", message: getResultString(dataModel.cert_info.validate_end), type: .time, isShowPrompts: isShowPrompt, alertMessage:"请选择到期时间") let item4 = YHItemModel(id: .id4, isNeed: true, title: "到期时间", isUserKeyBoard: false, prompts: "请选择", message: getResultString(dataModel.cert_info.validate_end), type: .time, isShowPrompts: isShowPrompt, alertMessage:"请选择到期时间")
return [item5, item6, item1, item2, item3, item4] return [item5, item6, item1, item2, item3, item4]
......
...@@ -97,7 +97,7 @@ class YHResignConfirmInfoListViewController: YHBaseViewController { ...@@ -97,7 +97,7 @@ class YHResignConfirmInfoListViewController: YHBaseViewController {
func isAllMemberConfirmed() -> Bool { func isAllMemberConfirmed() -> Bool {
for model in familyArr { for model in familyArr {
if model.confirmStatus == 0 { if !model.isConfirmed() {
return false return false
} }
} }
......
...@@ -42,6 +42,10 @@ class YHResignInfoConfirmFamilyInfoModel: SmartCodable { ...@@ -42,6 +42,10 @@ class YHResignInfoConfirmFamilyInfoModel: SmartCodable {
var info: YHResignInfoConfirmFamilyModel = YHResignInfoConfirmFamilyModel() var info: YHResignInfoConfirmFamilyModel = YHResignInfoConfirmFamilyModel()
var confirmStatus: Int = 0 var confirmStatus: Int = 0
func isConfirmed() -> Bool {
return self.confirmStatus == 2
}
enum CodingKeys: String, CodingKey { enum CodingKeys: String, CodingKey {
case info = "info" case info = "info"
case confirmStatus = "confirm_status" case confirmStatus = "confirm_status"
......
...@@ -16,8 +16,8 @@ class YHResignFamilyMemberInfoCell: UITableViewCell { ...@@ -16,8 +16,8 @@ class YHResignFamilyMemberInfoCell: UITableViewCell {
self.relationLabel.text = model.info.getRelation() self.relationLabel.text = model.info.getRelation()
self.nameLabel.text = model.info.name self.nameLabel.text = model.info.name
self.pinyinLabel.text = "\(model.info.familyName) \(model.info.givenName)" self.pinyinLabel.text = "\(model.info.familyName) \(model.info.givenName)"
self.statusLabel.text = model.confirmStatus == 2 ? "已确认" : "待核对" self.statusLabel.text = model.isConfirmed() ? "已确认" : "待核对"
let textColor: UIColor = model.confirmStatus == 2 ? .init(hex: 0x3CC694) : .brandMainColor let textColor: UIColor = model.isConfirmed() ? .init(hex: 0x3CC694) : .brandMainColor
self.statusLabel.textColor = textColor self.statusLabel.textColor = textColor
let img = UIImage(named: "family_info_status_arrow")?.withRenderingMode(.alwaysTemplate) let img = UIImage(named: "family_info_status_arrow")?.withRenderingMode(.alwaysTemplate)
......
...@@ -418,10 +418,10 @@ extension YHResignInfoItemView: UITextFieldDelegate { ...@@ -418,10 +418,10 @@ extension YHResignInfoItemView: UITextFieldDelegate {
return "请输入职业" return "请输入职业"
} else if self.item.id == .hongKongId { } else if self.item.id == .hongKongId {
return "A123456(A)" return "示例:A123456(A)"
} else if self.item.id == .hongkongAddress { } else if self.item.id == .hongkongAddress {
return "请输入香港址" return "请输入香港址"
} }
return "" return ""
} }
......
...@@ -254,7 +254,7 @@ extension YHResignInfoConfirmViewModel { ...@@ -254,7 +254,7 @@ extension YHResignInfoConfirmViewModel {
isMust: false, isMust: false,
title: "香港住址", title: "香港住址",
value: model.hkAddress, value: model.hkAddress,
previousTitle: "原香港址", previousTitle: "原香港址",
previousValue: model.hkAddressHistory, previousValue: model.hkAddressHistory,
isEditMode: isEditMode, isEditMode: isEditMode,
isShowPreviousInfo: !isEditMode && !model.hkAddressHistory.isEmpty) isShowPreviousInfo: !isEditMode && !model.hkAddressHistory.isEmpty)
......
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