From 926b65b4536877e266455f32c88307fa03cb4db4 Mon Sep 17 00:00:00 2001
From: linkeyu <798648091@qq.com>
Date: Wed, 22 Jul 2026 13:50:01 +0800
Subject: [PATCH] =?UTF-8?q?fix(admin):=20=E5=8C=BA=E5=88=86=E9=A2=86?=
=?UTF-8?q?=E5=88=B8=E7=82=B9=E4=BD=8D=E5=AE=8C=E6=88=90=E6=AF=94=E4=BE=8B?=
=?UTF-8?q?=E9=A2=9C=E8=89=B2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
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) => ,