diff --git a/apps/web/src/pages/subscription/UpgradeSubscription.tsx b/apps/web/src/pages/subscription/UpgradeSubscription.tsx
index 36033d6b0..8f9e9f95a 100644
--- a/apps/web/src/pages/subscription/UpgradeSubscription.tsx
+++ b/apps/web/src/pages/subscription/UpgradeSubscription.tsx
@@ -1,11 +1,10 @@
/**
* 升级/降级/续费页面
- * P1-3: antd Button/Modal/Radio/Spin → 自定义 UI 组件
*/
import React from "react"
import { Modal } from "@/components/ui"
import { useNavigate } from "react-router-dom"
-import type { PlanType } from "@/api/subscription"
+import type { PlanId } from "@/api/subscription/types"
import PageHead from "@/components/layout/PageHead"
import { Button } from "@/components/ui"
import { PLANS_META, getPlanName, getPlanPrice } from "./constants"
@@ -13,6 +12,9 @@ import { BillingCycleSwitch, Spinner } from "./components/SubscriptionUI"
import { useSubscription } from "./hooks/useSubscription"
import "./UpgradeSubscription.css"
+/** 可选择的付费档位(不含 free) */
+const PAID_PLANS: PlanId[] = ["monthly", "quarterly", "yearly"]
+
const UpgradeSubscription: React.FC = () => {
const navigate = useNavigate()
const {
@@ -49,12 +51,12 @@ const UpgradeSubscription: React.FC = () => {
const handleCancelClick = () => {
Modal.confirm({
title: "确认取消订阅",
- content: "取消后,当前周期结束前仍可正常使用,到期后降级为体验版。",
+ content: "取消后,当前周期结束前仍可正常使用,到期后降级为免费版。",
okText: "确认取消",
cancelText: "再想想",
onOk: async () => {
const ok = await handleCancel()
- if (ok) navigate("/app/subscription")
+ if (ok) navigate("/subscription")
},
})
}
@@ -74,14 +76,22 @@ const UpgradeSubscription: React.FC = () => {