|
@@ -448,17 +448,23 @@ struct PurchaseItemView: View {
|
|
|
//左边加个
|
|
|
VStack(alignment: .leading, spacing: 14) {
|
|
|
Text(title).font(.font(size: 14)).foregroundColor(UIColor.white.color)
|
|
|
- Text(PurchaseManager.default.price(for: type) ?? "--").font(.font(size: 18,weight: .medium)).foregroundColor(UIColor.mainText.color)
|
|
|
+
|
|
|
+ HStack {
|
|
|
+ Text(PurchaseManager.default.price(for: type) ?? "--").font(.font(size: 18,weight: .medium)).foregroundColor(UIColor.mainText.color)
|
|
|
+ if type == .month {
|
|
|
+ Text(" (≈\(PurchaseManager.default.averageWeekly(for:type) ?? "--")/\("Per week".localized))").font(.font(size: 12,weight: .medium)).foregroundColor(UIColor.mainText.withAlphaComponent(0.6).color)
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
Spacer()
|
|
|
-
|
|
|
- //右边每周的💰
|
|
|
- VStack(alignment: .trailing, spacing: 2) {
|
|
|
- Text("\(PurchaseManager.default.averageWeekly(for:type) ?? "--")")
|
|
|
- Text("Per week".localized)
|
|
|
-
|
|
|
- }.font(.font(size: 16,weight: .regular)).foregroundColor(Color.white.opacity(0.6))
|
|
|
+//
|
|
|
+// //右边每周的💰
|
|
|
+// VStack(alignment: .trailing, spacing: 2) {
|
|
|
+// Text("\(PurchaseManager.default.averageWeekly(for:type) ?? "--")")
|
|
|
+// Text("Per week".localized)
|
|
|
+//
|
|
|
+// }.font(.font(size: 16,weight: .regular)).foregroundColor(Color.white.opacity(0.6))
|
|
|
|
|
|
}.padding(.horizontal)
|
|
|
}
|