From 2eb712cec24c7c6bb8c64dd332aa625efd8b7abe Mon Sep 17 00:00:00 2001 From: liugl <liugl@sinata.cn> Date: 星期二, 21 七月 2020 11:56:17 +0800 Subject: [PATCH] first commit --- app/src/main/java/com/okgoincar/slab/MySlabBaseActivity.java | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/okgoincar/slab/MySlabBaseActivity.java b/app/src/main/java/com/okgoincar/slab/MySlabBaseActivity.java index f1ba686..2dac744 100644 --- a/app/src/main/java/com/okgoincar/slab/MySlabBaseActivity.java +++ b/app/src/main/java/com/okgoincar/slab/MySlabBaseActivity.java @@ -28,6 +28,7 @@ import com.okgoincar.R; import com.okgoincar.base.BaseEvent; +import com.okgoincar.base.MyApplication; import com.okgoincar.slab.util.DialogUtil; import com.github.zackratos.ultimatebar.UltimateBar; import com.google.gson.Gson; @@ -94,7 +95,7 @@ } - Handler heartHandler; +// Handler heartHandler; private void settest() { // tv_test.setVisibility(VISIBLE); // if (!MyApplication.Companion.getLocation().getAoiName().isEmpty()){ @@ -107,7 +108,7 @@ // if (heartHandler == null) { // heartHandler = new Handler(getMainLooper()); // } -// heartHandler.postDelayed(this::settest,1000); +// heartHandler.postDelayed(this::settest,2000); } @@ -155,6 +156,24 @@ startActivity(intent); } + /*** + * type 1:普通单 2:该派单 + * @param orderId + * @param orderType + * @param time + * @param type + */ + public void showOrder(String orderId, String orderType,int time,int type) { +// Bundle bundle = creatBundleString("orderId", orderId); +// bundle.putString("orderType", orderType); + Intent intent = new Intent(this,SlabGetOrderFragment.class); + intent.putExtra("orderId",orderId); + intent.putExtra("orderType",orderType); + intent.putExtra("time",time); + intent.putExtra("type",type); + startActivity(intent); + } + @Override -- Gitblit v1.7.1