Commit 81ffe548 authored by Li's avatar Li

[李俊岐] 优化

parent 667c3353
...@@ -158,21 +158,23 @@ class ClockInWithdrawAdpater : ...@@ -158,21 +158,23 @@ class ClockInWithdrawAdpater :
if (data.status == 3 || data.status == 1) { if (data.status == 3 || data.status == 1) {
// 当天任务,未完成打卡 // 当天任务,未完成打卡
holder?.layoutCenter.visibility = View.VISIBLE
holder?.tvMoneyRedPg.visibility = View.VISIBLE holder?.tvMoneyRedPg.visibility = View.VISIBLE
holder?.ivRedPgStatus.visibility = View.VISIBLE holder?.ivRedPgStatus.visibility = View.VISIBLE
holder?.tvMoney?.visibility = View.GONE holder?.tvMoney?.visibility = View.GONE
holder?.ivRedPgStatus?.setImageResource(R.drawable.icon_clock_in_item_red_pg_coin) holder?.ivRedPgStatus?.setImageResource(R.drawable.icon_clock_in_item_red_pg_coin)
//完成任务 未领取 //完成任务 未领取
if (data.status == 1) { if (data.status == 1) {
holder?.layoutProgress.visibility = View.GONE holder?.layoutProgress.visibility = View.GONE
holder?.tvComplete?.visibility = View.VISIBLE holder?.tvComplete?.visibility = View.VISIBLE
holder?.layoutCenter.visibility = View.GONE
startAnimator(holder.layoutRedPg) startAnimator(holder.layoutRedPg)
} else { } else {
holder?.layoutProgress.visibility = View.VISIBLE holder?.layoutProgress.visibility = View.VISIBLE
holder?.tvComplete?.visibility = View.GONE holder?.tvComplete?.visibility = View.GONE
holder?.layoutCenter.visibility = View.VISIBLE
holder.ivRedPgStatus.clearAnimation() holder.ivRedPgStatus.clearAnimation()
} }
holder?.ivRightStatus.clearAnimation() holder?.ivRightStatus.clearAnimation()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment