diff --git a/.env.development b/.env.development index 215df85..bf2ed3a 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,7 @@ NEXT_PUBLIC_JAVA_URL = https://auth.test.movieflow.ai # NEXT_PUBLIC_JAVA_URL = https://77.app.java.auth.qikongjian.com NEXT_PUBLIC_BASE_URL = https://77.smartvideo.py.qikongjian.com NEXT_PUBLIC_CUT_URL = https://77.smartcut.py.qikongjian.com - +NEXT_PUBLIC_CUT_URL_TO = https://smartcut.huiying.video # 失败率 NEXT_PUBLIC_ERROR_CONFIG = 0.5 # Google OAuth配置 diff --git a/.env.production b/.env.production index 5adf7c6..11a4370 100644 --- a/.env.production +++ b/.env.production @@ -4,13 +4,13 @@ # NEXT_PUBLIC_BASE_URL = https://77.smartvideo.py.qikongjian.com # NEXT_PUBLIC_CUT_URL = https://77.smartcut.py.qikongjian.com # NEXT_PUBLIC_GOOGLE_REDIRECT_URI=https://www.movieflow.net/api/auth/google/callback - +# NEXT_PUBLIC_CUT_URL_TO = https://smartcut.huiying.video # 生产 NEXT_PUBLIC_JAVA_URL = https://auth.movieflow.ai NEXT_PUBLIC_BASE_URL = https://api.video.movieflow.ai NEXT_PUBLIC_CUT_URL = https://smartcut.api.movieflow.ai NEXT_PUBLIC_GOOGLE_REDIRECT_URI=https://www.movieflow.ai/api/auth/google/callback - +NEXT_PUBLIC_CUT_URL_TO = https://smartcut.movieflow.ai # 通用 # 当前域名配置 NEXT_PUBLIC_FRONTEND_URL = https://www.movieflow.ai @@ -18,4 +18,4 @@ NEXT_PUBLIC_FRONTEND_URL = https://www.movieflow.ai NEXT_PUBLIC_ERROR_CONFIG = 0.2 # Google OAuth配置 NEXT_PUBLIC_GOOGLE_CLIENT_ID=847079918888-o1nne8d3ij80dn20qurivo987pv07225.apps.googleusercontent.com -NEXT_PUBLIC_CUT_URL_TO = https://smartcut.movieflow.ai + diff --git a/app/pricing/page.tsx b/app/pricing/page.tsx index 01291e4..93ff639 100644 --- a/app/pricing/page.tsx +++ b/app/pricing/page.tsx @@ -27,7 +27,7 @@ export default function PricingPage() { } /**价格方案 */ function HomeModule5() { - const [billingType, setBillingType] = useState<"month" | "year">("month"); + const [billingType, setBillingType] = useState<"month" | "year">("year"); const [plans, setPlans] = useState([]); const [loadingPlan, setLoadingPlan] = useState(null); // 跟踪哪个计划正在加载 @@ -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, @@ -171,7 +177,7 @@ function HomeModule5() { xl:w-[7.125rem] xl:text-base 2xl:w-[7.125rem] 2xl:text-base`} > - Yearly - 20% + Yearly @@ -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}