Commit 926afeb0 authored by pete谢兆麟's avatar pete谢兆麟

添加登录逻辑

parent 8f91aa50
......@@ -144,7 +144,9 @@ class YHCodeSueecssViewController: YHBaseViewController {
} else {
YHLoginManager.shared.loginSuccessActionBlock?()
YHHUD.flash(message: "登录成功")
TXCommonHandler.sharedInstance().cancelLoginVC(animated: true)
self.dismiss(animated: true)
self.navigationController?.popToRootViewController(animated: true)
}
})
}
......@@ -157,7 +159,9 @@ class YHCodeSueecssViewController: YHBaseViewController {
} else {
YHLoginManager.shared.loginSuccessActionBlock?()
YHHUD.flash(message: "登录成功")
TXCommonHandler.sharedInstance().cancelLoginVC(animated: true)
self.dismiss(animated: true)
self.navigationController?.popToRootViewController(animated: true)
}
})
}
......
......@@ -306,6 +306,8 @@ class YHOtherLoginViewController: YHBaseViewController {
YHLoginManager.shared.loginSuccessActionBlock?()
YHHUD.flash(message: "登录成功")
self.dismiss(animated: true)
TXCommonHandler.sharedInstance().cancelLoginVC(animated: true)
self.navigationController?.popToRootViewController(animated: true)
} else {
//第一次微信登录跳转逻辑
let vc = YHOtherLoginViewController()
......
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