杨锴
2024-09-05 586eb879891e852e50302206470149766c35ee08
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//
//  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])
 
                }
 
}