|
@@ -71,6 +71,7 @@ class KMComparativeViewCollectionItem: NSCollectionViewItem {
|
|
|
self.subtitleLabel.stringValue = subtitle
|
|
|
self.describeLabel.stringValue = "$79.9 \(describe)"
|
|
|
self.doneButton.title = NSLocalizedString(data["buttonTitle"] as! String, comment: "")
|
|
|
+ self.doneButton.isHidden = false
|
|
|
|
|
|
if data["type"] as! Int == 1 {
|
|
|
self.describeLabel.isHidden = false
|
|
@@ -98,6 +99,11 @@ class KMComparativeViewCollectionItem: NSCollectionViewItem {
|
|
|
self.doneButton.border(NSColor(hex: "#DFE1E5"), 1, 20)
|
|
|
self.doneButton.contentTintColor = NSColor(hex: "#252629")
|
|
|
self.doneButton.font = NSFont.SFProTextRegular(16)
|
|
|
+ if KMLightMemberManager.manager.isLogin() {
|
|
|
+ self.doneButton.isHidden = true
|
|
|
+ } else {
|
|
|
+ self.doneButton.isHidden = false
|
|
|
+ }
|
|
|
}
|
|
|
self.contentCollectionView.reloadData()
|
|
|
}
|