| | |
| | | import com.kuanzhai.user.ui.crosscity.PayCrossActivity |
| | | import com.kuanzhai.user.ui.mine.adapter.CharterOrderAdapter |
| | | import com.kuanzhai.user.ui.mine.adapter.LogisticsAdapter |
| | | import com.kuanzhai.user.ui.mine.adapter.OfficialOrderAdapter |
| | | import com.kuanzhai.user.ui.mine.adapter.TripOrderAdapter |
| | | import com.kuanzhai.user.ui.trip.OrderCancelDetailActivity |
| | | import com.kuanzhai.user.ui.trip.OrderDetailActivity |
| | |
| | | payThankDialog.show(childFragmentManager, "thank") |
| | | } |
| | | }) |
| | | TYPE_OFFICIAL -> OfficialOrderAdapter(datas) |
| | | |
| | | TYPE_LOGISTICS_SAME, TYPE_LOGISTICS_CROSS -> LogisticsAdapter(datas, |
| | | object : LogisticsAdapter.ClickCallback { |
| | | override fun onPay(index: Int) { |
| | |
| | | } |
| | | } |
| | | } |
| | | Const.OrderType.TYPE_OFFICIAL->{ |
| | | if (order.auditStatus == 2){ |
| | | startActivityForResult<OrderCancelDetailActivity>( |
| | | 1, |
| | | "id" to order.orderId, |
| | | "type" to order.orderType |
| | | ) |
| | | } else if (order.auditStatus == 0){ |
| | | startActivityForResult<TripActivity>( |
| | | 1, |
| | | "id" to order.orderId, |
| | | "type" to order.orderType |
| | | ) |
| | | }else{ |
| | | when (order.state) { |
| | | in (1..6) -> startActivityForResult<TripActivity>( |
| | | 1, |
| | | "id" to order.orderId, |
| | | "type" to order.orderType |
| | | ) |
| | | 10 -> { |
| | | startActivityForResult<OrderCancelDetailActivity>( |
| | | 1, |
| | | "id" to order.orderId, |
| | | "type" to order.orderType |
| | | ) |
| | | } |
| | | 11 -> { |
| | | startActivityForResult<TripActivity>( |
| | | 1, |
| | | "id" to order.orderId, |
| | | "type" to order.orderType |
| | | ) |
| | | } |
| | | 7, 12 -> |
| | | startActivityForResult<OrderDetailActivity>( |
| | | 1, |
| | | "id" to order.orderId, |
| | | "type" to order.orderType |
| | | ) |
| | | else -> |
| | | startActivityForResult<OrderDetailWithMapActivity>( |
| | | 1, |
| | | "id" to order.orderId, |
| | | "type" to order.orderType |
| | | ) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |