| | |
| | | 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() { |
| | |
| | | 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) |
| | |
| | | } |
| | | |
| | | @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() |
| | | } |
| | | |
| | | |