Commit f43a33fb authored by Steven杜宇's avatar Steven杜宇

Merge branch 'develop' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into develop

parents 41f9633c fb01941c
...@@ -619,11 +619,7 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource ...@@ -619,11 +619,7 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource
self.showTipsAlert() self.showTipsAlert()
return return
} }
if serviceCenterMainReqVM.myInfoFillStep > 0 { gotoApplyTypeVC()
gotoApplyTypeVC(.typeA)
} else {
gotoApplyTypeVC(nil)
}
//高A- 申请类别 //高A- 申请类别
} else if tapIndex == 1 { } else if tapIndex == 1 {
//高A- 主申请人信息 //高A- 主申请人信息
...@@ -661,17 +657,7 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource ...@@ -661,17 +657,7 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource
self.showTipsAlert() self.showTipsAlert()
return return
} }
if serviceCenterMainReqVM.myInfoFillStep > 0 { gotoApplyTypeVC()
var type: YHGCApplicationType = .typeB
if productType == 2 {
type = .typeB
} else if productType == 3 {
type = .typeC
}
gotoApplyTypeVC(type)
} else {
gotoApplyTypeVC(nil)
}
//高才BC- 申请类别 //高才BC- 申请类别
} else if tapIndex == 1 { } else if tapIndex == 1 {
//高才BC- 主申请人信息 //高才BC- 主申请人信息
...@@ -710,13 +696,29 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource ...@@ -710,13 +696,29 @@ extension YHInformationPerfectListVC : UITableViewDelegate,UITableViewDataSource
} }
} }
private func gotoApplyTypeVC(_ type: YHGCApplicationType?) { private func gotoApplyTypeVC() {
if let type = type { let orderId = orderId ?? 0
let ctl = YHGCApplicationTypeResultController(type: type) YHHUD.show(.progress(message: "加载中..."))
navigationController?.pushViewController(ctl) YHGCApplicationTypeViewModel().getApplyType(orderId: orderId) { [weak self] model, error in
} else { YHHUD.hide()
let ctl = YHGCApplicationTypeController(orderId: orderId ?? 0) guard let self = self else {
navigationController?.pushViewController(ctl) return
}
guard let model = model else {
if let errorMsg = error?.errorMsg, errorMsg.count > 0 {
YHHUD.flash(message: errorMsg)
}
return
}
let type = YHGCApplicationType(rawValue: model.apply_type)
if let type = type {
let ctl = YHGCApplicationTypeResultController(type: type)
self.navigationController?.pushViewController(ctl)
} else {
let ctl = YHGCApplicationTypeController(orderId: orderId)
self.navigationController?.pushViewController(ctl)
}
} }
} }
} }
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