코인 -> 캔 변경

This commit is contained in:
Yu Sung
2023-08-15 01:27:30 +09:00
parent 0f8b740469
commit 0959fa55be
17 changed files with 35 additions and 36 deletions

View File

@@ -124,7 +124,7 @@ struct LiveView: View {
if viewModel.isShowPasswordDialog {
LiveRoomPasswordDialog(
isShowing: $viewModel.isShowPasswordDialog,
can: viewModel.secretOrPasswordDialogCoin,
can: viewModel.secretOrPasswordDialogCan,
confirmAction: viewModel.passwordDialogConfirmAction
)
}

View File

@@ -36,7 +36,7 @@ final class LiveViewModel: ObservableObject {
@Published var paymentDialogConfirmAction = {}
@Published var paymentDialogConfirmTitle = ""
@Published var secretOrPasswordDialogCoin = 0
@Published var secretOrPasswordDialogCan = 0
@Published var passwordDialogConfirmAction: (String) -> Void = { _ in }
@Published var isShowPasswordDialog = false
@@ -71,7 +71,7 @@ final class LiveViewModel: ObservableObject {
paymentDialogDesc = ""
paymentDialogConfirmAction = {}
secretOrPasswordDialogCoin = 0
secretOrPasswordDialogCan = 0
passwordDialogConfirmAction = { _ in }
}
@@ -390,7 +390,7 @@ final class LiveViewModel: ObservableObject {
if ($0.price == 0 || $0.isPaid) {
self.reservation(roomId: roomId)
} else {
self.paymentDialogTitle = "\($0.price)코인으로 예약"
self.paymentDialogTitle = "\($0.price)으로 예약"
self.paymentDialogDesc = "'\($0.title)' 라이브에 참여하기 위해 결제합니다."
self.paymentDialogConfirmTitle = "결제 후 예약하기"
self.paymentDialogConfirmAction = { [unowned self] in

View File

@@ -97,7 +97,7 @@ struct LiveReservationCompleteView: View {
VStack(spacing: 13.3) {
HStack(spacing: 0) {
Text("보유코인")
Text("보유")
.font(.custom(Font.medium.rawValue, size: 14.7))
.foregroundColor(Color(hex: "777777"))
@@ -107,14 +107,14 @@ struct LiveReservationCompleteView: View {
.font(.custom(Font.bold.rawValue, size: 15.3))
.foregroundColor(Color(hex: "eeeeee"))
Text(" 코인")
Text(" ")
.font(.custom(Font.medium.rawValue, size: 14.7))
.foregroundColor(Color(hex: "eeeeee"))
}
.frame(width: screenSize().width - 53.4, alignment: .leading)
HStack(spacing: 0) {
Text("결제코인")
Text("결제")
.font(.custom(Font.medium.rawValue, size: 14.7))
.foregroundColor(Color(hex: "777777"))
@@ -124,14 +124,14 @@ struct LiveReservationCompleteView: View {
.font(.custom(Font.bold.rawValue, size: 15.3))
.foregroundColor(Color(hex: "eeeeee"))
Text(" 코인")
Text(" ")
.font(.custom(Font.medium.rawValue, size: 14.7))
.foregroundColor(Color(hex: "eeeeee"))
}
.frame(width: screenSize().width - 53.4, alignment: .leading)
HStack(spacing: 0) {
Text("잔여코인")
Text("잔여")
.font(.custom(Font.medium.rawValue, size: 14.7))
.foregroundColor(Color(hex: "777777"))
@@ -141,7 +141,7 @@ struct LiveReservationCompleteView: View {
.font(.custom(Font.bold.rawValue, size: 15.3))
.foregroundColor(Color(hex: "eeeeee"))
Text(" 코인")
Text(" ")
.font(.custom(Font.medium.rawValue, size: 14.7))
.foregroundColor(Color(hex: "eeeeee"))
}

View File

@@ -63,7 +63,7 @@ struct LiveReservationItemView: View {
.cornerRadius(10)
} else {
if item.price > 0 {
Text("\(item.price)코인")
Text("\(item.price)")
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(
Color(hex: "e2e2e2")

View File

@@ -725,7 +725,7 @@ struct LiveRoomCreateView: View {
Spacer()
Text("코인")
Text("")
.font(.custom(Font.medium.rawValue, size: 14.7))
.foregroundColor(
Color(hex: "9970ff")
@@ -754,7 +754,7 @@ struct LiveRoomCreateView: View {
@ViewBuilder
func PriceButtonView(price: Int, buttonWidth: CGFloat) -> some View {
HStack(spacing: 6.7) {
Text(price == 0 ? "무료" : "\(price) 코인")
Text(price == 0 ? "무료" : "\(price) ")
.font(.custom(
viewModel.price == price ?
Font.bold.rawValue :

View File

@@ -67,7 +67,7 @@ struct LiveRoomDonationRankingItemView: View {
Spacer()
if item.can > 0 {
Text("\(item.can) 코인")
Text("\(item.can) ")
.font(.custom(Font.medium.rawValue, size: 13.3))
.foregroundColor(Color(hex: "eeeeee"))
}

View File

@@ -321,7 +321,7 @@ final class LiveRoomViewModel: NSObject, ObservableObject {
self.isLoading = false
if decoded.success {
let rawMessage = "\(can)코인을 후원하셨습니다."
let rawMessage = "\(can)을 후원하셨습니다."
let donationRawMessage = LiveRoomChatRawMessage(
type: .DONATION,
message: rawMessage,
@@ -377,7 +377,7 @@ final class LiveRoomViewModel: NSObject, ObservableObject {
}
.store(in: &subscription)
} else {
popupContent = "1코인 이상 후원하실 수 있습니다."
popupContent = "1 이상 후원하실 수 있습니다."
isShowPopup = true
}
}
@@ -409,14 +409,14 @@ final class LiveRoomViewModel: NSObject, ObservableObject {
if let message = decoded.message {
self.errorMessage = message
} else {
self.popupContent = "후원에 실패한 코인이 환불되지 않았습니다\n고객센터로 문의해주세요."
self.popupContent = "후원에 실패한 이 환불되지 않았습니다\n고객센터로 문의해주세요."
}
self.isShowPopup = true
}
} catch {
self.isLoading = false
self.popupContent = "후원에 실패한 코인이 환불되지 않았습니다\n고객센터로 문의해주세요."
self.popupContent = "후원에 실패한 이 환불되지 않았습니다\n고객센터로 문의해주세요."
self.isShowPopup = true
}
}