| | |
| | | package com.okgoincar.slab |
| | | |
| | | import androidx.core.content.ContextCompat |
| | | import cn.sinata.xldutils.utils.clickDelay |
| | | import cn.sinata.xldutils.utils.getContent |
| | | import cn.sinata.xldutils.utils.textColor |
| | | import com.okgoincar.netUtls.callNet |
| | | import com.okgoincar.netUtls.getMapByAny |
| | | import com.okgoincar.R |
| | |
| | | et_travel_money.setBackgroundResource(R.drawable.bg_slab_gray_4_black) |
| | | et_parking_money.setBackgroundResource(R.drawable.bg_slab_gray_4_black) |
| | | et_crossing_money.setBackgroundResource(R.drawable.bg_slab_gray_4_black) |
| | | tv_name.textColor(this,R.color.write) |
| | | tv_car_num.textColor(this,R.color.write) |
| | | tv_phone.textColor(this,R.color.write) |
| | | tv_time.textColor(this,R.color.write) |
| | | tv_start_address.textColor(this,R.color.write) |
| | | tv_end_address.textColor(this,R.color.write) |
| | | tv_red_money.textColor(this,R.color.write) |
| | | tv_hint_travel.textColor(this,R.color.write) |
| | | tv_hint_parking.textColor(this,R.color.write) |
| | | tv_hint_crossing.textColor(this,R.color.write) |
| | | et_travel_money.textColor(this,R.color.write) |
| | | et_travel_money.setHintTextColor(ContextCompat.getColor(this,R.color.write_80)) |
| | | et_parking_money.textColor(this,R.color.write) |
| | | et_parking_money.setHintTextColor(ContextCompat.getColor(this,R.color.write_80)) |
| | | et_crossing_money.textColor(this,R.color.write) |
| | | et_crossing_money.setHintTextColor(ContextCompat.getColor(this,R.color.write_80)) |
| | | }else{ |
| | | rl_back.setBackgroundResource(R.drawable.bg_slab_main) |
| | | ll_content_web.setBackgroundResource(R.drawable.bg_slab_main_8) |
| | | ll_order_top.setBackgroundResource(R.drawable.bg_slab_main_8_bottom) |
| | | ll_back_right.setBackgroundResource(R.drawable.bg_slab_main_8_shen) |
| | | et_travel_money.setBackgroundResource(R.drawable.bg_slab_gray_4) |
| | | et_parking_money.setBackgroundResource(R.drawable.bg_slab_gray_4) |
| | | et_crossing_money.setBackgroundResource(R.drawable.bg_slab_gray_4) |
| | | rl_back.setBackgroundResource(R.drawable.write) |
| | | ll_content_web.setBackgroundResource(R.drawable.bg_white_round5) |
| | | ll_order_top.setBackgroundResource(R.drawable.bg_white_round5) |
| | | ll_back_right.setBackgroundResource(R.drawable.bg_white_round5) |
| | | et_travel_money.setBackgroundResource(R.drawable.bg_white_round5) |
| | | et_parking_money.setBackgroundResource(R.drawable.bg_white_round5) |
| | | et_crossing_money.setBackgroundResource(R.drawable.bg_white_round5) |
| | | tv_name.textColor(this,R.color.black) |
| | | tv_car_num.textColor(this,R.color.black) |
| | | tv_phone.textColor(this,R.color.black) |
| | | tv_time.textColor(this,R.color.black) |
| | | tv_start_address.textColor(this,R.color.black) |
| | | tv_end_address.textColor(this,R.color.black) |
| | | tv_red_money.textColor(this,R.color.black) |
| | | tv_hint_travel.textColor(this,R.color.black) |
| | | tv_hint_parking.textColor(this,R.color.black) |
| | | tv_hint_crossing.textColor(this,R.color.black) |
| | | et_travel_money.textColor(this,R.color.black) |
| | | et_travel_money.setHintTextColor(ContextCompat.getColor(this,R.color.black55)) |
| | | et_parking_money.textColor(this,R.color.black) |
| | | et_parking_money.setHintTextColor(ContextCompat.getColor(this,R.color.black55)) |
| | | et_crossing_money.textColor(this,R.color.black) |
| | | et_crossing_money.setHintTextColor(ContextCompat.getColor(this,R.color.black55)) |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | private fun callOrder() { |
| | | MyApplication.currentOrderId = orderId |
| | | // MyApplication.currentOrderId = orderId |
| | | MyApplication.currentOrderType = orderType |
| | | var map = getMapByAny() |
| | | map["orderId"] = orderId |