Ver código fonte

【会员系统】修复DMG导航栏历史购买标准版,显示购买转档包按钮

wanjun 1 semana atrás
pai
commit
98054af477

+ 9 - 7
PDF Office/PDF Master/Class/Purchase/DMG/Verification/KMVerificationMessageViewController.m

@@ -262,16 +262,16 @@ NSPopoverDelegate>
     
     if (type == KMUserScenarioTypeDmg_type2 ||
         type == KMUserScenarioTypeDmg_type19 ||
+        type == KMUserScenarioTypeDmg_type20 ||
+        type == KMUserScenarioTypeDmg_type21 ||
         type == KMUserScenarioTypeDmg_type22 ||
-        type == KMUserScenarioTypeDmg_type33 ||
         type == KMUserScenarioTypeDmg_type30 ||
-        type == KMUserScenarioTypeDmg_type20 ||
         type == KMUserScenarioTypeDmg_type31 ||
-        type == KMUserScenarioTypeDmg_type21 ||
-        type == KMUserScenarioTypeDmg_type32) {
+        type == KMUserScenarioTypeDmg_type32 ||
+        type == KMUserScenarioTypeDmg_type33) {
         [self.officeButton setTitleColor:[NSColor whiteColor]];
-        self.officeButton.hidden = YES;
-        self.officeImg.hidden = YES;
+        self.officeButton.hidden = NO;
+        self.officeImg.hidden = NO;
         self.officeButton.frame = CGRectMake(totalWidth, kbottomGap, officeWidth, self.view.frame.size.height -2 *kbottomGap);
         CGRect officeRect = self.officeButton.frame;
         self.officeImg.frame = officeRect;
@@ -545,7 +545,9 @@ NSPopoverDelegate>
 }
 
 - (IBAction)officeButtonAction:(id)sender {
-    
+    DMGEmbeddedOldWC *embeddedWC = [DMGEmbeddedOldWC currentFirstTrialWC:@"com.brother.pdfreaderpro.mac.product_2"];
+    [embeddedWC showWindow:nil];
+    [embeddedWC.window center];
 }
 
 - (NSAttributedString *)numberConvertColor:(NSColor*)color String:(NSString *)string {