콘텐츠 대여 가격

- 소장가격의 60%에서 70% 표기로 변경
This commit is contained in:
Yu Sung 2024-10-29 14:33:33 +09:00
parent 90d6c1e034
commit 4d2bb35808
3 changed files with 5 additions and 5 deletions

View File

@ -239,7 +239,7 @@ struct ContentDetailView: View {
orderType: orderType,
contentId: audioContent.contentId,
title: audioContent.title,
can: !audioContent.isOnlyRental && orderType == .RENTAL ? Int(ceil(Double(audioContent.price) * 0.6)) : audioContent.price
can: !audioContent.isOnlyRental && orderType == .RENTAL ? Int(ceil(Double(audioContent.price) * 0.7)) : audioContent.price
)
)
} else {

View File

@ -115,7 +115,7 @@ struct ContentOrderConfirmDialogView: View {
.frame(width: 16.7, height: 16.7)
if orderType == .RENTAL {
Text("\(isOnlyRental ? audioContent.price : Int(ceil(Double(audioContent.price) * 0.6)))")
Text("\(isOnlyRental ? audioContent.price : Int(ceil(Double(audioContent.price) * 0.7)))")
.font(.custom(Font.bold.rawValue, size: 13.3))
.foregroundColor(Color.grayee)
} else {
@ -125,7 +125,7 @@ struct ContentOrderConfirmDialogView: View {
}
} else {
if orderType == .RENTAL {
Text("\(isOnlyRental ? audioContent.price * 110 : Int(ceil(Double(audioContent.price) * 0.6)) * 110)")
Text("\(isOnlyRental ? audioContent.price * 110 : Int(ceil(Double(audioContent.price) * 0.7)) * 110)")
.font(.custom(Font.bold.rawValue, size: 13.3))
.foregroundColor(Color.grayee)
} else {

View File

@ -47,11 +47,11 @@ struct ContentOrderDialogView: View {
}
if UserDefaults.int(forKey: .userId) == 17958 {
Text(isOnlyRental ? "\(price * 110)" : "\(Int(ceil(Double(price) * 0.6)) * 110)")
Text(isOnlyRental ? "\(price * 110)" : "\(Int(ceil(Double(price) * 0.7)) * 110)")
.font(.custom(Font.bold.rawValue, size: 13.3))
.foregroundColor(Color.grayee)
} else {
Text(isOnlyRental ? "\(price)" : "\(Int(ceil(Double(price) * 0.6)))")
Text(isOnlyRental ? "\(price)" : "\(Int(ceil(Double(price) * 0.7)))")
.font(.custom(Font.bold.rawValue, size: 13.3))
.foregroundColor(Color.grayee)
}