无故事王国
2023-10-09 f942b6e016805d35c36301bf534fbbb367be4a34
WanPai/Root/Login/VC/LoginVC.swift
@@ -115,8 +115,12 @@
    @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)
@@ -161,10 +165,8 @@
    
    @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()
    }