From 18a525af88c0aa8bd45b3ea70ff07dd9d17e972f Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Fri, 13 Mar 2026 09:20:05 +0800 Subject: [PATCH] feat: add UnlockProOverlay component for managing subscriptions and displaying pricing with point-based discounts. --- .../subscription/UnlockProOverlay.tsx | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/frontend/components/subscription/UnlockProOverlay.tsx b/frontend/components/subscription/UnlockProOverlay.tsx index 51107ef5..62d4ae3a 100644 --- a/frontend/components/subscription/UnlockProOverlay.tsx +++ b/frontend/components/subscription/UnlockProOverlay.tsx @@ -71,6 +71,9 @@ export function UnlockProOverlay({ return (
+
+ UI v0313 +
{onClose && (
-
+
STANDARD PRO
- + ${planPriceUsd.toFixed(2)} / {isEn ? "mo" : "月"}
-
    +
      {(isEn ? [ "15-day high precision trend", @@ -130,7 +133,7 @@ export function UnlockProOverlay({ {billing.pointsEnabled && billing.isEligible ? (
      @@ -154,7 +157,7 @@ export function UnlockProOverlay({
      -${billing.discountAmount.toFixed(2)} @@ -162,7 +165,7 @@ export function UnlockProOverlay({ DISCOUNT
      -

      +

      {usePoints ? isEn ? `Using ${billing.pointsUsed} points from your account` @@ -173,7 +176,7 @@ export function UnlockProOverlay({

      ) : ( -
      +
      @@ -189,10 +192,10 @@ export function UnlockProOverlay({ : "积分不足"}
      -

      +

      {isEn ? "Earn Credits in Community" : "活跃赚取抵扣"}

      -

      +

      {!billing.pointsEnabled ? isEn ? "Points redemption is currently unavailable for this plan." @@ -224,15 +227,15 @@ export function UnlockProOverlay({

      -
      +
      {isEn ? "Total Due" : "应付总计"}
      - + ${billing.finalPrice.toFixed(2)} - + USD
      @@ -241,7 +244,7 @@ export function UnlockProOverlay({ -
      +
      Secure Payment