Browse Source

【2025】【Home】广告数据刷新优化

niehaoyu 5 months ago
parent
commit
f287838f8e

+ 1 - 1
PDF Office/KMComponentLibrary/KMComponentLibrary/View/Card/ComponentCardPDFTool/ComponentCardPDFTool.xib

@@ -36,7 +36,7 @@
                                 </constraints>
                                 <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="axesIndependently" image="test" id="jhs-UP-tL4"/>
                             </imageView>
-                            <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="nLl-zS-465">
+                            <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" allowsExpansionToolTips="YES" translatesAutoresizingMaskIntoConstraints="NO" id="nLl-zS-465">
                                 <rect key="frame" x="54" y="15" width="176" height="35"/>
                                 <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
                                 <textFieldCell key="cell" truncatesLastVisibleLine="YES" title="content content content content content content content content" id="ehH-eQ-Oeo">

+ 4 - 1
PDF Office/PDF Master/KMClass/KMHomeViewController/KMNHomeViewController.swift

@@ -43,6 +43,8 @@ class KMNHomeViewController: NSViewController {
         
         homeOpenView.delegate = self
         
+        self.homeRecommondView.reloadData()
+
     }
     
     func configRightContendView() {
@@ -99,8 +101,9 @@ class KMNHomeViewController: NSViewController {
                     }
                 }
                 
+            }
+            DispatchQueue.main.async {
                 self?.homeRecommondView.reloadData()
-                
             }
         }
     }

+ 2 - 4
PDF Office/PDF Master/KMClass/KMHomeViewController/Views/KMHomeRecommondView/KMHomeRecommondView.swift

@@ -59,6 +59,8 @@ class KMHomeRecommondView: BaseXibView {
         
         let products = KMAdvertisementManager.manager.info.recommondContent?.recommondContentPDFPro
         
+        self.productsBGView.isHidden = true
+        self.othersTopConst.constant = 24
         if let productContents = products?.content {
             productsBGView.isHidden = false
             othersTopConst.constant = 100
@@ -73,10 +75,6 @@ class KMHomeRecommondView: BaseXibView {
                 view.properties = ComponentCSelectorProperty(size: .s, state: .normal, text: nil, iconImage: NSImage(named: "file_icon"))
                 view.setTarget(self, action: #selector(productsItemClick(_:)))
             }
-            
-        } else {
-            productsBGView.isHidden = true
-            othersTopConst.constant = 24
         }
          
         let others = KMAdvertisementManager.manager.info.recommondContent?.recommondContentOther

+ 1 - 1
PDF Office/PDF Reader Pro.xcodeproj/project.pbxproj

@@ -13443,9 +13443,9 @@
 		BBB2A9992CB65C440066560B /* Views */ = {
 			isa = PBXGroup;
 			children = (
+				BB5A9D272CB6520100F64C1F /* KMHomeRightView */,
 				BB5A9D2A2CB6520100F64C1F /* KMHomeQuickToolsView */,
 				F30B22792CB7DABF0041002E /* KMHomeQuickTools */,
-				BB5A9D272CB6520100F64C1F /* KMHomeRightView */,
 				BB5A9D2F2CB6520100F64C1F /* KMHomeRecommondView */,
 				BB5A9D2B2CB6520100F64C1F /* KMHomeOpenView */,
 			);

+ 5 - 37
PDF Office/PDF Reader Pro.xcodeproj/xcuserdata/kdanmobile.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -87,49 +87,17 @@
       <BreakpointProxy
          BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
          <BreakpointContent
-            uuid = "AEBFDCF1-6A0C-4921-96B0-FD06AB845F3F"
+            uuid = "61290EE4-E9FA-4488-8AAD-3269D3C48148"
             shouldBeEnabled = "Yes"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
-            filePath = "KMComponentLibrary/KMComponentLibrary/View/GroupItem/ComponentGroupItem.swift"
+            filePath = "PDF Master/KMClass/KMHomeViewController/Views/KMHomeRecommondView/KMHomeRecommondView.swift"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "73"
-            endingLineNumber = "73"
-            landmarkName = "menuItemAction(_:)"
+            startingLineNumber = "66"
+            endingLineNumber = "66"
+            landmarkName = "reloadData()"
             landmarkType = "7">
-            <Locations>
-               <Location
-                  uuid = "AEBFDCF1-6A0C-4921-96B0-FD06AB845F3F - 7290cc26593e7b1e"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "KMComponentLibrary.ComponentGroupItem.removeTrackingAreas() -&gt; ()"
-                  moduleName = "KMComponentLibrary"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/KMComponentLibrary/KMComponentLibrary/View/GroupItem/ComponentGroupItem.swift"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "72"
-                  endingLineNumber = "72"
-                  offsetFromSymbolStart = "428">
-               </Location>
-               <Location
-                  uuid = "AEBFDCF1-6A0C-4921-96B0-FD06AB845F3F - b5ab55b0079cfc13"
-                  shouldBeEnabled = "Yes"
-                  ignoreCount = "0"
-                  continueAfterRunningActions = "No"
-                  symbolName = "KMComponentLibrary.ComponentGroupItem.menuItemAction(KMComponentLibrary.ComponentMenuItem) -&gt; ()"
-                  moduleName = "KMComponentLibrary"
-                  usesParentBreakpointCondition = "Yes"
-                  urlString = "file:///Users/kdanmobile/Documents/Git/PDF_Office/PDF%20Office/KMComponentLibrary/KMComponentLibrary/View/GroupItem/ComponentGroupItem.swift"
-                  startingColumnNumber = "9223372036854775807"
-                  endingColumnNumber = "9223372036854775807"
-                  startingLineNumber = "73"
-                  endingLineNumber = "73"
-                  offsetFromSymbolStart = "76">
-               </Location>
-            </Locations>
          </BreakpointContent>
       </BreakpointProxy>
    </Breakpoints>