Commit b453260d authored by David黄金龙's avatar David黄金龙

处理 一处逻辑问题导致的crash

parent 6d485f98
...@@ -461,15 +461,17 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource ...@@ -461,15 +461,17 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource
return return
} }
if tapIndex <= serviceCenterMainReqVM.myTargetIndex {
if self.serviceCenterMainReqVM.myInfoFillStep == 6 {
handleJumpLogicDebug(tapIndex: tapIndex) handleJumpLogicDebug(tapIndex: tapIndex)
} else { } else {
//请先完成 xxx 的填写 //请先完成 xxx 的填写
if serviceCenterMainReqVM.myTargetIndex < serviceCenterMainReqVM.arrInfoFillStep.count { if serviceCenterMainReqVM.myTargetIndex > -1,serviceCenterMainReqVM.myTargetIndex < serviceCenterMainReqVM.arrInfoFillStep.count {
let model = serviceCenterMainReqVM.arrInfoFillStep[serviceCenterMainReqVM.myTargetIndex] let model = serviceCenterMainReqVM.arrInfoFillStep[serviceCenterMainReqVM.myTargetIndex]
let msg = "请先完成" + model.name + "填写" let msg = "请先完成" + model.name + "填写"
YHHUD.flash(message: msg) YHHUD.flash(message: msg)
} }
} }
} }
......
...@@ -14,4 +14,5 @@ struct YHPersonInfoFillStepModel: SmartCodable { ...@@ -14,4 +14,5 @@ struct YHPersonInfoFillStepModel: SmartCodable {
var applicantName : String = "" var applicantName : String = ""
var sweet_notify_status : Int = 0 var sweet_notify_status : Int = 0
var sex : Int = 0 var sex : Int = 0
var policy_switch : Bool = false // false就是待完善 true : 也提交但不大要求
} }
...@@ -272,48 +272,11 @@ private extension YHPreviewViewModel { ...@@ -272,48 +272,11 @@ private extension YHPreviewViewModel {
} }
} }
let tmp7 = YHPreviewQuestionAndAnswerModel(question: "入职年月:", answer: model.enter_time)
let tmp8 = YHPreviewQuestionAndAnswerModel(question: "离职年月:", answer: model.leave_time)
let tmp9 = YHPreviewQuestionAndAnswerModel(question: "工作证明文件:", answer: model.work_certificate)
let tmp10 = YHPreviewQuestionAndAnswerModel(question: "职位水平类别:", answer: model.professional_level)
// var title = "-" arr1.append(contentsOf: [tmp7,tmp8,tmp9,tmp10])
// if let item = model.location {
// if item.country.contains("中国") {
// title = "国内 "
// if item.area.count > 1 {
// title = title + item.area[0] + "/" + item.area[1]
// }
// } else {
// title = "国外 " + item.country + "-" + item.foreign
// }
// }
//
//
// let tmp7 = YHPreviewQuestionAndAnswerModel(question: "入职年月:", answer: model.enter_time)
// let tmp8 = YHPreviewQuestionAndAnswerModel(question: "离职年月:", answer: model.leave_time)
// let tmp9 = YHPreviewQuestionAndAnswerModel(question: "工作证明文件:", answer: model.work_certificate)
// let tmp10 = YHPreviewQuestionAndAnswerModel(question: "职责性质:", answer: model.duty)
// title = model.international_work_experience == 0 ? "否" : "是"
// let tmp11 = YHPreviewQuestionAndAnswerModel(question: "相关工作是否属国际工作经验:", answer:title)
// let tmp12 = YHPreviewQuestionAndAnswerModel(question: "企业人数规模:", answer:String(model.company_member_total))
//
// let tempppp = YHConstantArrayData.getShowNameBy(indexStr: String(model.administrative_level), type: .structure)
// let tmp13 = YHPreviewQuestionAndAnswerModel(question: "行政架构层级:", answer:tempppp)
// let tmp14 = YHPreviewQuestionAndAnswerModel(question: "下属管理人数:", answer:String(model.company_manage_total))
//
// var ttt = ""
// if model.turnover == 0 {
// ttt = "0"
// } else {
// ttt = String(model.turnover).defaultStringIfEmpty()
// }
// let tmp15 = YHPreviewQuestionAndAnswerModel(question: "公司营业额/港元(近一年):", answer:ttt)
//
// let tempppp0 = YHConstantArrayData.getShowNameBy(indexStr: String(model.professional_level), type: .level)
// let tmp16 = YHPreviewQuestionAndAnswerModel(question: "职业水平类别:", answer:tempppp0)
// arr1.append(contentsOf: [tmp1,tmp2,tmp3,tmp4,tmp5,tmp6,tmp7,tmp8,tmp9,tmp10,tmp11,tmp12,tmp13,tmp14,tmp15,tmp16])
} }
let dataModel1 = YHWorkExpDataModel(title: "", data: arr1) let dataModel1 = YHWorkExpDataModel(title: "", data: arr1)
......
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