feat(admin): 领券明细展示点位分数
This commit is contained in:
@@ -72,6 +72,8 @@ interface CouponDataRow {
|
|||||||
app_env: string | null;
|
app_env: string | null;
|
||||||
started_at: string;
|
started_at: string;
|
||||||
claimed_count: number | null;
|
claimed_count: number | null;
|
||||||
|
point_success_count: number | null;
|
||||||
|
point_total_count: number | null;
|
||||||
trace_url: string | null;
|
trace_url: string | null;
|
||||||
ad_revenue_yuan: number | null; // 本次领券看的信息流广告预估收益(元);未填充为 null
|
ad_revenue_yuan: number | null; // 本次领券看的信息流广告预估收益(元);未填充为 null
|
||||||
}
|
}
|
||||||
@@ -495,17 +497,16 @@ export default function CouponDataPage() {
|
|||||||
title: '点位成功率',
|
title: '点位成功率',
|
||||||
key: 'point_success_rate',
|
key: 'point_success_rate',
|
||||||
width: 110,
|
width: 110,
|
||||||
render: (_: unknown, r: CouponDataRow) => (
|
render: (_: unknown, r: CouponDataRow) => {
|
||||||
<Tooltip title="当前接口未返回本场应领点位及逐点结果,前端不使用全局均值冒充本场成功率。">
|
if (r.point_success_count == null || r.point_total_count == null || r.point_total_count <= 0) {
|
||||||
{r.trace_url ? (
|
return <Typography.Text type="secondary">-</Typography.Text>;
|
||||||
<a href={r.trace_url} target="_blank" rel="noreferrer">
|
}
|
||||||
查看明细
|
return (
|
||||||
</a>
|
<Tooltip title="成功数(含已领)/ 尝试数(不含跳过)">
|
||||||
) : (
|
<Typography.Text>{r.point_success_count}/{r.point_total_count}</Typography.Text>
|
||||||
<Typography.Text type="secondary">待埋点</Typography.Text>
|
</Tooltip>
|
||||||
)}
|
);
|
||||||
</Tooltip>
|
},
|
||||||
),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '广告收益',
|
title: '广告收益',
|
||||||
|
|||||||
Reference in New Issue
Block a user