Commit 511e9fa8 authored by David黄金龙's avatar David黄金龙

Merge branch 'develop' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into develop

* 'develop' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS:
  // 子女和配偶
parents 0a50aed2 02441494
...@@ -171,7 +171,6 @@ class YHChildInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol { ...@@ -171,7 +171,6 @@ class YHChildInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
guard let self = self else { return } guard let self = self else { return }
if let targetStep = getStepForArrayIndex(index) { if let targetStep = getStepForArrayIndex(index) {
currentStep = targetStep currentStep = targetStep
child.step = targetStep
} }
print("index:\(index)") print("index:\(index)")
} }
...@@ -196,10 +195,10 @@ class YHChildInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol { ...@@ -196,10 +195,10 @@ class YHChildInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
if let cur = getArrayIndexOfCurrentStep(), let item = stepVCs[safe:cur+1] { if let cur = getArrayIndexOfCurrentStep(), let item = stepVCs[safe:cur+1] {
currentStep = item.step currentStep = item.step
child?.step = item.step
if cur+1 > stepView.maxIndex { if cur+1 > stepView.maxIndex {
stepView.maxIndex = cur+1 stepView.maxIndex = cur+1
} } }
}
print("currentIndex:\(currentStep)") print("currentIndex:\(currentStep)")
} }
} }
...@@ -247,7 +246,7 @@ extension YHChildInfoContainerVC { ...@@ -247,7 +246,7 @@ extension YHChildInfoContainerVC {
let dict:[String: Any] = ["order_id":child.orderId, let dict:[String: Any] = ["order_id":child.orderId,
"relation":child.relation, "relation":child.relation,
"step":child.step, "step":isSubmit ? currentStep : 0,
"next":isSubmit, "next":isSubmit,
"info":info] "info":info]
......
...@@ -189,7 +189,6 @@ class YHSpouseInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol { ...@@ -189,7 +189,6 @@ class YHSpouseInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
guard let self = self else { return } guard let self = self else { return }
if let targetStep = getStepForArrayIndex(index) { if let targetStep = getStepForArrayIndex(index) {
currentStep = targetStep currentStep = targetStep
spouse.step = targetStep
} }
print("index:\(index)") print("index:\(index)")
} }
...@@ -210,7 +209,7 @@ extension YHSpouseInfoContainerVC { ...@@ -210,7 +209,7 @@ extension YHSpouseInfoContainerVC {
let dict:[String: Any] = ["order_id":spouse.orderId, let dict:[String: Any] = ["order_id":spouse.orderId,
"relation":spouse.relation, "relation":spouse.relation,
"step":spouse.step, "step":isSubmit ? currentStep : 0,
"next":isSubmit, "next":isSubmit,
"info":info] "info":info]
...@@ -245,7 +244,6 @@ extension YHSpouseInfoContainerVC { ...@@ -245,7 +244,6 @@ extension YHSpouseInfoContainerVC {
if let cur = getArrayIndexOfCurrentStep(), let item = stepVCs[safe:cur+1] { if let cur = getArrayIndexOfCurrentStep(), let item = stepVCs[safe:cur+1] {
currentStep = item.step currentStep = item.step
spouse?.step = item.step
if cur+1 > stepView.maxIndex { if cur+1 > stepView.maxIndex {
stepView.maxIndex = cur+1 stepView.maxIndex = cur+1
} }
......
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