导航菜单

页面标题

页面副标题

EfectivoYa v2.3 - FFOrderDetailActivity.java 源代码

正在查看: EfectivoYa v2.3 应用的 FFOrderDetailActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.mxff.ffxxmm.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.gyf.immersionbar.l;
import com.mxff.ffxxmm.activity.FFOrderDetailActivity;
import com.mxff.ffxxmm.adapter.FFProductDetailListAdapter;
import com.mxff.ffxxmm.databinding.FfActivityOrderDetailBinding;
import com.mxff.ffxxmm.model.response.FFOrderListBean;
import com.mxff.ffxxmm.model.response.FFQueryBean;
import com.mxff.ffxxmm.utils.e;
import com.mxff.ffxxmm.utils.k;
import com.mxff.ffxxmm.utils.n;
import com.mxff.ffxxmm.viewmodel.FFLoanViewModel;
import java.io.Serializable;
import java.util.ArrayList;
import kotlinx.coroutines.Observer;
import l1.d;

public class FFOrderDetailActivity extends BaseActivity<FFLoanViewModel, FfActivityOrderDetailBinding> {

    private FFOrderListBean f2090l;

    private FFProductDetailListAdapter f2091m;

    class a implements Observer {
        a() {
        }

        @Override
        public void onChanged(FFQueryBean fFQueryBean) {
            FFOrderDetailActivity.this.f2090l.getDescription();
            ArrayList arrayList = new ArrayList();
            arrayList.add(new d("Número de préstamo", FFOrderDetailActivity.this.f2090l.getOrderNo()));
            arrayList.add(new d("Prestatario", fFQueryBean.getBankUserName()));
            arrayList.add(new d("Número de identificación", fFQueryBean.getUserIdCard()));
            arrayList.add(new d("Monto del préstamo:", e.a(FFOrderDetailActivity.this.f2090l.getAmount())));
            arrayList.add(new d("Interés:", "0.04%"));
            arrayList.add(new d("Plazo del préstamo:", String.format(c1.a.a("%d días"), Integer.valueOf(FFOrderDetailActivity.this.f2090l.getTerm()))));
            arrayList.add(new d("Fecha del préstamo:", n.b(FFOrderDetailActivity.this.f2090l.getCreateTime(), FFOrderDetailActivity.this.f2090l.getTerm())));
            arrayList.add(new d("Monto a pagar:", e.a((long) com.mxff.ffxxmm.utils.a.b(FFOrderDetailActivity.this.f2090l.getAmount(), FFOrderDetailActivity.this.f2090l.getTerm()))));
            FFOrderDetailActivity.this.f2091m.c(arrayList);
        }
    }

    public void E(View view) {
        finish();
    }

    public void F(View view) {
        FFPayCodeActivity.E(this, this.f2090l);
    }

    public static void G(Context context, FFOrderListBean fFOrderListBean) {
        Intent intent = new Intent(context, (Class<?>) FFOrderDetailActivity.class);
        intent.putExtra("keyOrder", (Serializable) fFOrderListBean);
        context.startActivity(intent);
    }

    @Override
    protected void l() {
        super.l();
        this.f2060a.d.observe(this, new a());
    }

    @Override
    protected void r() {
        this.f2060a.f();
    }

    @Override
    protected void u(Bundle bundle) {
        FFOrderListBean serializableExtra;
        k.a(this.f2065i.ffCustomToolbar, c1.a.a("Detalles del pago"), new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                FFOrderDetailActivity.this.E(view);
            }
        });
        l.l0(this).f0(this.f2065i.ffCustomToolbar).D();
        if (Build.VERSION.SDK_INT >= 33) {
            serializableExtra = getIntent().getSerializableExtra("keyOrder", FFOrderListBean.class);
            this.f2090l = serializableExtra;
        } else {
            this.f2090l = getIntent().getSerializableExtra("keyOrder");
        }
        this.f2065i.rvOrderDetail.setLayoutManager(new LinearLayoutManager(this));
        RecyclerView.Adapter fFProductDetailListAdapter = new FFProductDetailListAdapter();
        this.f2091m = fFProductDetailListAdapter;
        this.f2065i.rvOrderDetail.setAdapter(fFProductDetailListAdapter);
        this.f2065i.tvContinue.setText(c1.a.a("Pagar ahora"));
        this.f2065i.tvContinue.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                FFOrderDetailActivity.this.F(view);
            }
        });
    }

    @Override
    protected boolean z() {
        return false;
    }
}