// // LoginViewController.swift // GeliBusinessPlatform // // Created by junye lu on 2020/4/14. // Copyright © 2020 junye lu. All rights reserved. // import UIKit import Alamofire import CryptoSwift import LGButton class LoginViewController: BaseViewController { // @IBAction func forgetPasswordAction(_ sender: Any) { //// let vc = DemoViewController() //// self.navigationController?.pushViewController(vc, animated: true) // let alertView = GeliAlertView(frame: self.view.window!.bounds) // self.view.window?.addSubview(alertView) // // } // // @IBAction func shPassAction(_ sender: UIButton) { // shBtn.isSelected = !shBtn.isSelected // passTF.isSecureTextEntry = !shBtn.isSelected // } // // @IBAction func loginAction(_ sender: Any) { // print("loginAction") // let vc = ChangePassViewController() // self.navigationController?.pushViewController(vc, animated: true) // } //MARK: - 输入账号、密码、验证码 @IBOutlet weak var loginBtn: LGButton! @IBOutlet weak var codeView: UIView! @IBOutlet weak var phoneTF: UITextField! @IBOutlet weak var passTF: UITextField! @IBOutlet weak var codeTF: UITextField! @IBOutlet weak var bannerImg: UIImageView! @IBOutlet weak var topImg: UIImageView! @IBOutlet weak var shBtn: UIButton! //MARK: - viewWillAppear override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) self.view.backgroundColor = UIColor(named:"白色背景色") let codeV = CaptchaView(frame:codeView.bounds) codeView.addSubview(codeV); } override func viewDidLoad() { super.viewDidLoad() passTF.isSecureTextEntry = true bannerImg.snp.makeConstraints { (make) in make.top.left.right.equalTo(0) make.height.equalTo(234*glscale) } topImg.snp.makeConstraints { (make) in make.bottom.equalTo(bannerImg.snp_top) make.left.right.equalTo(0) make.height.equalTo(60) } //登录中状态 // loginBtn.isLoading = true } //MARK: -跳转忘记密码,登录 @IBAction func forgetPasswordAction(_ sender: Any) { let vc = CheckWareHourseViewController() vc.titleStr = "新增仓库" self.navigationController?.pushViewController(vc, animated: true) } @IBAction func shPassAction(_ sender: UIButton) { shBtn.isSelected = !shBtn.isSelected passTF.isSecureTextEntry = !shBtn.isSelected } @IBAction func loginAction(_ sender: Any) { print("loginAction") let vc = CheckWareHourseViewController() self.navigationController?.pushViewController(vc, animated: true) // let alertView = GeliAlertView(frame: self.view.window!.bounds) // alertView.tishiLbl.text = "202121"; // alertView.titileLbl.text = "是否确认取消订单?" // self.view.window?.addSubview(alertView) } }