Quellcode durchsuchen

【会员系统】修复DMG比较表购买按钮折扣角标显示

wanjun vor 6 Tagen
Ursprung
Commit
25569887d3

+ 6 - 5
PDF Office/PDF Master/MemberCenter/WindowsController/KMProductCompareWC.swift

@@ -958,6 +958,10 @@ class KMProductCompareWC: NSWindowController {
     }
 
     func showDiscount() {
+        discountYearly.isHidden = true
+        discountPermanent.isHidden = true
+        discountPermanent2.isHidden = true
+        discountPermanent.isHidden = true
 #if VERSION_FREE
 #if VERSION_DMG
     // DMG
@@ -970,9 +974,6 @@ class KMProductCompareWC: NSWindowController {
     // AppStore 付费版
         if model.state != .pro_Base { return }
 #endif
-        discountYearly.isHidden = true
-        discountPermanent.isHidden = true
-
         let content = KMAdvertisementManager.manager.info.StoreUserRecovery?.content ?? []
         if content.count > 0 {
             for (index, item) in content.enumerated() {
@@ -980,11 +981,11 @@ class KMProductCompareWC: NSWindowController {
                 case 1:
                     configureDiscountView(discountYearly, with: item)
                 case 2:
-                    configureDiscountView(discountPermanent, with: item)
+                    configureDiscountView(discountPermanent4, with: item)
                 case 3:
                     configureDiscountView(discountPermanent2, with: item)
                 case 4:
-                    configureDiscountView(discountPermanent4, with: item)
+                    configureDiscountView(discountPermanent, with: item)
                 default:
                     break
                 }