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

完善 跳转逻辑

parent 418bc524
......@@ -350,47 +350,84 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource
return newCell
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
tableView.deselectRow(at: indexPath, animated: true)
printLog("点击了 \(indexPath.section)section --- \(indexPath.row)row")
//处理跳转逻辑
handleJumpLogic( tapIndex : indexPath.row)
}
private func handleJumpLogic(tapIndex : Int) {
//开发模式下 任意跳转
//#if DEBUG
// handleJumpLogicDebug(tapIndex: tapIndex)
// return
//#endif
//正式环境
handleJumpLogicRelease(tapIndex: tapIndex)
}
private func handleJumpLogicRelease(tapIndex : Int) {
if self.serviceCenterMainReqVM.myInfoFillStep > 6 {
goInfoListVCOp(index:indexPath.row)
goInfoListVCOp(index:tapIndex)
return
}
if tapIndex <= serviceCenterMainReqVM.myInfoFillStep {
handleJumpLogicDebug(tapIndex: tapIndex)
} else {
//请先完成 xxx 的填写
if serviceCenterMainReqVM.myInfoFillStep < serviceCenterMainReqVM.arrInfoFillStep.count {
let model = serviceCenterMainReqVM.arrInfoFillStep[serviceCenterMainReqVM.myInfoFillStep]
let msg = "请先完成" + model.name + "填写"
YHHUD.flash(message: msg)
}
}
}
private func handleJumpLogicDebug(tapIndex : Int) {
if indexPath.row == 0 {
if self.serviceCenterMainReqVM.myInfoFillStep > 6 {
goInfoListVCOp(index:tapIndex)
return
}
if tapIndex == 0 {
//主申请人信息
let vc = YHMainApplicantInformationViewController()
vc.orderId = orderId ?? 0
navigationController?.pushViewController(vc)
} else if indexPath.row == 1 {
} else if tapIndex == 1 {
//家庭程序信息
let vc = YHFamilyMemberInfoListVC(orderId: orderId ?? 0)
vc.orderId = orderId ?? 0
navigationController?.pushViewController(vc)
} else if indexPath.row == 2 {
} else if tapIndex == 2 {
//基本信息
let vc = YHBasicInfoFillViewController()
vc.orderId = orderId
navigationController?.pushViewController(vc)
} else if indexPath.row == 3 {
} else if tapIndex == 3 {
//学历/专业资格
let vc = YHEducationInfoListVC()
vc.orderId = orderId ?? 0
navigationController?.pushViewController(vc)
} else if indexPath.row == 4 {
} else if tapIndex == 4 {
//工作经历
let vc = YHWorkExperienceListViewController()
vc.orderId = orderId ?? 0
navigationController?.pushViewController(vc)
} else if indexPath.row == 5 {
} else if tapIndex == 5 {
//其他信息
let vc = YHOtherInfoFillViewController()
vc.orderId = orderId
......@@ -398,6 +435,5 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource
} else {
}
}
}
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