From a43a3dcf34a398b0fe693304fa00feb83a876ce8 Mon Sep 17 00:00:00 2001 From: younger_times <841720330@qq.com> Date: 星期一, 24 四月 2023 18:46:36 +0800 Subject: [PATCH] 项目搭建工作 完成登录UI 完成主页UI布局 --- BrokerDriver/Login/VC/LoginVC.swift | 31 +++++++++++++++++++++---------- 1 files changed, 21 insertions(+), 10 deletions(-) diff --git a/BrokerDriver/Login/VC/LoginVC.swift b/BrokerDriver/Login/VC/LoginVC.swift index e5e4e90..bb2a08b 100644 --- a/BrokerDriver/Login/VC/LoginVC.swift +++ b/BrokerDriver/Login/VC/LoginVC.swift @@ -9,21 +9,32 @@ class LoginVC: BaseViewController { + @IBOutlet weak var tf_email: QMUITextField! + @IBOutlet weak var tf_pwd: QMUITextField! + + override func viewDidLoad() { super.viewDidLoad() - // Do any additional setup after loading the view. } - - /* - // MARK: - Navigation - - // In a storyboard-based application, you will often want to do a little preparation before navigation - override func prepare(for segue: UIStoryboardSegue, sender: Any?) { - // Get the new view controller using segue.destination. - // Pass the selected object to the new view controller. + @IBAction func forgotAction(_ sender: UIButton) { + let pwdVC = ForgotPwdVC() + push(vc: pwdVC) } - */ + @IBAction func loginAction(_ sender: UIButton) { + + let snapView = screnDelegate?.window?.snapshotView(afterScreenUpdates: true) + let nav = BaseNavigationController(rootViewController: HomeVC()) + screnDelegate?.window?.rootViewController = nav + screnDelegate?.window?.rootViewController?.view.addSubview(snapView!) + + UIView.animate(withDuration: 1.5) { + snapView?.alpha = 0 + snapView?.transform3D = CATransform3DMakeScale(1.5, 1.5, 1.5) + } completion: { _ in + snapView?.removeFromSuperview() + } + } } -- Gitblit v1.7.1