Commit 560f8ec0 authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent b0d61307
...@@ -134,20 +134,20 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener { ...@@ -134,20 +134,20 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
private fun loginStatus(consumer: UserBean) { private fun loginStatus(consumer: UserBean) {
// 1-匹配用户 // 1-匹配用户
if (consumer.activiteFlag == 0) { if (consumer.activiteFlag == 1) {
// 未匹配
ll_my_vip.visibility = View.GONE
ll_my_payrecord.visibility = View.GONE
ll_contactus.visibility = View.GONE
line_my_payrecord.visibility = View.GONE
line_my_contactus.visibility = View.GONE
} else {
// 匹配 // 匹配
ll_my_vip.visibility = View.VISIBLE ll_my_vip.visibility = View.VISIBLE
ll_my_payrecord.visibility = View.VISIBLE ll_my_payrecord.visibility = View.VISIBLE
ll_contactus.visibility = View.VISIBLE ll_contactus.visibility = View.VISIBLE
line_my_payrecord.visibility = View.VISIBLE line_my_payrecord.visibility = View.VISIBLE
line_my_contactus.visibility = View.VISIBLE line_my_contactus.visibility = View.VISIBLE
} else {
// 未匹配
ll_my_vip.visibility = View.GONE
ll_my_payrecord.visibility = View.GONE
ll_contactus.visibility = View.GONE
line_my_payrecord.visibility = View.GONE
line_my_contactus.visibility = View.GONE
} }
// 2-登录 // 2-登录
......
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