无故事王国
2023-10-09 0408b5d7b07077dc9f451a03a1a859038e4e5bf5
WanPai/Root/Login/VC/LoginVC.swift
@@ -52,6 +52,8 @@
        attribute.addAttributes([.paragraphStyle:paragraphStyle], range: _NSRange(location: 0, length: content.count))
        self.textView_treaty.attributedText = attribute
        self.textView_treaty.delegate = self
      btn_login.localGradientColor(cornerRadius: 20)
    }
    
    override func setRx() {
@@ -92,6 +94,11 @@
        UIView.animate(withDuration: 0.4) {
            self.view.layoutIfNeeded()
            self.btn_login.setTitle(str, for: .normal)
         if self.btn_pwdLogin.isSelected{
            self.btn_login.localGradientColor(cornerRadius: 20,bounds: CGRect(x: 0, y: 0, width: 144, height: 40))
         }else{
            self.btn_login.localGradientColor(cornerRadius: 20,bounds: CGRect(x: 0, y: 0, width: 189, height: 40))
         }
        } completion: { _ in
            self.tf_verify.text = ""
            self.view.endEditing(false)
@@ -153,17 +160,11 @@
    }
    
    @IBAction func wechatLoginAcion(_ sender: QMUIButton) {
//      let req = SendAuthReq()
//      req.scope = "snsapi_userinfo"
//      req.state = "weparkLife_iOS"
//      WXApi.send(req)
        CommonAlertView.show(title: "提示", content: "账号权限正在审核中") { _ in
        }
      guard btn_reader.isSelected else {alert(msg: "请先仔细阅读并同意协议");return}
      let vc = BindPhoneVC()
      vc.modalPresentationStyle = .fullScreen
      push(vc: vc)
//      WeChatTools.sendAuthRequest()
    }