从业资格loading优化
This commit is contained in:
parent
6fc87c0d2e
commit
cabbe363a9
@ -3,6 +3,7 @@ package com.arpa.hndahesudintocctmsdriver.ui.auth;
|
|||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Message;
|
import android.os.Message;
|
||||||
|
import android.text.InputType;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@ -110,8 +111,9 @@ public class PhotoCarActivity extends BaseAppCompatActivity implements View.OnCl
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (CacheGroup.cacheList.get("ORCRoadLicZj") != null) {
|
if (CacheGroup.cacheList.get("ORCRoadLicZj") != null) {
|
||||||
|
if (customDialog != null && customDialog.isShowing())
|
||||||
|
customDialog.dismiss();
|
||||||
OCRRoadBean ib = new Gson().fromJson(CacheGroup.cacheList.get("ORCRoadLicZj"), OCRRoadBean.class);
|
OCRRoadBean ib = new Gson().fromJson(CacheGroup.cacheList.get("ORCRoadLicZj"), OCRRoadBean.class);
|
||||||
customDialog.dismiss();
|
|
||||||
if (ib.getCode() == 200 && ib.getData() != null) {
|
if (ib.getCode() == 200 && ib.getData() != null) {
|
||||||
value1.setText(PatternUtils.getNumByStr(ib.getData().getLicenseNumber()));
|
value1.setText(PatternUtils.getNumByStr(ib.getData().getLicenseNumber()));
|
||||||
} else {
|
} else {
|
||||||
@ -155,8 +157,10 @@ public class PhotoCarActivity extends BaseAppCompatActivity implements View.OnCl
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (CacheGroup.cacheList.get("saveCarImg") != null) {
|
if (CacheGroup.cacheList.get("saveCarImg") != null) {
|
||||||
if (customDialog != null && customDialog.isShowing())
|
if (type!=3){
|
||||||
customDialog.dismiss();
|
if (customDialog != null && customDialog.isShowing())
|
||||||
|
customDialog.dismiss();
|
||||||
|
}
|
||||||
BaseBean bb = gson.fromJson(CacheGroup.cacheList.get("saveCarImg"), BaseBean.class);
|
BaseBean bb = gson.fromJson(CacheGroup.cacheList.get("saveCarImg"), BaseBean.class);
|
||||||
if (bb.getCode() == 200) {
|
if (bb.getCode() == 200) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
@ -171,7 +175,7 @@ public class PhotoCarActivity extends BaseAppCompatActivity implements View.OnCl
|
|||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
ur.vehicleDelTwo(carId);
|
ur.vehicleDelTwo(carId);
|
||||||
Toast.makeText(con, "上传道路运输证成功", Toast.LENGTH_SHORT).show();
|
// Toast.makeText(con, "上传道路运输证成功", Toast.LENGTH_SHORT).show();
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
Toast.makeText(con, "交强险证件上传成功", Toast.LENGTH_SHORT).show();
|
Toast.makeText(con, "交强险证件上传成功", Toast.LENGTH_SHORT).show();
|
||||||
@ -635,8 +639,11 @@ public class PhotoCarActivity extends BaseAppCompatActivity implements View.OnCl
|
|||||||
tvSkip.setVisibility(isShowSkip[type] ? View.GONE : View.VISIBLE);
|
tvSkip.setVisibility(isShowSkip[type] ? View.GONE : View.VISIBLE);
|
||||||
llInfo.setVisibility(isShowEdit[type] ? View.VISIBLE : View.GONE);
|
llInfo.setVisibility(isShowEdit[type] ? View.VISIBLE : View.GONE);
|
||||||
if (type == 4) {
|
if (type == 4) {
|
||||||
|
value1.setInputType(InputType.TYPE_CLASS_TEXT);
|
||||||
llDate.setVisibility(View.VISIBLE);
|
llDate.setVisibility(View.VISIBLE);
|
||||||
title3.setText("保险公司");
|
title3.setText("保险公司");
|
||||||
|
}else {
|
||||||
|
value1.setInputType(InputType.TYPE_CLASS_NUMBER);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1274,6 +1274,19 @@ public class HomeFragment extends BaseFragment {
|
|||||||
initView(null);
|
initView(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onStart() {
|
||||||
|
super.onStart();
|
||||||
|
refreshWaybills();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void refreshWaybills(){
|
||||||
|
// if (UiAuxiliary.isLogin(con)) {
|
||||||
|
// int curWaybillId = (int) SPUtils.get(con, "curWaybillId", -1);
|
||||||
|
// hyr.startOrder(curWaybillId == -1 ? 0 : curWaybillId);
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void processResult(HomeWaybillEvent home) {
|
public void processResult(HomeWaybillEvent home) {
|
||||||
if (home.getMessage() == 1) {
|
if (home.getMessage() == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user