From 37dab403a9c8a31c8a1a1aa01cc5c1cf75d02ff5 Mon Sep 17 00:00:00 2001 From: liugl <liugl@sinata.cn> Date: 星期四, 24 十二月 2020 14:29:39 +0800 Subject: [PATCH] 1:新增上线 6版 tipmusic --- app/src/main/java/com/okgoincar/slab/SlabMainActivity.kt | 34 +++++++++++++++++++++++++++++----- 1 files changed, 29 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/okgoincar/slab/SlabMainActivity.kt b/app/src/main/java/com/okgoincar/slab/SlabMainActivity.kt index a5330ec..62b42e0 100644 --- a/app/src/main/java/com/okgoincar/slab/SlabMainActivity.kt +++ b/app/src/main/java/com/okgoincar/slab/SlabMainActivity.kt @@ -105,6 +105,7 @@ } else { showNoneNetDialog() } + tv_server_ing.textColor(this, R.color.main_yellow) } @@ -124,6 +125,7 @@ try { mainFragment?.refresh() callPersion() + callHomeNUm() } catch (e: Exception) { } @@ -231,8 +233,10 @@ } } } + callHomeNUm() + } - + fun callHomeNUm(){ callNet(true, Api.queryHomeNum, getMapByAny()) { var data = gson.fromJson<MainInfoBean>(it, MainInfoBean::class.java) if (!data.data.service.isNullOrEmpty() && data.data.service != "0") @@ -252,10 +256,13 @@ tv_server_ing.textColor(this, R.color.main_yellow) if (getNowTimeBlack()) { tv_wait_server.textColor(this, R.color.white) + iv_small.textColor(this, R.color.white) } else { tv_wait_server.textColor(this, R.color.black) + iv_small.textColor(this, R.color.black) } mainFragment.state = 1 + mainFragment.type = 1 mainFragment.autoRefresh() } @@ -263,10 +270,31 @@ tv_wait_server.textColor(this, R.color.main_yellow) if (getNowTimeBlack()) { tv_server_ing.textColor(this, R.color.white) + iv_small.textColor(this, R.color.white) } else { tv_server_ing.textColor(this, R.color.black) + iv_small.textColor(this, R.color.black) } mainFragment.state = 2 + mainFragment.type = 1 + mainFragment.autoRefresh() + } + + tv_title_top.clickDelay { + showOrder("33","4",202,1) + } + + iv_small.setOnClickListener { + iv_small.textColor(this, R.color.main_yellow) + if (getNowTimeBlack()) { + tv_server_ing.textColor(this, R.color.white) + tv_wait_server.textColor(this, R.color.white) + } else { + tv_server_ing.textColor(this, R.color.black) + tv_wait_server.textColor(this, R.color.black) + } + mainFragment.state = 1 + mainFragment.type = 2 mainFragment.autoRefresh() } @@ -288,10 +316,6 @@ ll_task.clickDelay { startActivity<SlabMineEventActivity>() - } - - tv_title_top.clickDelay { - } view_mode.clickDelay { -- Gitblit v1.7.1