| | |
| | | if (userInfo.isMember) { |
| | | binding.ivVip.visibility = View.VISIBLE |
| | | binding.cardVip.visibility = View.VISIBLE |
| | | binding.tvVipExpire.text = "${userInfo.memberOvertime} 到期" |
| | | binding.tvVipExpire.text = "${userInfo.memberOverDate} 到期" |
| | | } else { |
| | | //非会员信息 |
| | | binding.ivVip.visibility = View.GONE |
| | | binding.cardVip.visibility = View.VISIBLE |
| | | binding.btnRenew.text = "立即开通" |
| | | binding.linearVipContainer.setBackgroundColor(ContextCompat.getColor(requireContext(), R.color.gray)) |
| | | binding.cardVip.visibility = View.GONE |
| | | } |
| | | } |
| | | } catch (e: Exception) { |