Преглед на файлове

【会员系统】补充付费版PDF To Office按钮

wanjun преди 4 месеца
родител
ревизия
e92e70681c

+ 17 - 0
PDF Office/PDF Master/Class/Purchase/DMG/Verification/KMVerificationMessageViewController.m

@@ -348,6 +348,19 @@ NSPopoverDelegate>
         } else if (type == KMUserScenarioTypeLite_type11) {
             self.button.title = [NSString stringWithFormat:@" %@ ",NSLocalizedString(@"Upgrade", nil)];
         }
+#if !VERSION_FREE
+//        VerificationManager.default().needUpgradeLicense
+        if ([[VerificationManager defaultManager] needUpgradeLicense]) {
+            [self.officeButton setTitleColor:[NSColor whiteColor]];
+            self.officeButton.hidden = YES;
+            self.officeImg.hidden = YES;
+            self.officeButton.frame = CGRectMake(totalWidth, kbottomGap, officeWidth, self.view.frame.size.height -2 *kbottomGap);
+            CGRect officeRect = self.officeButton.frame;
+            self.officeImg.frame = officeRect;
+            totalWidth+=CGRectGetWidth(self.officeButton.bounds);
+            totalWidth+=4;
+        }
+#endif
         if (type == KMUserScenarioTypeLite_type1 ||
             type == KMUserScenarioTypeLite_type3 ||
             type == KMUserScenarioTypeLite_type7 ||
@@ -455,6 +468,10 @@ NSPopoverDelegate>
     }
 }
 
+- (IBAction)officeButtonAction:(id)sender {
+    
+}
+
 - (NSAttributedString *)numberConvertColor:(NSColor*)color String:(NSString *)string {
     NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:string];
     NSString *temp = nil;

+ 1 - 1
PDF Office/PDF Master/Class/Purchase/DMG/Verification/KMVerificationMessageViewController.xib

@@ -86,7 +86,7 @@
                         <font key="font" metaFont="smallSystem"/>
                     </buttonCell>
                     <connections>
-                        <action selector="buttonAction:" target="-2" id="64g-Ge-rQy"/>
+                        <action selector="officeButtonAction:" target="-2" id="VpF-f6-nUy"/>
                     </connections>
                 </button>
                 <customView fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="PMO-fk-jRE">