From a0b3598842d57f5dfb5736e8a4fff5a9d70191a5 Mon Sep 17 00:00:00 2001 From: liugl <liugl@sinata.cn> Date: 星期四, 06 八月 2020 20:55:52 +0800 Subject: [PATCH] 8.6 --- app/src/main/java/com/okgoincar/slab/SlabGetOrderFragment.kt | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/okgoincar/slab/SlabGetOrderFragment.kt b/app/src/main/java/com/okgoincar/slab/SlabGetOrderFragment.kt index 0793ea0..a90ccdc 100644 --- a/app/src/main/java/com/okgoincar/slab/SlabGetOrderFragment.kt +++ b/app/src/main/java/com/okgoincar/slab/SlabGetOrderFragment.kt @@ -8,6 +8,7 @@ import cn.sinata.xldutils.utils.Toast import cn.sinata.xldutils.utils.clickDelay import cn.sinata.xldutils.utils.getNowTimeBlack +import cn.sinata.xldutils.utils.textColor import com.amap.api.maps.model.LatLng import com.okgoincar.netUtls.* import com.okgoincar.slab.util.UiUtil @@ -17,9 +18,6 @@ import com.okgoincar.base.MyApplication import com.okgoincar.bean.OrderBean import com.okgoincar.netUtls.Api -import kotlinx.android.synthetic.main.activity_fill_out_slab.ll_order_top -import kotlinx.android.synthetic.main.activity_fill_out_slab.tv_sure -import kotlinx.android.synthetic.main.activity_fill_out_slab.tv_time import kotlinx.android.synthetic.main.item_get_order.* import kotlinx.android.synthetic.main.item_map_market.view.* import org.jetbrains.anko.startActivity @@ -128,9 +126,19 @@ if (nowTimeBlack){ rl_top_back.setBackgroundResource(R.color.black_mode_383838) ll_order_top.setBackgroundResource(R.color.black_mode_383838) + tv_time.textColor(this,R.color.white) + tv_start.textColor(this,R.color.white) + tv_end.textColor(this,R.color.white) + tv_money.textColor(this,R.color.white) + tv_title.textColor(this,R.color.slab_yellow_zhong) }else{ - rl_top_back.setBackgroundResource(R.color.green_154c49) - ll_order_top.setBackgroundResource(R.color.green_154c49) + rl_top_back.setBackgroundResource(R.color.white) + ll_order_top.setBackgroundResource(R.color.white) + tv_time.textColor(this,R.color.black) + tv_start.textColor(this,R.color.black) + tv_end.textColor(this,R.color.black) + tv_money.textColor(this,R.color.black) + tv_title.textColor(this,R.color.yellow_ffa72d) } } @@ -140,7 +148,7 @@ map["orderId"] = orderId map["orderType"] = orderType showDialog() - callNet(this, Api.grabOrder, map, { + callNet(this, Api.grabOrder_, map, { dismissDialog() Toast.create(this).show("抢单成功") onBackPressed() -- Gitblit v1.7.1