Commit a62d4791 authored by 王雪伟's avatar 王雪伟

[提交人]:王雪伟

[提交简述] :1.1.0
[实现方案] :调整UI
parent c98ad084
...@@ -54,19 +54,19 @@ class PhoneVouchersActivity : BaseActivity() { ...@@ -54,19 +54,19 @@ class PhoneVouchersActivity : BaseActivity() {
.subscribe(object : BaseObserver<List<CouponsEntity>>() { .subscribe(object : BaseObserver<List<CouponsEntity>>() {
override fun onSuccess(result: List<CouponsEntity>?) { override fun onSuccess(result: List<CouponsEntity>?) {
if (result.isNullOrEmpty()) { if (result.isNullOrEmpty()) {
id_phone_voucher_empty?.visibility = View.GONE
id_rl_phone_voucher?.visibility = View.VISIBLE
} else {
id_phone_voucher_empty?.visibility = View.VISIBLE id_phone_voucher_empty?.visibility = View.VISIBLE
id_rl_phone_voucher?.visibility = View.GONE id_rl_phone_voucher?.visibility = View.GONE
} else {
id_phone_voucher_empty?.visibility = View.GONE
id_rl_phone_voucher?.visibility = View.VISIBLE
mAdapter?.clear() mAdapter?.clear()
mAdapter?.appendToList(result) mAdapter?.appendToList(result)
} }
} }
override fun onFailure(e: Throwable?, code: String?, errorMsg: String?) { override fun onFailure(e: Throwable?, code: String?, errorMsg: String?) {
id_phone_voucher_empty?.visibility = View.GONE id_phone_voucher_empty?.visibility = View.VISIBLE
id_rl_phone_voucher?.visibility = View.VISIBLE id_rl_phone_voucher?.visibility = View.GONE
} }
}) })
} }
......
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