Commit 17c793d1 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 8797e99a
...@@ -210,7 +210,6 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener, ...@@ -210,7 +210,6 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
if (!TextUtils.isEmpty(bean.remarks)) { if (!TextUtils.isEmpty(bean.remarks)) {
tv_vip_hint.text = bean.remarks tv_vip_hint.text = bean.remarks
tv_vip_hint.visibility = View.VISIBLE tv_vip_hint.visibility = View.VISIBLE
tv_vip_back.visibility = View.VISIBLE
if (bean.isShowCycTips) { if (bean.isShowCycTips) {
tv_vip_hint.setTextColor(Color.parseColor("#FFAC5E")) tv_vip_hint.setTextColor(Color.parseColor("#FFAC5E"))
tv_vip_hint.textSize = 12f tv_vip_hint.textSize = 12f
...@@ -219,8 +218,12 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener, ...@@ -219,8 +218,12 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener,
tv_vip_hint.textSize = 10f tv_vip_hint.textSize = 10f
} }
} else { } else {
tv_vip_hint.visibility = View.INVISIBLE tv_vip_hint.visibility = View.GONE
tv_vip_back.visibility = View.INVISIBLE }
if (bean.isShowCycTips) {
tv_vip_back.visibility = View.VISIBLE
}else{
tv_vip_back.visibility = View.GONE
} }
if (!TextUtils.isEmpty(bean.buttonText)) { if (!TextUtils.isEmpty(bean.buttonText)) {
......
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