코인 -> 캔 변경
This commit is contained in:
parent
0f8b740469
commit
0959fa55be
|
@ -221,7 +221,7 @@ struct ContentCreateView: View {
|
|||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
|
||||
HStack(spacing: 0) {
|
||||
TextField("가격을 입력하세요(10코인 이상)", text: $viewModel.priceString)
|
||||
TextField("가격을 입력하세요(10캔 이상)", text: $viewModel.priceString)
|
||||
.autocapitalization(.none)
|
||||
.disableAutocorrection(true)
|
||||
.font(.custom(Font.bold.rawValue, size: 14.7))
|
||||
|
@ -232,7 +232,7 @@ struct ContentCreateView: View {
|
|||
|
||||
Spacer()
|
||||
|
||||
Text("코인")
|
||||
Text("캔")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.foregroundColor(Color(hex: "777777"))
|
||||
}
|
||||
|
@ -258,7 +258,7 @@ struct ContentCreateView: View {
|
|||
.foregroundColor(Color(hex: "777777"))
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
|
||||
Text("※ 콘텐츠의 최소금액은 10코인 입니다")
|
||||
Text("※ 콘텐츠의 최소금액은 10캔 입니다")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.foregroundColor(Color(hex: "777777"))
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
|
|
|
@ -206,7 +206,7 @@ final class ContentCreateViewModel: ObservableObject {
|
|||
}
|
||||
|
||||
if !isFree && price < 10 {
|
||||
errorMessage = "콘텐츠의 최소금액은 10코인 입니다."
|
||||
errorMessage = "콘텐츠의 최소금액은 10캔 입니다."
|
||||
isShowPopup = true
|
||||
return false
|
||||
}
|
||||
|
|
|
@ -397,7 +397,7 @@ final class ContentDetailViewModel: ObservableObject {
|
|||
|
||||
func donation(can: Int, comment: String) {
|
||||
if can <= 0 {
|
||||
self.errorMessage = "1코인 이상 후원하실 수 있습니다."
|
||||
self.errorMessage = "1캔 이상 후원하실 수 있습니다."
|
||||
self.isShowPopup = true
|
||||
} else if comment.trimmingCharacters(in: .whitespaces).isEmpty {
|
||||
self.errorMessage = "함께 보낼 메시지를 입력하세요."
|
||||
|
@ -422,7 +422,7 @@ final class ContentDetailViewModel: ObservableObject {
|
|||
|
||||
if decoded.success {
|
||||
UserDefaults.set(UserDefaults.int(forKey: .can) - can, forKey: .can)
|
||||
self.errorMessage = "\(can)코인을 후원하셨습니다."
|
||||
self.errorMessage = "\(can)캔을 후원하셨습니다."
|
||||
self.isShowPopup = true
|
||||
|
||||
self.getAudioContentDetail()
|
||||
|
|
|
@ -87,7 +87,7 @@ struct ContentOrderConfirmDialogView: View {
|
|||
.cornerRadius(5.3)
|
||||
.padding(.top, 21.3)
|
||||
|
||||
Text("콘텐츠를 \(orderType == .RENTAL ? "대여" : "소장")하시겠습니까?\n아래 코인이 차감됩니다.")
|
||||
Text("콘텐츠를 \(orderType == .RENTAL ? "대여" : "소장")하시겠습니까?\n아래 캔이 차감됩니다.")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
|
|
|
@ -108,9 +108,8 @@ struct LiveRoomDonationDialogView: View {
|
|||
.background(Color(hex: "9970ff"))
|
||||
.cornerRadius(6.7)
|
||||
.onTapGesture {
|
||||
if !donationCan.trimmingCharacters(in: .whitespaces).isEmpty,
|
||||
let coin = Int(donationCan) {
|
||||
donationCan = "\(coin + 100)"
|
||||
if !donationCan.trimmingCharacters(in: .whitespaces).isEmpty, let can = Int(donationCan) {
|
||||
donationCan = "\(can + 100)"
|
||||
} else {
|
||||
donationCan = "\(100)"
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ struct UserDonationRankingResponse: Decodable {
|
|||
let userId: Int
|
||||
let nickname: String
|
||||
let profileImage: String
|
||||
let donationCoin: Int?
|
||||
let donationCan: Int?
|
||||
}
|
||||
|
||||
struct SimilarCreatorResponse: Decodable {
|
||||
|
|
|
@ -130,7 +130,7 @@ struct UserProfileLiveView: View {
|
|||
onClickParticipant(liveRoom)
|
||||
}
|
||||
} else {
|
||||
Text("\(liveRoom.price)코인으로 지금 참여하기")
|
||||
Text("\(liveRoom.price)캔으로 지금 참여하기")
|
||||
.font(.custom(Font.bold.rawValue, size: 13.3))
|
||||
.foregroundColor(Color(hex: "ffffff"))
|
||||
.frame(
|
||||
|
@ -155,7 +155,7 @@ struct UserProfileLiveView: View {
|
|||
.background(Color(hex: "525252"))
|
||||
.cornerRadius(5.3)
|
||||
} else {
|
||||
Text("\(liveRoom.price > 0 ? "\(liveRoom.price)코인으로 " : "")예약하기")
|
||||
Text("\(liveRoom.price > 0 ? "\(liveRoom.price)캔으로 " : "")예약하기")
|
||||
.font(.custom(Font.bold.rawValue, size: 13.3))
|
||||
.foregroundColor(Color(hex: "000000"))
|
||||
.frame(
|
||||
|
|
|
@ -122,7 +122,7 @@ final class UserProfileViewModel: 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
|
||||
|
@ -200,7 +200,7 @@ final class UserProfileViewModel: ObservableObject {
|
|||
}
|
||||
self.isShowPasswordDialog = true
|
||||
} else {
|
||||
self.paymentDialogTitle = "\($0.price)코인으로 입장"
|
||||
self.paymentDialogTitle = "\($0.price)캔으로 입장"
|
||||
self.paymentDialogDesc = "'\($0.title)' 라이브에 참여하기 위해 결제합니다."
|
||||
self.paymentDialogConfirmTitle = "결제 후 참여하기"
|
||||
self.paymentDialogConfirmAction = { [unowned self] in
|
||||
|
|
|
@ -124,7 +124,7 @@ struct LiveView: View {
|
|||
if viewModel.isShowPasswordDialog {
|
||||
LiveRoomPasswordDialog(
|
||||
isShowing: $viewModel.isShowPasswordDialog,
|
||||
can: viewModel.secretOrPasswordDialogCoin,
|
||||
can: viewModel.secretOrPasswordDialogCan,
|
||||
confirmAction: viewModel.passwordDialogConfirmAction
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"))
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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 :
|
||||
|
|
|
@ -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"))
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ struct CanPaymentView: View {
|
|||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.foregroundColor(Color(hex: "777777"))
|
||||
|
||||
Text("충전된 코인의 유효기간은 충전 후 5년 입니다.")
|
||||
Text("충전된 캔의 유효기간은 충전 후 5년 입니다.")
|
||||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.foregroundColor(Color(hex: "777777"))
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
|
@ -92,7 +92,7 @@ struct CanPaymentView: View {
|
|||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.foregroundColor(Color(hex: "777777"))
|
||||
|
||||
Text("결제 취소는 결제 후 7일 이내에만 할 수 있습니다.\n단, 코인의 일부를 사용하면 결제 취소를 할 수 없습니다.")
|
||||
Text("결제 취소는 결제 후 7일 이내에만 할 수 있습니다.\n단, 캔의 일부를 사용하면 결제 취소를 할 수 없습니다.")
|
||||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.foregroundColor(Color(hex: "777777"))
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
|
|
|
@ -74,7 +74,7 @@ struct SignOutView: View {
|
|||
.foregroundColor(Color(hex: "232323"))
|
||||
.padding(.top, 20)
|
||||
|
||||
Text("계정을 삭제하면 회원님의 모든 콘텐츠와 활동 길고, 코인충전 및 적립, 사용내역 등의 기록이 삭제됩니다. 삭제된 정보는 복구할 수 없으니 신중히 결정해주세요.\n코인 충전하기를 통해 적립한 코인은 계정 삭제시 환불이 불가합니다. 또한 환불 신청 후 환불처리가 되기 전에 계정을 삭제하는 경우 포인트 사용내역을 확인할 수 없어 환불이 불가합니다.")
|
||||
Text("계정을 삭제하면 회원님의 모든 콘텐츠와 활동 길고, 캔충전 및 적립, 사용내역 등의 기록이 삭제됩니다. 삭제된 정보는 복구할 수 없으니 신중히 결정해주세요.\n캔 충전하기를 통해 적립한 캔은 계정 삭제시 환불이 불가합니다. 또한 환불 신청 후 환불처리가 되기 전에 계정을 삭제하는 경우 포인트 사용내역을 확인할 수 없어 환불이 불가합니다.")
|
||||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.foregroundColor(Color(hex: "ff5c49"))
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
|
|
Loading…
Reference in New Issue