|
@@ -511,10 +511,9 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
|
|
|
if NSLocalizedString("USD", tableName: "MemberCenterLocalizable", comment: "") == "CN" {
|
|
|
abbreviation = "CNY"
|
|
|
}
|
|
|
-
|
|
|
- let insting = Float(showSinglePriceString() ?? "0") ?? 0
|
|
|
-
|
|
|
- listPrice = Float(String(format: "%.2f", insting)) ?? 0 //单价*购买个数
|
|
|
+
|
|
|
+ let insting = Float(showSinglePriceString())
|
|
|
+ listPrice = Float(String(format: "%.2f", Float((insting ?? 0) * Float(pdfCount)))) ?? 0 //单价*购买个数
|
|
|
|
|
|
if _product_code == "advanced-annual-subscription-trail" ||
|
|
|
_product_code == "advanced-annual-subscription-blackFive" ||
|
|
@@ -1319,7 +1318,9 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
|
|
|
let enterpriseStr = NSLocalizedString("enterprise version", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
let fireFullString = String(format: firmString, enterpriseStr)
|
|
|
let firmLinkColor = NSColor(named: "4982E6") ?? NSColor.blue
|
|
|
- let attri = NSMutableAttributedString(string: fireFullString, attributes: [.foregroundColor : firmLinkColor, .font : NSFont.SFProTextRegularFont(14.0)])
|
|
|
+ let paragraphStyle = NSMutableParagraphStyle()
|
|
|
+ paragraphStyle.alignment = .right // 设置为右对齐
|
|
|
+ let attri = NSMutableAttributedString(string: fireFullString, attributes: [.foregroundColor : firmLinkColor, .font : NSFont.SFProTextRegularFont(14.0),.paragraphStyle:paragraphStyle,])
|
|
|
// 定义链接的范围
|
|
|
let enterpriseRange = (fireFullString as NSString).range(of: enterpriseStr)
|
|
|
let firmFont = NSFont.SFProTextRegularFont(14.0) // 与普通文本相同的字体
|