Commit 60fddcb2 authored by David黄金龙's avatar David黄金龙

1、修改 step

2、处理一处bug
parent 6056094e
...@@ -186,35 +186,46 @@ extension YHServiceCenterMainViewModel { ...@@ -186,35 +186,46 @@ extension YHServiceCenterMainViewModel {
callBackBlock(false,nil) callBackBlock(false,nil)
return return
} }
informationFillStepModel = resultModel
myInfoFillStep = resultModel.step
let arr = [1,2,3,4,5,6] if model.code == 200 {
let target = myInfoFillStep //for test hjl 待填写的项目
for item in arr {
let model = YHInformationPerfectModel()
model.type = item
arrInfoFillStep.append(model)
if item < target { informationFillStepModel = resultModel
model.isFinished = true myInfoFillStep = resultModel.step
} else {
model.isFinished = false let arr = [1,2,3,4,5,6]
let target = myInfoFillStep
for item in arr {
let model = YHInformationPerfectModel()
model.type = item
arrInfoFillStep.append(model)
if item < target {
model.isFinished = true
} else {
model.isFinished = false
}
if item == target {
model.isDoing = true
}
if item == target + 1 {
model.isNextDoingCell = true
} else {
model.isNextDoingCell = false
}
} }
callBackBlock(true,nil)
if item == target { } else {
model.isDoing = true
}
if item == target + 1 { let error : YHErrorModel = YHErrorModel(errorCode:Int32(model.code),errorMsg: model.msg)
model.isNextDoingCell = true self.arrInfoFillStep = []
} else { informationFillStepModel = nil
model.isNextDoingCell = false
}
} }
callBackBlock(true,nil)
} failBlock: { err in } failBlock: { err in
self.arrInfoFillStep = [] self.arrInfoFillStep = []
self.informationFillStepModel = nil self.informationFillStepModel = nil
......
...@@ -37,9 +37,11 @@ class YHAllApiName { ...@@ -37,9 +37,11 @@ class YHAllApiName {
static let scoreDetailApi = "frontend/order-assessment/score_detail" static let scoreDetailApi = "frontend/order-assessment/score_detail"
//获取其他资料填写信息 //获取其他资料填写信息
static let otherInfoFillApi = "frontend/order/getOrderOtherInformation" // static let otherInfoFillApi = "frontend/order/getOrderOtherInformation"
static let otherInfoFillApi = "infoflow/order/getOrderOtherInformation"
//保存其他资料信息 //保存其他资料信息
static let updateOtherInfoApi = "frontend/order/updateOrderOtherInformation" // static let updateOtherInfoApi = "frontend/order/updateOrderOtherInformation"
static let updateOtherInfoApi = "infoflow/order/updateOrderOtherInformation"
} }
......
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