feat(admin): 领券明细展示点位分数

This commit is contained in:
linkeyu
2026-07-21 15:44:08 +08:00
parent 3f5356ad87
commit 700c4e3128
+12 -11
View File
@@ -72,6 +72,8 @@ interface CouponDataRow {
app_env: string | null;
started_at: string;
claimed_count: number | null;
point_success_count: number | null;
point_total_count: number | null;
trace_url: string | null;
ad_revenue_yuan: number | null; // 本次领券看的信息流广告预估收益(元);未填充为 null
}
@@ -495,17 +497,16 @@ export default function CouponDataPage() {
title: '点位成功率',
key: 'point_success_rate',
width: 110,
render: (_: unknown, r: CouponDataRow) => (
<Tooltip title="当前接口未返回本场应领点位及逐点结果,前端不使用全局均值冒充本场成功率。">
{r.trace_url ? (
<a href={r.trace_url} target="_blank" rel="noreferrer">
</a>
) : (
<Typography.Text type="secondary"></Typography.Text>
)}
</Tooltip>
),
render: (_: unknown, r: CouponDataRow) => {
if (r.point_success_count == null || r.point_total_count == null || r.point_total_count <= 0) {
return <Typography.Text type="secondary">-</Typography.Text>;
}
return (
<Tooltip title="成功数(含已领)/ 尝试数(不含跳过)">
<Typography.Text>{r.point_success_count}/{r.point_total_count}</Typography.Text>
</Tooltip>
);
},
},
{
title: '广告收益',