From a2a8451aecd874a989343b2c9a9c956c012ee43c Mon Sep 17 00:00:00 2001 From: linkeyu Date: Wed, 22 Jul 2026 13:56:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E9=A2=86=E5=88=B8?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E7=99=BE=E5=88=86=E6=AF=94=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E9=85=8D=E8=89=B2=20(#61)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 改动 - 将领券记录表格的「点位成功率」列改名为「百分比」 - 全部点位成功的 x/x 使用与「完成」相同的绿色 - 未全部成功的 x/x 使用与「中途退出」相同的警示色 - 保留点击 x/x 查看点位明细的交互 ## 验证 - 提交前已执行 git pull --rebase --autostash origin main - npm run build --------- Co-authored-by: linkeyu <798648091@qq.com> Reviewed-on: https://gitea.shaguabijia.com/WonderableAI/shaguabijia-admin-web/pulls/61 Co-authored-by: linkeyu Co-committed-by: linkeyu --- src/app/(main)/coupon-data/page.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/(main)/coupon-data/page.tsx b/src/app/(main)/coupon-data/page.tsx index f7c339c..f20fbb6 100644 --- a/src/app/(main)/coupon-data/page.tsx +++ b/src/app/(main)/coupon-data/page.tsx @@ -149,6 +149,10 @@ function PointScorePopover({ row }: { row: CouponDataRow }) { return -; } const score = `${row.point_success_count}/${row.point_total_count}`; + const scoreColor = + row.point_success_count === row.point_total_count + ? STATUS_TAG.completed.color + : STATUS_TAG.abandoned.color; const loadDetails = async () => { if (details !== null || loading) return; setLoading(true); @@ -215,7 +219,9 @@ function PointScorePopover({ row }: { row: CouponDataRow }) { )} > - + ); } @@ -596,7 +602,7 @@ export default function CouponDataPage() { render: (v: number | null) => fmtSec(v), }, { - title: '点位成功率', + title: '百分比', key: 'point_success_rate', width: 110, render: (_: unknown, r: CouponDataRow) => ,