| | |
| | | |
| | | import com.okgoincar.R; |
| | | import com.okgoincar.base.BaseEvent; |
| | | import com.okgoincar.base.MoneyBroadCastReceiver; |
| | | import com.okgoincar.base.MyApplication; |
| | | import com.okgoincar.netUtls.NetKitKt; |
| | | import com.okgoincar.slab.util.DialogUtil; |
| | | import com.github.zackratos.ultimatebar.UltimateBar; |
| | | import com.google.gson.Gson; |
| | | import com.okgoincar.slab.util.UiUtil; |
| | | import com.okgoincar.utils.ActivityCollector; |
| | | import com.okgoincar.utils.EasePopup.EasyPopup; |
| | | |
| | |
| | | import java.util.List; |
| | | |
| | | import cn.sinata.xldutils.activitys.SlabBaseActivity; |
| | | import cn.sinata.xldutils.netstatus.NetUtils; |
| | | import cn.sinata.xldutils.utils.Isyy; |
| | | import cn.sinata.xldutils.utils.UtilKtKt; |
| | | import pub.devrel.easypermissions.EasyPermissions; |
| | | |
| | | import static android.view.View.GONE; |
| | | import static android.view.View.VISIBLE; |
| | | import static cn.sinata.xldutils.utils.UtilKtKt.toast; |
| | | |
| | | /** |
| | | * Created by Administrator on 2018/1/16. |
| | |
| | | |
| | | } |
| | | |
| | | // Handler heartHandler; |
| | | @Override |
| | | protected void onNetworkConnected(NetUtils.NetType type) { |
| | | super.onNetworkConnected(type); |
| | | if (NetUtils.isNetworkConnected(MyApplication.Companion.getInstance())) { |
| | | toast("网络重新通畅"); |
| | | MoneyBroadCastReceiver.Companion.callErrorOrder(this); |
| | | } |
| | | } |
| | | |
| | | // Handler heartHandler; |
| | | private void settest() { |
| | | // tv_test.setVisibility(VISIBLE); |
| | | // if (!MyApplication.Companion.getLocation().getAoiName().isEmpty()){ |
| | |
| | | } |
| | | |
| | | |
| | | public void showOrder(String orderId, String orderType) { |
| | | // Bundle bundle = creatBundleString("orderId", orderId); |
| | | // bundle.putString("orderType", orderType); |
| | | Intent intent = new Intent(this, SlabGetOrderFragment.class); |
| | | intent.putExtra("orderId",orderId); |
| | | intent.putExtra("orderType",orderType); |
| | | startActivity(intent); |
| | | } |
| | | |
| | | public void toDorderAct(String orderId, String orderType){ |
| | | Intent intent = new Intent(this, SlabTripActivity.class); |
| | |
| | | * @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); |
| | | UtilKtKt.calldetailOrderIsYy(this, orderId, orderType, b -> { |
| | | if (b){ |
| | | Intent intent = new Intent(MySlabBaseActivity.this,SlabGetOrderFragment.class); |
| | | intent.putExtra("orderId",orderId); |
| | | intent.putExtra("orderType",orderType); |
| | | intent.putExtra("time",time); |
| | | intent.putExtra("type",type); |
| | | startActivity(intent); |
| | | }else { |
| | | // toast("收到预约单"); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | |
| | | } else { |
| | | startActivity(tClass); |
| | | } |
| | | |
| | | } |
| | | |
| | | public void startActivityResult(Class tClass, int code) { |