Commit 1b8c8188 authored by David黄金龙's avatar David黄金龙

处理 一处bug

parent f95448ac
......@@ -34,12 +34,12 @@ class YHInformationPerfectModel {
name = "工作经验"
icon = "gzjy_icon"
}
else if type == 8 {
else if type == 5 {
name = "收入记录"
icon = "srjl_icon"
}
else if type == 5 {
else if type == 8 {
name = "其他信息"
icon = "qtxx_icon"
isLastestCell = true
......@@ -55,9 +55,9 @@ class YHInformationPerfectModel {
status = isFinished ? "已完成" : "待完善"
color = isFinished ? UIColor.mainTextColor : UIColor.labelTextColor2
statusColor = isFinished ? UIColor.successColor : UIColor.labelTextColor2
// if type != 1 {
// icon = isFinished ? icon : icon
// }
if type != 1 {
icon = isFinished ? icon : icon
}
}
}
......
......@@ -308,9 +308,9 @@ extension YHServiceCenterMainViewModel {
if json.code == 200 {
arrInfoFillStep.removeAll()
informationFillStepModel = resultModel
myInfoFillStep = resultModel.step
myInfoFillStep = resultModel.step //当前正在进行的步骤
let arr = [0,1,2,3,4,8,5]
let arr = [0,1,2,3,4,5,8]
let target = myInfoFillStep
var targetIndex : Int = -1
for (index , item) in arr.enumerated() {
......@@ -321,16 +321,18 @@ extension YHServiceCenterMainViewModel {
self.myTargetIndex = targetIndex
for (index , item) in arr.enumerated() {
for (index,item) in arr.enumerated() {
let model = YHInformationPerfectModel()
model.type = item
arrInfoFillStep.append(model)
if targetIndex == -1 {
//已完成6 或者 已提交7
model.isFinished = true
model.isDoing = false
model.isFinished = true
// model.isNextDoingCell = false
} else {
if index < targetIndex {
......
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