正在查看: 多多分期 v4.1.2 应用的 MTT3ACT.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 多多分期 v4.1.2 应用的 MTT3ACT.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.duoduofenqi.ui.activitys;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;
import butterknife.BindView;
import com.alibaba.fastjson.support.spring.FastJsonJsonView;
import com.base.commonlibrary.views.TitleLayout;
import com.duoduofenqi.ui.activitys.MTT3ACT;
import com.duoduofenqi.ui.bean.PostponeBean;
import d.b.a.l;
import d.b.a.n.d.b;
import d.i.b.d.b.e;
import d.i.b.d.b.h;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.HashMap;
import okhttp3.MediaType;
import okhttp3.RequestBody;
public class MTT3ACT extends e {
public String G;
public BigDecimal H;
public PostponeBean I;
public BigDecimal J;
public String K = "6";
public int L;
@BindView(2131296406)
public TextView allMoney;
@BindView(2131296731)
public Button btnGoCash;
@BindView(2131298666)
public RelativeLayout rl;
@BindView(2131299147)
public TitleLayout title;
@BindView(2131299482)
public TextView xqDay;
@BindView(2131299483)
public TextView xqMoney;
@BindView(2131299498)
public TextView yqMoney;
public class a extends h<PostponeBean> {
public a(Context context, boolean z) {
super(context, z);
}
@Override
public void a(String str) {
MTT3ACT.this.c0(str);
MTT3ACT.this.finish();
}
@Override
public void b(PostponeBean postponeBean) {
if (postponeBean != null) {
MTT3ACT.this.I = postponeBean;
MTT3ACT.this.H = postponeBean.getOverdueFine();
MTT3ACT.this.L = postponeBean.getPayType();
MTT3ACT.this.K = postponeBean.getPostponePeriod();
if (MTT3ACT.this.H == null || MTT3ACT.this.H.compareTo(new BigDecimal(0.0d)) == 0) {
MTT3ACT.this.H = new BigDecimal(0);
MTT3ACT.this.rl.setVisibility(8);
} else {
MTT3ACT.this.rl.setVisibility(0);
MTT3ACT.this.yqMoney.setText(MTT3ACT.this.getString(l.money_fh) + MTT3ACT.this.H);
}
MTT3ACT.this.J = postponeBean.getInterestDays() == null ? new BigDecimal("0.0") : postponeBean.getInterestDays();
BigDecimal scale = MTT3ACT.this.J.add(MTT3ACT.this.H).setScale(2, RoundingMode.DOWN);
MTT3ACT.this.xqDay.setText(MTT3ACT.this.K + MTT3ACT.this.getString(l.day));
MTT3ACT.this.xqMoney.setText(MTT3ACT.this.getString(l.money_fh) + MTT3ACT.this.J);
MTT3ACT.this.allMoney.setText(MTT3ACT.this.getString(l.money_fh) + scale);
}
}
}
@Override
public boolean I() {
return false;
}
@Override
public int M() {
return 2131492920;
}
@Override
public void O() {
}
@Override
public void P(Bundle bundle) {
Intent intent = getIntent();
if (intent.getExtras() != null) {
Bundle extras = intent.getExtras();
this.G = extras.getString("ORDERID");
extras.getInt("payType");
}
s0();
this.btnGoCash.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
MTT3ACT.this.t0(view);
}
});
}
@Override
public void R() {
}
@Override
public void T() {
}
public final void s0() {
HashMap hashMap = new HashMap();
hashMap.put("orderNo", this.G + "");
this.w.a(d.i.b.d.a.a.a().o(RequestBody.create(MediaType.parse(FastJsonJsonView.DEFAULT_CONTENT_TYPE), new d.l.b.e().r(hashMap))).a(b.c()).s(new a(this.v, true)));
}
public void t0(View view) {
u0();
}
public final void u0() {
if (this.I == null) {
s0();
return;
}
this.I.setPostponeAmount(new BigDecimal(this.allMoney.getText().toString().replaceAll(getString(l.money_fh), "")));
this.I.setOrderNo(this.G);
this.I.setCountDay(Integer.valueOf(Integer.parseInt(this.xqDay.getText().toString().replace(getString(l.day), ""))));
Bundle bundle = new Bundle();
bundle.putInt("TYPE", 2);
bundle.putSerializable("myBorrow", this.I);
e0(MTM0ACT.class, bundle);
}
}