fix(订单中心):首页统计优化

This commit is contained in:
2025-08-05 23:38:51 +08:00
parent 47a685f419
commit 6d4fa0f26e
2 changed files with 63 additions and 36 deletions
@@ -212,16 +212,10 @@ const Welcome: React.FC = () => {
// 根据时间筛选状态动态显示标题
const getOrderTitle = () => {
if (hasTimeRange) {
return `订单总数 (${timeRange[0].split(' ')[0]} ~ ${timeRange[1].split(' ')[0]})`;
}
return '总订单数';
};
const getTodayTitle = () => {
if (hasTimeRange) {
return `区间订单数`;
}
return '今日订单';
};
@@ -233,9 +227,6 @@ const Welcome: React.FC = () => {
};
const getTodayRefundTitle = () => {
if (hasTimeRange) {
return `区间退款订单`;
}
return '今日退款订单';
};
@@ -429,11 +420,6 @@ const Welcome: React.FC = () => {
<Card style={{ marginBottom: 16 }}>
<Space size="large">
<span>筛选条件:</span>
{hasTimeRange && (
<span style={{ color: '#1890ff', fontSize: '12px' }}>
⚠️ 已选择时间区间,统计数据将基于选定时间范围计算
</span>
)}
<Select
placeholder="选择景区"
style={{ width: 200 }}