//
|
// ForgotPasswordVC.swift
|
// XQMuse
|
//
|
// Created by 无故事王国 on 2024/8/13.
|
//
|
|
import UIKit
|
import JQTools
|
import QMUIKit
|
|
class ForgotPasswordVC: BaseVC {
|
|
@IBOutlet weak var tf_phone: QMUITextField!
|
@IBOutlet weak var btn_forgot: UIButton!
|
|
let shadowView = UIView()
|
|
override func viewDidLoad() {
|
super.viewDidLoad()
|
title = "找回密码"
|
|
#if DEBUG
|
tf_phone.text = "18111223301"
|
#endif
|
}
|
|
override func setUI() {
|
view.addSubview(shadowView)
|
shadowView.backgroundColor = .white
|
shadowView.snp.makeConstraints { make in
|
make.top.equalTo(self.view.safeAreaLayoutGuide.snp.top).offset(0)
|
make.left.right.equalToSuperview()
|
make.height.equalTo(30)
|
}
|
}
|
|
@IBAction func checkingAction(_ sender: UIButton) {
|
view.endEditing(true)
|
if tf_phone.text!.isEmpty{
|
alertError(msg: "请输入手机号");return
|
}
|
|
if !tf_phone.text!.jq_isPhone{
|
alertError(msg: "请输入正确手机号");return
|
}
|
let vc = ForgotPasswordInputCodeVC(phone: tf_phone.text!)
|
push(vc: vc)
|
}
|
|
|
|
override func viewDidLayoutSubviews() {
|
super.viewDidLayoutSubviews()
|
|
btn_forgot.jq_gradientNibColor(colorArr: [UIColor(hexStr: "#8EA47A").cgColor,UIColor(hexStr: "#AFCA98").cgColor], cornerRadius: 20)
|
|
shadowView.jq_gradientColor(colorArr: [UIColor(hexStr: "#F5F5F5").withAlphaComponent(0.15).cgColor,UIColor.white.cgColor], cornerRadius: 0, startPoint: CGPoint(x: 0, y: 0), endPoint: CGPoint(x: 0, y: 1), bounds: CGRect(x: 0, y: 0, width: JQ_ScreenW, height: 30),locations: [0.1,0.9])
|
|
}
|
|
}
|