feat(subscription): enhance styling and layout for subscription components

This commit is contained in:
2026-06-26 15:23:21 +08:00
parent fdcb7c56f1
commit f0ba1756b6
4 changed files with 113 additions and 67 deletions
+2 -15
View File
@@ -1,17 +1,4 @@
"use client";
/**
* 订阅页主屏幕
*
* 布局(顶到底):
* 1. 顶部返回箭头
* 2. 用户信息行
* 3. 渐变横幅
* 4. 三个套餐卡片
* 5. 自动续费说明
* 6. 权益列表卡片
* 7. 主操作按钮
* 8. 协议复选框
*/
import { useEffect, useMemo, useRef, useState } from "react";
import { useRouter } from "next/navigation";
@@ -334,7 +321,7 @@ export function SubscriptionScreen({
</header>
{isVipSubscription ? (
<>
<div className={styles.offerStack}>
<SubscriptionVipOfferSection
plans={vipOfferPlans}
selectedPlanId={payment.selectedPlanId || selectedPlan?.id || null}
@@ -355,7 +342,7 @@ export function SubscriptionScreen({
})
}
/>
</>
</div>
) : (
<>
<section className={styles.userSlot}>