正在查看: 多多分期 v4.1.2 应用的 MT2ACT.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 多多分期 v4.1.2 应用的 MT2ACT.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.duoduofenqi.ui.activitys;
import android.content.Context;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import butterknife.BindView;
import com.base.commonlibrary.netstate.ComNetWorkUtil;
import com.base.commonlibrary.views.TitleLayout;
import com.duoduofenqi.mjyp.BMAG01ACT;
import com.duoduofenqi.ui.activitys.MT2ACT;
import com.duoduofenqi.ui.bean.PostponeBean;
import com.duoduofenqi.ui.bean.PostponeStatusBean;
import d.b.a.l;
import d.b.a.n.d.d;
import d.i.b.d.b.e;
import d.i.b.d.b.h;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
public class MT2ACT extends e {
public String G;
public String H;
public CountDownTimer I;
@BindView(2131296725)
public Button btnCancle;
@BindView(2131296734)
public Button btnOk;
@BindView(2131297156)
public TextView dayNum;
@BindView(2131297359)
public TextView failReason;
@BindView(2131297825)
public ImageView imgStatus;
@BindView(2131297988)
public LinearLayout llContent;
@BindView(2131297989)
public LinearLayout llFail;
@BindView(2131298004)
public LinearLayout llSuccess;
@BindView(2131298006)
public LinearLayout llTop;
@BindView(2131298358)
public TextView pDate;
@BindView(2131298403)
public TextView payMoney;
@BindView(2131298662)
public RelativeLayout rl_time;
@BindView(2131299115)
public TextView tip;
@BindView(2131299147)
public TitleLayout title;
@BindView(2131299242)
public TextView tvSTip;
@BindView(2131299482)
public TextView xqDay;
public class a extends h<PostponeStatusBean> {
public a(Context context, boolean z) {
super(context, z);
}
@Override
public void a(String str) {
MT2ACT.this.c0(str);
}
@Override
public void b(PostponeStatusBean postponeStatusBean) {
if (postponeStatusBean.getCode() == 2030) {
PostponeStatusBean.ResultBean result = postponeStatusBean.getResult();
PostponeBean postponeBean = new PostponeBean();
postponeBean.setDueDate(result.getDueDate());
postponeBean.setPostponeAmount(result.getPostponeAmount());
postponeBean.setCountDay(Integer.valueOf(result.getCountDay()));
MT2ACT.this.p0(postponeBean, 1);
return;
}
if (postponeStatusBean.getCode() == 2031) {
PostponeStatusBean.ResultBean result2 = postponeStatusBean.getResult();
PostponeBean postponeBean2 = new PostponeBean();
postponeBean2.setDueDate(result2.getDueDate());
postponeBean2.setPostponeAmount(result2.getPostponeAmount());
postponeBean2.setCountDay(Integer.valueOf(result2.getCountDay()));
MT2ACT.this.p0(postponeBean2, 2);
return;
}
if (postponeStatusBean.getCode() != 2029) {
MT2ACT.this.p0(null, 2);
return;
}
MT2ACT.this.H = postponeStatusBean.getMessage();
MT2ACT.this.p0(null, 0);
}
}
public class b extends CountDownTimer {
public b(long j2, long j3) {
super(j2, j3);
}
@Override
public void onFinish() {
MT2ACT.this.m0(false);
}
@Override
public void onTick(long j2) {
if (j2 == 25000) {
MT2ACT.this.m0(false);
}
}
}
@Override
public boolean I() {
return false;
}
@Override
public int M() {
return 2131492921;
}
@Override
public void O() {
}
@Override
public void P(Bundle bundle) {
Bundle extras = getIntent().getExtras();
final int i2 = extras.getInt("status");
this.G = extras.getString("ORDERID");
this.H = extras.getString("msg");
p0((PostponeBean) extras.getSerializable("postponeBean"), i2);
this.btnOk.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
MT2ACT.this.n0(i2, view);
}
});
this.btnCancle.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
d.b.a.n.c.a.f().h(BMAG01ACT.class);
}
});
q0();
}
@Override
public void R() {
}
@Override
public void T() {
}
public void m0(boolean z) {
if (!ComNetWorkUtil.b(this.v)) {
c0(getResources().getString(l.net_error));
} else if (this.G != null) {
this.w.a(d.i.b.d.a.a.a().n(this.G).a(d.a()).s(new a(this.v, z)));
}
}
public void n0(int i2, View view) {
if (i2 == 0) {
String charSequence = this.failReason.getText().toString();
if (TextUtils.isEmpty(charSequence)) {
return;
}
c0(charSequence);
return;
}
String charSequence2 = ((TextView) view).getText().toString();
if (charSequence2.equals(getResources().getString(l.back_home))) {
d.b.a.n.c.a.f().h(BMAG01ACT.class);
finish();
} else if (getResources().getString(l.refresh_see_result).equals(charSequence2)) {
m0(true);
} else {
finish();
}
}
@Override
public void onDestroy() {
super.onDestroy();
r0();
}
public final void p0(PostponeBean postponeBean, int i2) {
if (i2 == 1) {
this.llSuccess.setVisibility(0);
this.llFail.setVisibility(8);
this.rl_time.setVisibility(8);
this.btnCancle.setVisibility(8);
this.tvSTip.setText(getResources().getString(l.deal_wait));
this.imgStatus.setImageResource(2131558468);
if (postponeBean != null) {
BigDecimal postponeAmount = postponeBean.getPostponeAmount();
String dueDate = postponeBean.getDueDate();
Integer countDay = postponeBean.getCountDay();
this.payMoney.setText(getString(l.money_fh) + postponeAmount);
this.xqDay.setText(countDay + getString(l.day));
this.dayNum.setText(dueDate);
}
this.btnOk.setText(getResources().getString(l.refresh_see_result));
this.tip.setText(getResources().getString(l.wait_for_bank));
return;
}
if (i2 != 2) {
this.llSuccess.setVisibility(8);
this.llFail.setVisibility(0);
this.btnCancle.setVisibility(0);
this.tvSTip.setText(getResources().getString(l.apply_failure));
this.imgStatus.setImageResource(2131558466);
this.tip.setText(getResources().getString(l.value_your_credit));
this.btnOk.setText(getResources().getString(l.continue_apply));
String str = this.H;
if (str != null) {
this.failReason.setText(str);
}
this.pDate.setText(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date(System.currentTimeMillis())));
return;
}
this.llSuccess.setVisibility(0);
this.llFail.setVisibility(8);
this.btnCancle.setVisibility(8);
this.rl_time.setVisibility(0);
this.btnOk.setText(getResources().getString(l.back_home));
this.tvSTip.setText(getResources().getString(l.apply_success));
this.imgStatus.setImageResource(2131558467);
this.tip.setText(getResources().getString(l.credit_improved));
if (postponeBean != null) {
BigDecimal postponeAmount2 = postponeBean.getPostponeAmount();
String dueDate2 = postponeBean.getDueDate();
Integer countDay2 = postponeBean.getCountDay();
this.payMoney.setText(getString(l.money_fh) + postponeAmount2);
this.xqDay.setText(countDay2 + getString(l.day));
this.dayNum.setText(dueDate2);
}
}
public void q0() {
if (this.I == null) {
this.I = new b(10000L, 1000L);
}
this.I.start();
}
public final void r0() {
CountDownTimer countDownTimer = this.I;
if (countDownTimer != null) {
countDownTimer.cancel();
this.I = null;
}
}
}