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

// 高才

parent 25520554
...@@ -801,14 +801,14 @@ class YHFamilyMember: SmartCodable, YHFormItemProtocol { ...@@ -801,14 +801,14 @@ class YHFamilyMember: SmartCodable, YHFormItemProtocol {
if self.isCurrentlyOverseas == 1 { if self.isCurrentlyOverseas == 1 {
return true return true
} else if self.isCurrentlyOverseas == 2 { } else if self.isCurrentlyOverseas == 0 {
return false return false
} }
return nil return nil
} }
func setHavePermanentResidenceStatus(_ value: Bool) { func setHavePermanentResidenceStatus(_ value: Bool) {
return self.isCurrentlyOverseas = value ? 1 : 2 return self.isCurrentlyOverseas = value ? 1 : 0
} }
// 是否在海外居住满1年及以上 // 是否在海外居住满1年及以上
......
...@@ -267,7 +267,7 @@ extension YHGCChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -267,7 +267,7 @@ extension YHGCChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
if let value = detailItem.value, let status = Int(value) { if let value = detailItem.value, let status = Int(value) {
if status == 2 { if status == 2 {
isSelectYES = false isSelectYES = false
isSelectNO = true isSelectNO = false
} else if status == 1 { } else if status == 1 {
isSelectYES = true isSelectYES = true
...@@ -275,7 +275,8 @@ extension YHGCChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -275,7 +275,8 @@ extension YHGCChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
} else if status == 0 { } else if status == 0 {
isSelectYES = false isSelectYES = false
isSelectNO = false isSelectNO = true
} }
} }
......
...@@ -221,6 +221,7 @@ extension YHGCSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -221,6 +221,7 @@ extension YHGCSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
} }
cell.setTips(detailItem.tips, isShow: isNeedShowError && isShowTips) cell.setTips(detailItem.tips, isShow: isNeedShowError && isShowTips)
if detailItem.type == .permanentResidenceStatus { // 永久居留身份 if detailItem.type == .permanentResidenceStatus { // 永久居留身份
var isSelectYES = false var isSelectYES = false
var isSelectNO = false var isSelectNO = false
...@@ -228,7 +229,7 @@ extension YHGCSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -228,7 +229,7 @@ extension YHGCSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
if let value = detailItem.value, let status = Int(value) { if let value = detailItem.value, let status = Int(value) {
if status == 2 { if status == 2 {
isSelectYES = false isSelectYES = false
isSelectNO = true isSelectNO = false
} else if status == 1 { } else if status == 1 {
isSelectYES = true isSelectYES = true
...@@ -236,7 +237,8 @@ extension YHGCSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource { ...@@ -236,7 +237,8 @@ extension YHGCSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
} else if status == 0 { } else if status == 0 {
isSelectYES = false isSelectYES = false
isSelectNO = false isSelectNO = true
} }
} }
......
...@@ -251,6 +251,7 @@ extension YHGCFamilyMemberInfoListVC { ...@@ -251,6 +251,7 @@ extension YHGCFamilyMemberInfoListVC {
"next":false, "next":false,
"info":["subset_name":"", "info":["subset_name":"",
"not_fill_number":-1, "not_fill_number":-1,
"is_currently_overseas":2,
"follow":0]] "follow":0]]
self.familyRequest.addOrSaveFamilyMember(params: dict) { [weak self] success, error in self.familyRequest.addOrSaveFamilyMember(params: dict) { [weak self] success, error in
......
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