首页证件补传重复弹出优化

This commit is contained in:
lijia 2024-10-18 09:01:26 +08:00
parent ba86cfb234
commit 4cba8a8246
2 changed files with 28 additions and 6 deletions

View File

@ -105,7 +105,7 @@ android {
JPUSH_CHANNEL: "developer-default"//. JPUSH_CHANNEL: "developer-default"//.
] ]
buildConfigField("String", "OPEN_AL_URL", "\"https://oapi-staging.alct56.com\"") buildConfigField("String", "OPEN_AL_URL", "\"https://oapi-staging.alct56.com\"")
buildConfigField("String", "BASE_URL", "\"https://app.test.dahehuoyun.com/api/\"") buildConfigField("String", "BASE_URL", "\"http://192.168.1.118:8080/api/\"")
buildConfigField "boolean", "isTest", "true" buildConfigField "boolean", "isTest", "true"
//APP名称androidMainfest中引用 //APP名称androidMainfest中引用
resValue "string", "appName", "司机测试" resValue "string", "appName", "司机测试"

View File

@ -139,6 +139,8 @@ public class HomeFragment extends BaseFragment {
private ImageConfig ic; private ImageConfig ic;
private DriverExpireBean deb; private DriverExpireBean deb;
private XToast xToast;
@Override @Override
public void msgMethod(Message m) { public void msgMethod(Message m) {
@ -278,8 +280,12 @@ public class HomeFragment extends BaseFragment {
if (!TextUtils.isEmpty(deb.getData().getDriverLicenseUpdateUrl()) || !TextUtils.isEmpty(deb.getData().getIdCardUpdateUrl()) || if (!TextUtils.isEmpty(deb.getData().getDriverLicenseUpdateUrl()) || !TextUtils.isEmpty(deb.getData().getIdCardUpdateUrl()) ||
!TextUtils.isEmpty(deb.getData().getQualificationUpdateUrl()) || !TextUtils.isEmpty(deb.getData().getRoadLicenseUpdateUrl()) || !TextUtils.isEmpty(deb.getData().getQualificationUpdateUrl()) || !TextUtils.isEmpty(deb.getData().getRoadLicenseUpdateUrl()) ||
!TextUtils.isEmpty(deb.getData().getInsuranceUpdateUrl())) { !TextUtils.isEmpty(deb.getData().getInsuranceUpdateUrl())) {
new XToast<>(act) if (xToast==null){
.setContentView(R.layout.view_bc) xToast = new XToast(act);
}else if (xToast!=null&&xToast.isShow()){
xToast.cancel();
}
xToast.setContentView(R.layout.view_bc)
// 设置成可拖拽的 // 设置成可拖拽的
.setDraggable() .setDraggable()
// 设置显示时长 // 设置显示时长
@ -294,6 +300,22 @@ public class HomeFragment extends BaseFragment {
// 设置窗口背景阴影强度 // 设置窗口背景阴影强度
//.setBackgroundDimAmount(0.5f) //.setBackgroundDimAmount(0.5f)
.showAsDropDown(home_top, Gravity.BOTTOM, 1200, 1000); .showAsDropDown(home_top, Gravity.BOTTOM, 1200, 1000);
// new XToast<>(act)
// .setContentView(R.layout.view_bc)
// // 设置成可拖拽的
// .setDraggable()
// // 设置显示时长
// .setDuration(1000 * 60 * 60 * 12)
// .setOnClickListener(R.id.img_kf, (toast, view) -> {
// toast.startActivity(in);
// Log.e("-is-", view.isInTouchMode() + "");
// })
// // 设置动画样式
// //.setAnimStyle(android.R.style.Animation_Translucent)
// // 设置外层是否能被触摸
// // 设置窗口背景阴影强度
// //.setBackgroundDimAmount(0.5f)
// .showAsDropDown(home_top, Gravity.BOTTOM, 1200, 1000);
} }
CacheGroup.cacheList.remove("driverExpire"); CacheGroup.cacheList.remove("driverExpire");
} }
@ -688,14 +710,14 @@ public class HomeFragment extends BaseFragment {
WalletRequest qr = new WalletRequest(con, hd); WalletRequest qr = new WalletRequest(con, hd);
if (UiAuxiliary.isLogin(con)) { if (UiAuxiliary.isLogin(con)) {
// int curWaybillId = (int) SPUtils.get(con, "curWaybillId", -1); int curWaybillId = (int) SPUtils.get(con, "curWaybillId", -1);
ur.User(); ur.User();
if (!OneDayShowUtils.getInstance().todayIsShow(con)) { if (!OneDayShowUtils.getInstance().todayIsShow(con)) {
qr.getBankCardList(); qr.getBankCardList();
} }
ur.getDriverExpire(); ur.getDriverExpire();
// hyr.startOrder(curWaybillId==-1 ? 0 : curWaybillId); hyr.startOrder(curWaybillId==-1 ? 0 : curWaybillId);
hyr.startOrder(0); // hyr.startOrder(0);
ur.driverAuthData(); ur.driverAuthData();
} }
// oldTime= Calendar.getInstance().getTimeInMillis(); // oldTime= Calendar.getInstance().getTimeInMillis();