Commit 879f6f74 authored by pete谢兆麟's avatar pete谢兆麟

出现一键登录之后的跳转问题

parent b28cd000
......@@ -75,6 +75,7 @@ class YHAllowUseMyInfoViewController: YHBaseViewController {
guard let self = self else { return }
viewModel.requestBusinessCardAuthorize {[weak self] success, error in
guard let self = self else { return }
TXCommonHandler.sharedInstance().cancelLoginVC(animated: true)
self.dismiss(animated: true) {
let view = YHLoginOneLeadView(frame: CGRect(x: 0, y: 0, width: KScreenWidth, height: KScreenHeight))
let window = UIApplication.shared.yhKeyWindow()
......
......@@ -168,12 +168,12 @@ class YHCodeSueecssViewController: YHBaseViewController {
} else {
YHLoginManager.shared.loginSuccessActionBlock?()
YHHUD.flash(message: "登录成功")
TXCommonHandler.sharedInstance().cancelLoginVC(animated: true)
if YHLoginManager.shared.userModel?.is_first_login == 1 {
let vc = YHUserInfoSettingViewController()
vc.modalPresentationStyle = .fullScreen
self.navigationController?.pushViewController(vc)
} else {
TXCommonHandler.sharedInstance().cancelLoginVC(animated: true)
self.dismiss(animated: true)
}
}
......@@ -189,12 +189,12 @@ class YHCodeSueecssViewController: YHBaseViewController {
} else {
YHLoginManager.shared.loginSuccessActionBlock?()
YHHUD.flash(message: "登录成功")
TXCommonHandler.sharedInstance().cancelLoginVC(animated: true)
if YHLoginManager.shared.userModel?.is_first_login == 1 {
let vc = YHUserInfoSettingViewController()
vc.modalPresentationStyle = .fullScreen
self.navigationController?.pushViewController(vc)
} else {
TXCommonHandler.sharedInstance().cancelLoginVC(animated: true)
self.dismiss(animated: true)
}
}
......@@ -216,12 +216,12 @@ class YHCodeSueecssViewController: YHBaseViewController {
} else {
YHLoginManager.shared.loginSuccessActionBlock?()
YHHUD.flash(message: "登录成功")
TXCommonHandler.sharedInstance().cancelLoginVC(animated: true)
if YHLoginManager.shared.userModel?.is_first_login == 1 {
let vc = YHUserInfoSettingViewController()
vc.modalPresentationStyle = .fullScreen
self?.navigationController?.pushViewController(vc)
} else {
TXCommonHandler.sharedInstance().cancelLoginVC(animated: true)
self?.dismiss(animated: true)
}
}
......
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