Commit 8ae525a1 authored by pete谢兆麟's avatar pete谢兆麟

登录逻辑

parent bd2b1522
......@@ -212,6 +212,11 @@ extension YHHomePageViewController : UITabBarControllerDelegate {
let vc = UINavigationController(rootVC: YHPhoneLoginViewController())
vc.modalPresentationStyle = .custom
UIViewController.current?.navigationController?.present(vc, animated: true)
YHLoginManager.shared.loginSuccessActionBlock = {[weak self] in
guard let self = self else { return }
tabBarController.selectedIndex = 1
YHLoginManager.shared.loginSuccessActionBlock = nil
}
return false
}
}
......
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