Browse Source

【订阅】比较表价格描述文案调整

lizhe 1 year ago
parent
commit
d2b209acd3

+ 1 - 1
PDF Office/PDF Master/Class/KMLightMember/Controller/ComparativeTable/View/KMComparativeView/KMComparativeView.swift

@@ -54,7 +54,7 @@ class KMComparativeView: KMBaseXibView {
             "type": 1,
             "title": "Yearly Plan",
             "subtitle": "$39.99",
-            "describe": "yearly. Cancel subscription anytime.",
+            "describe": "Save 50%@ for the first year, auto-renew at US$%@. Billed yearly.",
             "productId": PRODUCT_1,
             "content": [
                 ["title": "Enjoy all premium features",

+ 4 - 2
PDF Office/PDF Master/Class/KMLightMember/Controller/ComparativeTable/View/KMComparativeView/View/KMComparativeViewCollectionItem.swift

@@ -113,7 +113,8 @@ class KMComparativeViewCollectionItem: NSCollectionViewItem {
             let describe = NSLocalizedString(data["describe"] as? String ?? "", comment: "")
             self.titleLabel.stringValue = title
             self.subtitleLabel.stringValue = subtitle
-            self.describeLabel.stringValue = "$79.9 \(describe)"
+//            self.describeLabel.stringValue = "$79.9 \(describe)"
+            self.describeLabel.stringValue = describe
             self.doneButton.stringValue = NSLocalizedString(data["buttonTitle"] as! String, comment: "")
             self.doneContentView.isHidden = false
             
@@ -172,7 +173,8 @@ class KMComparativeViewCollectionItem: NSCollectionViewItem {
                 let price: String = product.introductoryPrice?.price.description ?? "39.9"
                 let originPrice: String = product.price.description
                 self.subtitleLabel.stringValue = "\(currencyCode)\(price)"
-                self.describeLabel.stringValue = "\(currencyCode)\(originPrice) \(describe)"
+//                self.describeLabel.stringValue = "\(currencyCode)\(originPrice) \(describe)"
+                self.describeLabel.stringValue = NSString(format: describe as NSString, "%",price) as String
             }
         }
     }

+ 1 - 1
PDF Office/PDF Master/Class/KMLightMember/Controller/ComparativeTable/View/KMComparativeView/View/KMComparativeViewCollectionItem.xib

@@ -128,7 +128,7 @@
                 </customView>
                 <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="3TK-IO-Uc2">
                     <rect key="frame" x="30" y="367" width="288" height="16"/>
-                    <textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="tUs-FK-WKB">
+                    <textFieldCell key="cell" alignment="left" title="Label" id="tUs-FK-WKB">
                         <font key="font" metaFont="system"/>
                         <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
                         <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>

+ 1 - 1
PDF Office/PDF Master/Strings/en.lproj/Localizable.strings

@@ -643,7 +643,7 @@
 "Free"     =     "Free";
 "Sign up for Free"     =     "Sign up for Free";
 "yearly. Cancel subscription anytime."     =     "yearly. Cancel subscription anytime.";
-"Subscription Plan:USD $39.99/year"     =     "Subscription Plan:USD $39.99/year";
+"Save 50%@ for the first year, auto-renew at US$%@. Billed yearly."     =     "Save 50%@ for the first year, auto-renew at US$%@. Billed yearly.";
 "Restore Purchases"     =     "Restore Purchases";
 "Subscribe Successfully!"     =     "Subscribe Successfully!";
 "Enjoy all advanced features now"     =     "Enjoy all advanced features now";