天津出行司机端 v6.9.3版本的 MD5 值为:b7a18e0f0e865860fd80aa9ed7cf4ae1
以下内容为反编译后的 CertifyingActivity.java 源代码,内容仅作参考
package com.tt.travel_and_driver.member.certify;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import androidx.core.app.NotificationCompat;
import com.blankj.utilcode.util.AppUtils;
import com.blankj.utilcode.util.SpanUtils;
import com.blankj.utilcode.util.StringUtils;
import com.mylhyl.circledialog.view.listener.OnButtonClickListener;
import com.tt.travel_and_driver.BaseConfig;
import com.tt.travel_and_driver.R;
import com.tt.travel_and_driver.base.activity.BaseNetPresenterActivity;
import com.tt.travel_and_driver.base.utils.NetUtil;
import com.tt.travel_and_driver.base.utils.packutils.PackageUtils;
import com.tt.travel_and_driver.databinding.ActivityCertifyingBinding;
import com.tt.travel_and_driver.member.certify.bean.CertifyMsgBean;
import com.tt.travel_and_driver.member.certify.service.CertifyMsgService;
import com.tt.travel_and_driver.own.bean.BaseDataBean;
import netpresenter.annotations.NetService;
public class CertifyingActivity extends BaseNetPresenterActivity<ActivityCertifyingBinding> {
private CertifyMsgBean mCertifyMsgBean;
@NetService("CertifyMsgService")
CertifyMsgService mCertifyMsgService;
@Override
public ActivityCertifyingBinding attachBinding() {
return ActivityCertifyingBinding.inflate(getLayoutInflater());
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
@Override
protected void initData(Intent intent) {
CertifyMsgBean certifyMsgBean = (CertifyMsgBean) intent.getParcelableExtra(NotificationCompat.CATEGORY_MESSAGE);
this.mCertifyMsgBean = certifyMsgBean;
if (certifyMsgBean != null) {
setMsg();
} else {
this.mCertifyMsgService.getCertifyMsg();
}
}
@Override
protected void initView(Bundle save) {
SpanUtils.with(((ActivityCertifyingBinding) this.binding).tvTvCertifyingDescription).append("恭喜您报名成功,我们正在审核中,预计3-5个工作日审核完成,如有问题请咨询客服").append(BaseConfig.CUSTOMER_SERVICE_PHONE).setForegroundColor(getResources().getColor(R.color.blue_3D7BFB)).setClickSpan(getResources().getColor(R.color.blue_3D7BFB), false, new View.OnClickListener() {
@Override
public final void onClick(View view) {
CertifyingActivity.this.m500x279319ce(view);
}
}).create();
}
public void m500x279319ce(View v) {
callPhone(BaseConfig.CUSTOMER_SERVICE_PHONE);
}
private void setMsg() {
if (this.mCertifyMsgBean != null) {
((ActivityCertifyingBinding) this.binding).tvCertifyingName.setText(this.mCertifyMsgBean.getName());
((ActivityCertifyingBinding) this.binding).tvCertifyingCity.setText(this.mCertifyMsgBean.getCity());
((ActivityCertifyingBinding) this.binding).tvCertifyingIdcode.setText(this.mCertifyMsgBean.getIdCard());
((ActivityCertifyingBinding) this.binding).tvCertifyingPhone.setText(this.mCertifyMsgBean.getMobile());
((ActivityCertifyingBinding) this.binding).tvCertifyingQuesCall.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
CertifyingActivity.this.m501x776d3643(view);
}
});
if (!StringUtils.isEmpty(this.mCertifyMsgBean.getJump()) && this.mCertifyMsgBean.getJump().equals("1")) {
((ActivityCertifyingBinding) this.binding).llOtherAppRootBox.setVisibility(0);
SpanUtils.with(((ActivityCertifyingBinding) this.binding).tvJumpOtherAppGdClick).append("高德司机端:").append("应用市场").setForegroundColor(getResources().getColor(R.color.blue_3D7BFB)).setClickSpan(getResources().getColor(R.color.blue_3D7BFB), false, new View.OnClickListener() {
@Override
public final void onClick(View view) {
PackageUtils.openOtherApp("https://sj.qq.com/appdetail/com.dddzs.driver", "com.dddzs.driver");
}
}).append(" 搜索\"单多多助手\"").create();
SpanUtils.with(((ActivityCertifyingBinding) this.binding).tvJumpOtherAppXzClick).append("花小猪司机端:").append("https://t.honghusaas.com/9OMrBPp").setForegroundColor(getResources().getColor(R.color.blue_3D7BFB)).setClickSpan(getResources().getColor(R.color.blue_3D7BFB), false, new View.OnClickListener() {
@Override
public final void onClick(View view) {
CertifyingActivity.lambda$setMsg$3(view);
}
}).create();
}
}
}
public void m501x776d3643(View view) {
callPhone(BaseConfig.CUSTOMER_SERVICE_PHONE);
}
public static void lambda$setMsg$3(View v) {
boolean appInstalled = AppUtils.isAppInstalled("com.honghusaas.tianjin.driver");
if (appInstalled) {
AppUtils.launchApp("com.honghusaas.tianjin.driver");
} else {
PackageUtils.openWebUrl("https://t.honghusaas.com/9OMrBPp");
}
}
public void getCertifyMsgService_getCertifyMsgSuc(String tag, BaseDataBean<CertifyMsgBean> bean) {
this.mCertifyMsgBean = (CertifyMsgBean) NetUtil.converObj(bean);
setMsg();
}
public void getCertifyMsgServiceFail(String tag, String... msgs) {
showNetErrorPrompt(msgs[1], new OnButtonClickListener() {
@Override
public final boolean onClick(View view) {
return CertifyingActivity.this.m499x56c83d8b(view);
}
});
}
public boolean m499x56c83d8b(View v) {
this.mCertifyMsgService.getCertifyMsg();
return false;
}
}