fix: standardize currency and input selection styles

This commit is contained in:
hectorzhao
2026-07-11 10:49:00 +08:00
parent 20f89d14aa
commit a4d42cf702
15 changed files with 52 additions and 33 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ import { useEffect, useState } from 'react';
import { CreditCard } from 'lucide-react';
import { Button, Pagination, Tag } from '@/components/ui';
import { clientApi, type BillingPlan } from '@/api/adminApi';
import { formatCents } from '@/utils/currency';
export function ClientBillingPage() {
const [plans, setPlans] = useState<BillingPlan[]>([]);
@@ -54,7 +55,7 @@ export function ClientBillingPage() {
<strong>{plan.smsUnits.toLocaleString('zh-CN')} </strong>
<p className="muted">{plan.description ?? '适合阶段性短信发送和活动通知。'}</p>
<Button icon={<CreditCard size={16} />} onClick={() => createOrder(plan)} variant={plan.smsUnits >= 100000 ? 'primary' : 'ghost'}>
¥{(plan.amountCents / 100).toLocaleString('zh-CN')}
¥{formatCents(plan.amountCents)}
</Button>
</article>
))}