     @IBOutlet weak var titleLabel: UILabel!
     @IBOutlet weak var passwordView: UIView!
     @IBOutlet weak var passwordText: UITextField!
+    
     var oldPassword: String?
     var clear: Bool = false
     

    func initUI() {
        title = CurrentUserHelper.shared.userInfo.has_passwd_ == -1 ? "设置提现密码" : "修改提现密码"
        //titleLabel
        titleLabel.text = CurrentUserHelper.shared.userInfo.has_passwd_ == -1 ? "设置提现密码" : "输入新的支付密码"
        //passwordView
        passwordView.layer.cornerRadius = 6
        passwordView.layer.masksToBounds = true

                titleLabel.text = "设置提现密码"
                return
            }
            setPassword("密码设置成功", nil)
            return
        }else{
            //第一步->验证旧密码
            if oldPassword == nil {
                AppAPIHelper.userAPI().checkDrawCashPassword(CurrentUserHelper.shared.uid, password: password, type: 1, complete: {[weak self] (result) in
                    SVProgressHUD.showSuccessMessage(SuccessMessage: "验证成功", ForDuration: 1, completion: nil)
                    self?.titleLabel.text = "重新设置提现密码"
                    self?.oldPassword = password
                    self?.clear = true
                    self?.updatePasswordView("")
                    return
                }, error: errorBlockFunc())
                return
            }
           
            //第二步->重置密码
            setPassword("重设密码成功", nil)
        }
        
    }
    

    //MARK: --Textfield
    func textFieldShouldReturn(textField: UITextField) -> Bool {
