Commit 725473d3 by QuentinHsu

feat(topup): hide subscription plans card when no plans available

parent 2ada9354
......@@ -734,7 +734,8 @@ const TopUp = () => {
{/* 主布局区域 */}
<div className='grid grid-cols-1 lg:grid-cols-12 gap-6'>
{/* 左侧 - 订阅套餐 */}
{/* 左侧 - 订阅套餐(无套餐时隐藏整块卡片) */}
{(subscriptionLoading || subscriptionPlans.length > 0) && (
<div className='lg:col-span-7'>
<SubscriptionPlansCard
t={t}
......@@ -751,9 +752,16 @@ const TopUp = () => {
reloadSubscriptionSelf={getSubscriptionSelf}
/>
</div>
)}
{/* 右侧 - 账户充值 + 邀请奖励 */}
<div className='lg:col-span-5 flex flex-col gap-6'>
<div
className={
subscriptionLoading || subscriptionPlans.length > 0
? 'lg:col-span-5 flex flex-col gap-6'
: 'lg:col-span-12 flex flex-col gap-6'
}
>
<RechargeCard
t={t}
enableOnlineTopUp={enableOnlineTopUp}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment