| | |
| | | import android.os.CountDownTimer |
| | | import android.os.Handler |
| | | import android.os.Looper |
| | | import android.view.View |
| | | import cn.sinata.xldutils.utils.* |
| | | import com.okgoincar.netUtls.callNet |
| | | import com.okgoincar.netUtls.getMapByAny |
| | |
| | | import com.okgoincar.bean.OrderStatueBean |
| | | import com.okgoincar.netUtls.Api |
| | | import com.okgoincar.netUtls.timeOver |
| | | import com.okgoincar.slab.util.DialogUtil |
| | | import com.okgoincar.utils.MyUtils |
| | | import kotlinx.android.synthetic.main.activity_order_over.* |
| | | import kotlinx.android.synthetic.main.dialog_sure_and_del_slab.view.* |
| | | import java.lang.Exception |
| | | |
| | | class SlabOrderOverActivity : MySlabBaseActivity() { |
| | |
| | | tv_name.text = it.data.nickName |
| | | tv_car_num.text = it.data.historyNum.toString() + "次乘车" |
| | | tv_phone.text = it.data.phone |
| | | |
| | | tv_phone.clickDelay { |
| | | MyUtils.getInstans().CallPhone(this, it.data.phone.toString()) |
| | | } |
| | |
| | | tv_time.text = it.data.travelTime |
| | | tv_start_address.text = it.data.startAddress |
| | | tv_end_address.text = it.data.endAddress |
| | | tv_end_address.visibility = if (it.data.endAddress.isNullOrEmpty()) View.GONE else View.VISIBLE |
| | | tv_red_money.text = it.data.tipMoney.toString() + "元小费" |
| | | // when (orderBean.data.orderState) { |
| | | // 10, 11 -> { |
| | |
| | | } |
| | | |
| | | tv_complete.clickDelay { |
| | | overOrder() |
| | | var pop = DialogUtil.getSlabDelAndSurePopWindow(this,"请确认是否收到乘客线下付款",{}){ |
| | | overOrder() |
| | | } |
| | | pop.contentView.tv_close_base.text = "未收款" |
| | | pop.contentView.tv_sure_base.text = "已收款" |
| | | pop.showCenter(window.decorView) |
| | | |
| | | } |
| | | } |
| | | |