杨锴
2024-11-05 0fb7413df54760ac6bd15b90b738e0706de1629e
XQMuse/Root/Login/VC/ForgotPasswordInputCodeVC.swift
@@ -48,7 +48,7 @@
    override func viewDidLoad() {
        super.viewDidLoad()
                        title = "找回密码"
                        title = "修改密码"
                        c1.delegate = self
                        c2.delegate = self
@@ -66,7 +66,7 @@
                                    make.left.right.equalToSuperview()
                                    make.height.equalTo(30)
                        }
                        label_hint.text = "验证码已发送至:" + phone.jq_blotOutPhone()
                        label_hint.text = "验证码已发送至:" + phone.jq_insertBlank()
            }
            override func setRx() {
@@ -105,7 +105,12 @@
                        btn_retry.alpha = 0.5
                        timer = Timer(timeInterval: 1.0, repeats: true) {[weak self] t in
                                    self?.times -= 1
                                    self?.label_retryCode.text = "\(self?.times ?? 0)s后可重新发送验证码"
            self?.label_retryCode.attributedText = AttributedStringbuilder.build()
                .add(string: "\(self?.times ?? 0)s", withFont: .systemFont(ofSize: 12, weight: .medium), withColor: UIColor(hexStr: "#98B083"))
                .add(string: "后可重新获取验证码", withFont: .systemFont(ofSize: 12, weight: .medium), withColor: UIColor(hexStr: "#B7B7B7")).mutableAttributedString
//                                    self?.label_retryCode.text = "\(self?.times ?? 0)s后可重新获取验证码"
                                    if self?.times == 0{
                                                self?.label_retryCode.text = ""
                                                self?.btn_retry.isEnabled = true