|
@@ -113,7 +113,8 @@ class KMComparativeViewCollectionItem: NSCollectionViewItem {
|
|
|
let describe = NSLocalizedString(data["describe"] as? String ?? "", comment: "")
|
|
|
self.titleLabel.stringValue = title
|
|
|
self.subtitleLabel.stringValue = subtitle
|
|
|
- self.describeLabel.stringValue = "$79.9 \(describe)"
|
|
|
+// self.describeLabel.stringValue = "$79.9 \(describe)"
|
|
|
+ self.describeLabel.stringValue = describe
|
|
|
self.doneButton.stringValue = NSLocalizedString(data["buttonTitle"] as! String, comment: "")
|
|
|
self.doneContentView.isHidden = false
|
|
|
|
|
@@ -172,7 +173,8 @@ class KMComparativeViewCollectionItem: NSCollectionViewItem {
|
|
|
let price: String = product.introductoryPrice?.price.description ?? "39.9"
|
|
|
let originPrice: String = product.price.description
|
|
|
self.subtitleLabel.stringValue = "\(currencyCode)\(price)"
|
|
|
- self.describeLabel.stringValue = "\(currencyCode)\(originPrice) \(describe)"
|
|
|
+// self.describeLabel.stringValue = "\(currencyCode)\(originPrice) \(describe)"
|
|
|
+ self.describeLabel.stringValue = NSString(format: describe as NSString, "%",price) as String
|
|
|
}
|
|
|
}
|
|
|
}
|