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

// 高才

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