feat: 마이페이지 - 포인트 내역 추가
This commit is contained in:
parent
47265363dd
commit
39632b3e4c
|
@ -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 |
|
@ -66,6 +66,7 @@ struct CanCardView_Previews: PreviewProvider {
|
||||||
profileUrl: "https://test-cf.sodalive.net/profile/default-profile.png",
|
profileUrl: "https://test-cf.sodalive.net/profile/default-profile.png",
|
||||||
chargeCan: 0,
|
chargeCan: 0,
|
||||||
rewardCan: 150,
|
rewardCan: 150,
|
||||||
|
point: 100,
|
||||||
youtubeUrl: "",
|
youtubeUrl: "",
|
||||||
instagramUrl: "",
|
instagramUrl: "",
|
||||||
websiteUrl: "",
|
websiteUrl: "",
|
||||||
|
|
|
@ -90,6 +90,7 @@ struct MyInfoCardView_Previews: PreviewProvider {
|
||||||
profileUrl: "https://test-cf.sodalive.net/profile/default-profile.png",
|
profileUrl: "https://test-cf.sodalive.net/profile/default-profile.png",
|
||||||
chargeCan: 0,
|
chargeCan: 0,
|
||||||
rewardCan: 150,
|
rewardCan: 150,
|
||||||
|
point: 100,
|
||||||
youtubeUrl: "",
|
youtubeUrl: "",
|
||||||
instagramUrl: "",
|
instagramUrl: "",
|
||||||
websiteUrl: "",
|
websiteUrl: "",
|
||||||
|
|
|
@ -12,6 +12,7 @@ struct MyPageResponse: Decodable {
|
||||||
let profileUrl: String
|
let profileUrl: String
|
||||||
let chargeCan: Int
|
let chargeCan: Int
|
||||||
let rewardCan: Int
|
let rewardCan: Int
|
||||||
|
let point: Int
|
||||||
let youtubeUrl: String?
|
let youtubeUrl: String?
|
||||||
let instagramUrl: String?
|
let instagramUrl: String?
|
||||||
let websiteUrl: String?
|
let websiteUrl: String?
|
||||||
|
|
|
@ -123,6 +123,24 @@ struct MyPageView: View {
|
||||||
}
|
}
|
||||||
.frame(width: screenSize().width - 26.7)
|
.frame(width: screenSize().width - 26.7)
|
||||||
.padding(.top, 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 {
|
if data.isAuth {
|
||||||
|
|
|
@ -56,6 +56,7 @@ struct ReservationStatusView_Previews: PreviewProvider {
|
||||||
profileUrl: "https://test-cf.sodalive.net/profile/default-profile.png",
|
profileUrl: "https://test-cf.sodalive.net/profile/default-profile.png",
|
||||||
chargeCan: 0,
|
chargeCan: 0,
|
||||||
rewardCan: 150,
|
rewardCan: 150,
|
||||||
|
point: 100,
|
||||||
youtubeUrl: "",
|
youtubeUrl: "",
|
||||||
instagramUrl: "",
|
instagramUrl: "",
|
||||||
websiteUrl: "",
|
websiteUrl: "",
|
||||||
|
|
Loading…
Reference in New Issue