| | |
| | | class CargoActivity : MySlabBaseActivity() { |
| | | |
| | | private fun callOver(contexts: Context, travelFee: Double) { |
| | | MoneyBroadCastReceiver.callOver(contexts, travelFee) |
| | | callEnd(contexts, travelFee) |
| | | } |
| | | |
| | | private fun callEnd(contexts: Context, travelFee: Double) { |
| | | showChangeCargoDialog() |
| | | } |
| | | |
| | | private fun callStatue(contexts: Context, i: Int) { |
| | |
| | | var map = getMapByAny() |
| | | map["orderId"] = orderId |
| | | map["pickUpCode"] = num |
| | | callNet(true,Api.fillInPickUpCode, map) { |
| | | callNet(true,Api. fillInPickUpCode, map) { |
| | | click() |
| | | } |
| | | } |
| | |
| | | callNet(this, Api.queryOrderInfo, map) { |
| | | orderBean = gson.fromJson(it, OrderBean::class.java) |
| | | showUi(orderBean) |
| | | // Handler(Looper.getMainLooper()).postDelayed({ |
| | | // startActivity<SlabOrderOverActivity>("orderId" to orderBean.data.orderId.toString() , "orderType" to orderBean.data.type.toString()) |
| | | // },1000) |
| | | } |
| | | callPersion() |
| | | } |
| | |
| | | } |
| | | callNumberCargo(num){ |
| | | dialog.dismiss() |
| | | startActivity<SlabOrderOverActivity>( |
| | | "orderId" to orderId, |
| | | "orderType" to orderType |
| | | ) |
| | | callStartOrder(this,6){ |
| | | onBackPressed() |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | fun callStartOrder(contexts: Context, i: Int,func:() -> Unit) { |
| | | var map = getMapByAny() |
| | | map["orderId"] = MyApplication.currentOrderId |
| | | map["orderType"] = MyApplication.currentOrderType |
| | | map["state"] = i |
| | | map["lat"] = MyApplication.getLocation().latitude |
| | | map["lon"] = MyApplication.getLocation().longitude |
| | | callNet(contexts, Api.process, map) { |
| | | EventBus.getDefault().post(BaseEvent(BaseEvent.UP_TRIP)) |
| | | func() |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | private fun showGaoMoneyDialog() { |