切换账号执行运单显示异常,上传银行卡loading显示优化
This commit is contained in:
parent
3c65d1f691
commit
d9ec95fbc8
@ -4,6 +4,7 @@ import android.content.Context;
|
|||||||
|
|
||||||
import com.arpa.hndahesudintocctmsdriver.event.HomeEvent;
|
import com.arpa.hndahesudintocctmsdriver.event.HomeEvent;
|
||||||
import com.arpa.hndahesudintocctmsdriver.ui.login.LoginActivity;
|
import com.arpa.hndahesudintocctmsdriver.ui.login.LoginActivity;
|
||||||
|
import com.arpa.hndahesudintocctmsdriver.util.SPUtils;
|
||||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||||
|
|
||||||
import org.greenrobot.eventbus.EventBus;
|
import org.greenrobot.eventbus.EventBus;
|
||||||
@ -39,6 +40,7 @@ public class UiAuxiliary {
|
|||||||
|
|
||||||
public static void delLogin(Context con){
|
public static void delLogin(Context con){
|
||||||
JPushInterface.deleteAlias(con,0);
|
JPushInterface.deleteAlias(con,0);
|
||||||
|
SPUtils.remove(con,"curWaybillId");
|
||||||
SPUtil.insSP(con,LoginActivity.USER,LoginActivity.USER_TOKEN,"");
|
SPUtil.insSP(con,LoginActivity.USER,LoginActivity.USER_TOKEN,"");
|
||||||
SPUtil.insSP(con,LoginActivity.USER,LoginActivity.USER_UNAME,"");
|
SPUtil.insSP(con,LoginActivity.USER,LoginActivity.USER_UNAME,"");
|
||||||
SPUtil.insSP(con,LoginActivity.USER,LoginActivity.USER_RNAME,"");
|
SPUtil.insSP(con,LoginActivity.USER,LoginActivity.USER_RNAME,"");
|
||||||
|
@ -74,6 +74,9 @@ public class UpBankActivity extends BaseAppCompatActivity implements OnLimitClic
|
|||||||
CacheGroup.cacheList.remove("OCR_BANK");
|
CacheGroup.cacheList.remove("OCR_BANK");
|
||||||
}
|
}
|
||||||
if (CacheGroup.cacheList.get("insBank") != null) {
|
if (CacheGroup.cacheList.get("insBank") != null) {
|
||||||
|
if (customDialog!=null&&customDialog.isShowing()){
|
||||||
|
customDialog.dismiss();
|
||||||
|
}
|
||||||
BaseBean bb = new Gson().fromJson(CacheGroup.cacheList.get("insBank"), BaseBean.class);
|
BaseBean bb = new Gson().fromJson(CacheGroup.cacheList.get("insBank"), BaseBean.class);
|
||||||
if (bb.getCode() == 200) {
|
if (bb.getCode() == 200) {
|
||||||
if (type == 1) {
|
if (type == 1) {
|
||||||
@ -81,7 +84,6 @@ public class UpBankActivity extends BaseAppCompatActivity implements OnLimitClic
|
|||||||
in.putExtra("index", 1);
|
in.putExtra("index", 1);
|
||||||
startActivity(in);
|
startActivity(in);
|
||||||
}
|
}
|
||||||
customDialog.dismiss();
|
|
||||||
Toast.makeText(con, "绑定成功", Toast.LENGTH_SHORT).show();
|
Toast.makeText(con, "绑定成功", Toast.LENGTH_SHORT).show();
|
||||||
finish();
|
finish();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user