feat: 마이페이지 - 포인트 내역 추가

This commit is contained in:
Yu Sung 2025-04-23 22:03:08 +09:00
parent 47265363dd
commit 39632b3e4c
7 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ic_point.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -66,6 +66,7 @@ struct CanCardView_Previews: PreviewProvider {
profileUrl: "https://test-cf.sodalive.net/profile/default-profile.png",
chargeCan: 0,
rewardCan: 150,
point: 100,
youtubeUrl: "",
instagramUrl: "",
websiteUrl: "",

View File

@ -90,6 +90,7 @@ struct MyInfoCardView_Previews: PreviewProvider {
profileUrl: "https://test-cf.sodalive.net/profile/default-profile.png",
chargeCan: 0,
rewardCan: 150,
point: 100,
youtubeUrl: "",
instagramUrl: "",
websiteUrl: "",

View File

@ -12,6 +12,7 @@ struct MyPageResponse: Decodable {
let profileUrl: String
let chargeCan: Int
let rewardCan: Int
let point: Int
let youtubeUrl: String?
let instagramUrl: String?
let websiteUrl: String?

View File

@ -123,6 +123,24 @@ struct MyPageView: View {
}
.frame(width: screenSize().width - 26.7)
.padding(.top, 26.7)
HStack(spacing: 6.7) {
Text("\(data.point)")
.font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(.grayee)
Image("ic_point")
.resizable()
.frame(width: 20, height: 20)
Spacer()
}
.padding(.horizontal, 13.3)
.padding(.vertical, 16.7)
.frame(width: screenSize().width - 26.7)
.background(Color.gray22)
.cornerRadius(6.7)
.padding(.top, 13.3)
}
if data.isAuth {

View File

@ -56,6 +56,7 @@ struct ReservationStatusView_Previews: PreviewProvider {
profileUrl: "https://test-cf.sodalive.net/profile/default-profile.png",
chargeCan: 0,
rewardCan: 150,
point: 100,
youtubeUrl: "",
instagramUrl: "",
websiteUrl: "",