From 339671c73849b5f411021116d6bd2b861b12c6c8 Mon Sep 17 00:00:00 2001 From: moux1024 <403053463@qq.com> Date: Fri, 26 Sep 2025 21:04:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E5=A5=97=E9=A4=90?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/pricing/page.tsx | 15 ++++-- components/pages/home-page2.tsx | 88 ++++++++++++++++++-------------- components/ui/VideoCoverflow.tsx | 4 +- 3 files changed, 64 insertions(+), 43 deletions(-) diff --git a/app/pricing/page.tsx b/app/pricing/page.tsx index 04d142d..93ff639 100644 --- a/app/pricing/page.tsx +++ b/app/pricing/page.tsx @@ -62,6 +62,9 @@ function HomeModule5() { { title: string; price: number; + originalPrice: number; + monthlyPrice: number; + discountMsg: string; credits: string; buttonText: string; features: string[]; @@ -75,6 +78,9 @@ function HomeModule5() { billingType === "month" ? plan.price_month / 100 : plan.price_year / 100, + originalPrice: plan.price_month / 100, + monthlyPrice: billingType === "month" ? 0 : plan.price_year / 1200, + discountMsg: `Saves $${(plan.price_month * 12 - plan.price_year) / 100} by billing yearly!`, credits: plan.description, buttonText: plan.is_free ? "Try For Free" : "Subscribe Now", issubscribed: plan.is_subscribed, @@ -226,7 +232,7 @@ function HomeModule5() { xl:text-[3.375rem] 2xl:text-[3.75rem]" > - ${plan.price} + ${plan.monthlyPrice || plan.price} - / {billingType === "month" ? "month" : "year"} + / month + {plan.originalPrice !== plan.price ? (
+ ${plan.originalPrice} +
) : null}

- * Billed monthly until cancelled + * {plan.discountMsg}