feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面

This commit is contained in:
zhanjunhao
2026-11-04 19:59:06 +08:00
parent 472e534fe1
commit e6c41e7587
576 changed files with 18075 additions and 18912 deletions
+7 -8
View File
@@ -55,7 +55,7 @@ import {
Input,
Spin,
Tooltip,
} from '@douyinfe/semi-ui';
} from '@/components/ui';
import { useOrgDashboard, useOrgQuota } from '../../hooks/org/useOrgData';
import { renderQuota } from '../../helpers/render';
import { API, showError } from '../../helpers';
@@ -82,10 +82,10 @@ const safeQuotaNumber = (value) => Math.max(0, Number(value || 0));
// 统一走这一套:>80% 危险、>60% 警告、其余正常。
const usageStrokeColor = (percent) =>
percent > 80
? 'var(--semi-color-danger)'
? 'var(--ui-color-danger)'
: percent > 60
? 'var(--semi-color-warning)'
: 'var(--semi-color-success)';
? 'var(--ui-color-warning)'
: 'var(--ui-color-success)';
const quotaPeriodLimitLabel = (t, period) => {
switch (period) {
@@ -267,8 +267,8 @@ const MemberUsageSheet = ({ visible, onClose, member, orgId, t }) => {
onCancel={onClose}
placement='right'
width={640}
bodyStyle={{ background: 'var(--semi-color-bg-0)' }}
style={{ background: 'var(--semi-color-bg-0)' }}
bodyStyle={{ background: 'var(--ui-color-bg-0)' }}
style={{ background: 'var(--ui-color-bg-0)' }}
mask={true}
maskClosable={true}
maskStyle={{
@@ -616,7 +616,7 @@ const OrgDashboard = ({ orgId, orgRole, featureFlags }) => {
const unattributedQuota = Math.max(0, poolUsedQuota - memberUsedSum);
return (
<div className='p-4 sm:p-6 lg:p-8 space-y-6'>
<div className='uc-page space-y-6'>
{/* Header */}
<OrgPageHeader
icon={BarChart2}
@@ -632,7 +632,6 @@ const OrgDashboard = ({ orgId, orgRole, featureFlags }) => {
theme='solid'
type='primary'
onClick={() => navigate('/org/recharge')}
className='!bg-gradient-to-r !from-emerald-500 !to-emerald-600 !border-0 !shadow-md !shadow-emerald-500/30'
>
{t('立即充值')}
</Button>