|
|
@@ -52,6 +52,7 @@ import com.huntersun.vkyes.etcopencard.project.ui.activity.after.ReplaceEtcStep4 |
|
|
|
import com.huntersun.vkyes.etcopencard.project.ui.activity.user.ForgetPwdStep1Activity; |
|
|
|
import com.huntersun.vkyes.etcopencard.project.utils.AESUtil; |
|
|
|
import com.huntersun.vkyes.etcopencard.project.utils.Constants; |
|
|
|
import com.huntersun.vkyes.etcopencard.project.utils.ETCAppManager; |
|
|
|
import com.huntersun.vkyes.etcopencard.project.utils.FunHelper; |
|
|
|
import com.huntersun.vkyes.etcopencard.src.aop.SingleClick; |
|
|
|
import com.huntersun.vkyes.etcopencard.src.app.AppActivity; |
|
|
@@ -594,6 +595,9 @@ public final class LoginActivity extends AppActivity implements KeyboardWatcher. |
|
|
|
* 发送验证码 |
|
|
|
*/ |
|
|
|
private void sendCode() { |
|
|
|
// ETCAppManager.getInstance().init(this); |
|
|
|
// ETCAppManager.getInstance().startEtcApp(); |
|
|
|
|
|
|
|
Map<String, String> params = new HashMap<>(); |
|
|
|
params.put("mobile", FunHelper.getText(mPhoneView)); |
|
|
|
MyRetrofit.newInstanceGZ(this, IFCode.IFCODE2, params, new MyRetrofit.ReturnResult() { |
|
|
@@ -610,31 +614,6 @@ public final class LoginActivity extends AppActivity implements KeyboardWatcher. |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
//旧版本 |
|
|
|
/* if (mPhoneView.getText().toString().length() != 11) { |
|
|
|
mPhoneView.startAnimation(AnimationUtils.loadAnimation(getContext(), R.anim.shake_anim)); |
|
|
|
toast(R.string.common_phone_input_error); |
|
|
|
return; |
|
|
|
} |
|
|
|
// 隐藏软键盘 |
|
|
|
hideKeyboard(getCurrentFocus()); |
|
|
|
showDialog("发送中..."); |
|
|
|
Map<String, String> params = new HashMap<>(); |
|
|
|
params.put("mobile", mPhoneView.getText().toString()); |
|
|
|
MyRetrofit.newInstance(IFCode.IFCODE2, params, new MyRetrofit.ReturnResult() { |
|
|
|
@Override |
|
|
|
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) { |
|
|
|
hideDialog(); |
|
|
|
toast("验证码发送成功!"); |
|
|
|
mCountdownView.start(); //开始倒计时 |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void onError() { |
|
|
|
MyRetrofit.ReturnResult.super.onError(); |
|
|
|
hideDialog(); |
|
|
|
} |
|
|
|
});*/ |
|
|
|
} |
|
|
|
|
|
|
|
@Override |