| | |
| | | data?.let { |
| | | when (it.orderType) { |
| | | 1, 2, 3,7 -> { |
| | | if (it.status == 10 || it.status == 12) { |
| | | if ((it.status == 10 || it.status == 12)&&MyApplication.currentOrderId.isNotEmpty()&&it.orderId.toString() == orderId) { |
| | | Handler(Looper.getMainLooper()).post { |
| | | toast("用户已取消订单") |
| | | MyApplication.getTTsManager().setVideoText("用户已取消订单") |
| | |
| | | orderSimpleData?.let { |
| | | if (it.status == 10 || it.status == 12) { |
| | | Handler(Looper.getMainLooper()).post { |
| | | toast("用户已取消订单") |
| | | // toast("用户已取消订单") |
| | | MyApplication.getTTsManager().setVideoText("用户已取消订单") |
| | | MyApplication.currentOrderType = "" |
| | | MyApplication.currentOrderId = "" |
| | |
| | | "orderType" to orderType |
| | | ) |
| | | } else { |
| | | DialogUtil.getDelAndSureDialog( |
| | | val d = DialogUtil.getDelAndSureDialog( |
| | | this, |
| | | "现在改派将收取" + data.data.amount + "元改派费,您是否要进行改派?", |
| | | {}, |
| | |
| | | "money" to data.data.amount.toString() |
| | | ) |
| | | }) |
| | | val view = DialogUtil.getView(d) |
| | | view.tv_view_two_base.gravity = Gravity.CENTER |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | iv_move.setOnClickListener { |
| | |
| | | return@let |
| | | } |
| | | if (it.data.endAddress.isNullOrEmpty()&&it.data.orderState == 4){ |
| | | DialogUtil.getDelAndSureDialog(this,"去填写","取消","乘客未填写目的地,请代乘客填写目的地后开始行程",{ |
| | | }){ |
| | | val delAndSureDialog = DialogUtil.getDelAndSureDialog( |
| | | this, |
| | | "去填写", |
| | | "取消", |
| | | "乘客未填写目的地,请代乘客填写目的地后开始行程", |
| | | { |
| | | }) { |
| | | byChangeEnd = true |
| | | startActivity<SearchSiteActivity>("currentCityName" to (MyApplication.aMapLocation?.city?:""),"type" to "3") |
| | | startActivity<SearchSiteActivity>( |
| | | "currentCityName" to (MyApplication.aMapLocation?.city ?: ""), |
| | | "type" to "3" |
| | | ) |
| | | } |
| | | val view = DialogUtil.getView(delAndSureDialog) |
| | | view.tv_view_two_base.gravity = Gravity.CENTER |
| | | return@let |
| | | } |
| | | it.data.orderState++ |