| | |
| | | @IBAction func getCodeAction(_ sender: UIButton) { |
| | | guard !tf_phone.text!.isEmpty else {alertError(msg: tf_phone.placeholder!);return} |
| | | guard tf_phone.text!.jq_isPhone else {alertError(msg: "请输入正确的手机号");return} |
| | | Services.getSMSCode(phone: tf_phone.text!, type: .login).subscribe(onNext: {result in |
| | | sender.jq_openCountDown() |
| | | Services.getSMSCode(phone: tf_phone.text!, type: .login).subscribe(onNext: {data in |
| | | if data.code == 200{ |
| | | sender.jq_openCountDown() |
| | | }else{ |
| | | alertError(msg: data.msg) |
| | | } |
| | | }) { error in |
| | | alertError(msg: error.localizedDescription) |
| | | }.disposed(by: disposeBag) |
| | |
| | | |
| | | @IBAction func wechatLoginAcion(_ sender: QMUIButton) { |
| | | guard btn_reader.isSelected else {alert(msg: "请先仔细阅读并同意协议");return} |
| | | let vc = BindPhoneVC() |
| | | vc.modalPresentationStyle = .fullScreen |
| | | push(vc: vc) |
| | | // WeChatTools.sendAuthRequest() |
| | | showHUD() |
| | | WeChatTools.sendAuthRequest() |
| | | } |
| | | |
| | | |