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

1、修改 step

2、处理一处bug
parent 6056094e
...@@ -186,11 +186,14 @@ extension YHServiceCenterMainViewModel { ...@@ -186,11 +186,14 @@ extension YHServiceCenterMainViewModel {
callBackBlock(false,nil) callBackBlock(false,nil)
return return
} }
if model.code == 200 {
informationFillStepModel = resultModel informationFillStepModel = resultModel
myInfoFillStep = resultModel.step myInfoFillStep = resultModel.step
let arr = [1,2,3,4,5,6] let arr = [1,2,3,4,5,6]
let target = myInfoFillStep //for test hjl 待填写的项目 let target = myInfoFillStep
for item in arr { for item in arr {
let model = YHInformationPerfectModel() let model = YHInformationPerfectModel()
model.type = item model.type = item
...@@ -215,6 +218,14 @@ extension YHServiceCenterMainViewModel { ...@@ -215,6 +218,14 @@ extension YHServiceCenterMainViewModel {
} }
callBackBlock(true,nil) callBackBlock(true,nil)
} else {
let error : YHErrorModel = YHErrorModel(errorCode:Int32(model.code),errorMsg: model.msg)
self.arrInfoFillStep = []
informationFillStepModel = 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