심사용 계정이 아닌 곳에서 가격 * 110으로 표시되는 버그 수정
This commit is contained in:
parent
db828cf44d
commit
76c20c2658
|
@ -233,7 +233,7 @@ struct ContentDetailView: View {
|
||||||
orderType: orderType,
|
orderType: orderType,
|
||||||
contentId: audioContent.contentId,
|
contentId: audioContent.contentId,
|
||||||
title: audioContent.title,
|
title: audioContent.title,
|
||||||
can: orderType == .RENTAL ? Int(ceil(Double(audioContent.price) * 0.6)) : audioContent.price
|
can: !audioContent.isOnlyRental && orderType == .RENTAL ? Int(ceil(Double(audioContent.price) * 0.6)) : audioContent.price
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -46,9 +46,15 @@ struct ContentOrderDialogView: View {
|
||||||
.frame(width: 16.7, height: 16.7)
|
.frame(width: 16.7, height: 16.7)
|
||||||
}
|
}
|
||||||
|
|
||||||
Text(isOnlyRental ? "\(price * 110)" : "\(Int(ceil(Double(price) * 0.6)) * 110)")
|
if UserDefaults.int(forKey: .userId) == 17958 {
|
||||||
.font(.custom(Font.bold.rawValue, size: 13.3))
|
Text(isOnlyRental ? "\(price * 110)" : "\(Int(ceil(Double(price) * 0.6)) * 110)")
|
||||||
.foregroundColor(Color.grayee)
|
.font(.custom(Font.bold.rawValue, size: 13.3))
|
||||||
|
.foregroundColor(Color.grayee)
|
||||||
|
} else {
|
||||||
|
Text(isOnlyRental ? "\(price)" : "\(Int(ceil(Double(price) * 0.6)))")
|
||||||
|
.font(.custom(Font.bold.rawValue, size: 13.3))
|
||||||
|
.foregroundColor(Color.grayee)
|
||||||
|
}
|
||||||
|
|
||||||
if UserDefaults.int(forKey: .userId) == 17958 {
|
if UserDefaults.int(forKey: .userId) == 17958 {
|
||||||
Text("원")
|
Text("원")
|
||||||
|
@ -87,9 +93,15 @@ struct ContentOrderDialogView: View {
|
||||||
.frame(width: 16.7, height: 16.7)
|
.frame(width: 16.7, height: 16.7)
|
||||||
}
|
}
|
||||||
|
|
||||||
Text("\(price * 110)")
|
if UserDefaults.int(forKey: .userId) == 17958 {
|
||||||
.font(.custom(Font.bold.rawValue, size: 13.3))
|
Text("\(price * 110)")
|
||||||
.foregroundColor(Color.grayee)
|
.font(.custom(Font.bold.rawValue, size: 13.3))
|
||||||
|
.foregroundColor(Color.grayee)
|
||||||
|
} else {
|
||||||
|
Text("\(price)")
|
||||||
|
.font(.custom(Font.bold.rawValue, size: 13.3))
|
||||||
|
.foregroundColor(Color.grayee)
|
||||||
|
}
|
||||||
|
|
||||||
if UserDefaults.int(forKey: .userId) == 17958 {
|
if UserDefaults.int(forKey: .userId) == 17958 {
|
||||||
Text("원")
|
Text("원")
|
||||||
|
|
Loading…
Reference in New Issue