feat: 마이페이지 - 포인트 내역 추가
This commit is contained in:
@@ -113,9 +113,11 @@ class MyPageFragment : BaseFragment<FragmentMyBinding>(FragmentMyBinding::inflat
|
||||
}
|
||||
|
||||
if (SharedPreferenceManager.userId == 17958L) {
|
||||
binding.llCan.visibility = View.GONE
|
||||
binding.rlCan.visibility = View.GONE
|
||||
binding.rlPoint.visibility = View.GONE
|
||||
} else {
|
||||
binding.llCan.visibility = View.VISIBLE
|
||||
binding.rlCan.visibility = View.VISIBLE
|
||||
binding.rlPoint.visibility = View.VISIBLE
|
||||
binding.llTotalCan.setOnClickListener {
|
||||
startActivity(
|
||||
Intent(
|
||||
@@ -233,6 +235,7 @@ class MyPageFragment : BaseFragment<FragmentMyBinding>(FragmentMyBinding::inflat
|
||||
binding.llFollowingMemberListContainer.visibility = View.GONE
|
||||
|
||||
binding.rlAlarm.visibility = View.GONE
|
||||
binding.rlPoint.visibility = View.GONE
|
||||
binding.rlCoupon.visibility = View.GONE
|
||||
binding.llLockerContainer.visibility = View.GONE
|
||||
binding.llReservationStatusContainer.visibility = View.GONE
|
||||
@@ -318,6 +321,7 @@ class MyPageFragment : BaseFragment<FragmentMyBinding>(FragmentMyBinding::inflat
|
||||
}
|
||||
|
||||
binding.tvTotalCan.text = (it.chargeCan + it.rewardCan).moneyFormat()
|
||||
binding.tvTotalPoint.text = it.point.moneyFormat()
|
||||
binding.tvReservationLive.text = "${it.liveReservationCount}"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@ package kr.co.vividnext.sodalive.mypage
|
||||
|
||||
import androidx.annotation.Keep
|
||||
import com.google.gson.annotations.SerializedName
|
||||
import kr.co.vividnext.sodalive.audio_content.order.GetAudioContentOrderListResponse
|
||||
|
||||
@Keep
|
||||
data class MyPageResponse(
|
||||
@@ -10,6 +9,7 @@ data class MyPageResponse(
|
||||
@SerializedName("profileUrl") val profileUrl: String,
|
||||
@SerializedName("chargeCan") val chargeCan: Int,
|
||||
@SerializedName("rewardCan") val rewardCan: Int,
|
||||
@SerializedName("point") val point: Int,
|
||||
@SerializedName("youtubeUrl") val youtubeUrl: String?,
|
||||
@SerializedName("instagramUrl") val instagramUrl: String?,
|
||||
@SerializedName("websiteUrl") val websiteUrl: String?,
|
||||
|
||||
Reference in New Issue
Block a user