Commit 3f21ac8a authored by Steven杜宇's avatar Steven杜宇

// 子女和配偶

parent d3542a79
......@@ -171,7 +171,6 @@ class YHChildInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
guard let self = self else { return }
if let targetStep = getStepForArrayIndex(index) {
currentStep = targetStep
child.step = targetStep
}
print("index:\(index)")
}
......@@ -196,10 +195,10 @@ class YHChildInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
if let cur = getArrayIndexOfCurrentStep(), let item = stepVCs[safe:cur+1] {
currentStep = item.step
child?.step = item.step
if cur+1 > stepView.maxIndex {
stepView.maxIndex = cur+1
} }
}
}
print("currentIndex:\(currentStep)")
}
}
......@@ -247,7 +246,7 @@ extension YHChildInfoContainerVC {
let dict:[String: Any] = ["order_id":child.orderId,
"relation":child.relation,
"step":child.step,
"step":isSubmit ? currentStep : 0,
"next":isSubmit,
"info":info]
......
......@@ -189,7 +189,6 @@ class YHSpouseInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
guard let self = self else { return }
if let targetStep = getStepForArrayIndex(index) {
currentStep = targetStep
spouse.step = targetStep
}
print("index:\(index)")
}
......@@ -210,7 +209,7 @@ extension YHSpouseInfoContainerVC {
let dict:[String: Any] = ["order_id":spouse.orderId,
"relation":spouse.relation,
"step":spouse.step,
"step":isSubmit ? currentStep : 0,
"next":isSubmit,
"info":info]
......@@ -245,7 +244,6 @@ extension YHSpouseInfoContainerVC {
if let cur = getArrayIndexOfCurrentStep(), let item = stepVCs[safe:cur+1] {
currentStep = item.step
spouse?.step = item.step
if cur+1 > stepView.maxIndex {
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