| | |
| | | private fun initMineLocation() { |
| | | AMapKit.initLocation(this, AMapLocationListener { |
| | | it?.let { |
| | | MyApplication.aMapLocation = it |
| | | carMarker!!.position = LatLng(it.latitude, it.longitude) |
| | | // toast("errorCode=="+it.errorCode.toString()+"latitude=="+it.latitude.toString()) |
| | | if (it.errorCode == 0) { |
| | | MyApplication.aMapLocation = it |
| | | carMarker!!.position = LatLng(it.latitude, it.longitude) |
| | | } |
| | | } |
| | | orderBean.let { |
| | | when (it.data.orderState) { |
| | |
| | | override fun onEventMainThread(event: BaseEvent?) { |
| | | super.onEventMainThread(event) |
| | | when (event!!.code) { |
| | | BaseEvent.REAGASSIGN_SUCCESS -> { |
| | | MyApplication.currentOrderId = "" |
| | | MyApplication.currentOrderType = "" |
| | | finish() |
| | | } |
| | | // BaseEvent.REAGASSIGN_SUCCESS -> { |
| | | // MyApplication.currentOrderId = "" |
| | | // MyApplication.currentOrderType = "" |
| | | // finish() |
| | | // } |
| | | BaseEvent.UP_TRIP -> { |
| | | callOrder() |
| | | } |