From e99c79b4d4409d737d5a75a4d954605c8e109bf3 Mon Sep 17 00:00:00 2001
From: linkeyu <798648091@qq.com>
Date: Sun, 26 Jul 2026 20:36:03 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E6=AF=94?=
=?UTF-8?q?=E4=BB=B7=E8=AE=B0=E5=BD=95=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E6=94=AF=E6=8C=81=E7=82=B9=E5=87=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
将比价记录列表中的手机号和用户名改为蓝色用户详情链接,并阻止点击链接时误触发行详情。
---
src/app/(main)/comparison-records/page.tsx | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/app/(main)/comparison-records/page.tsx b/src/app/(main)/comparison-records/page.tsx
index ae9cf14..6b17212 100644
--- a/src/app/(main)/comparison-records/page.tsx
+++ b/src/app/(main)/comparison-records/page.tsx
@@ -8,6 +8,7 @@ import {
} from 'antd';
import type { ColumnsType } from 'antd/es/table';
import dayjs, { type Dayjs } from 'dayjs';
+import Link from 'next/link';
import { api, errMsg } from '@/lib/api';
import { formatWallTime, yuan } from '@/lib/format';
import type {
@@ -237,10 +238,14 @@ export default function ComparisonRecordsPage() {
key: 'user',
width: 140,
render: (_, r) => (
-
+
event.stopPropagation()}
+ style={{ display: 'inline-block', color: '#1677ff' }}
+ >
{r.phone || `#${r.user_id}`}
- {r.nickname &&
{r.nickname}
}
-
+ {r.nickname && {r.nickname}
}
+
),
},
{ title: '状态', dataIndex: 'status', width: 72, render: (s: string) => {STATUS_LABEL[s] || s} },
--
2.52.0
From 2880a8a11867b2eb68bedc1ea90ee0b2fa791189 Mon Sep 17 00:00:00 2001
From: linkeyu <798648091@qq.com>
Date: Sun, 26 Jul 2026 20:39:57 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=9A=E4=BF=9D?=
=?UTF-8?q?=E7=95=99=E6=AF=94=E4=BB=B7=E8=AE=B0=E5=BD=95=E4=BE=A7=E8=BE=B9?=
=?UTF-8?q?=E6=A0=8F=E4=BA=A4=E4=BA=92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
手机号和用户名仅调整为蓝色文本,继续沿用整行点击打开比价记录侧边栏,不再跳转用户详情页。
---
src/app/(main)/comparison-records/page.tsx | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/app/(main)/comparison-records/page.tsx b/src/app/(main)/comparison-records/page.tsx
index 6b17212..be8cd7f 100644
--- a/src/app/(main)/comparison-records/page.tsx
+++ b/src/app/(main)/comparison-records/page.tsx
@@ -8,7 +8,6 @@ import {
} from 'antd';
import type { ColumnsType } from 'antd/es/table';
import dayjs, { type Dayjs } from 'dayjs';
-import Link from 'next/link';
import { api, errMsg } from '@/lib/api';
import { formatWallTime, yuan } from '@/lib/format';
import type {
@@ -238,14 +237,10 @@ export default function ComparisonRecordsPage() {
key: 'user',
width: 140,
render: (_, r) => (
- event.stopPropagation()}
- style={{ display: 'inline-block', color: '#1677ff' }}
- >
+
{r.phone || `#${r.user_id}`}
{r.nickname &&
{r.nickname}
}
-
+
),
},
{ title: '状态', dataIndex: 'status', width: 72, render: (s: string) => {STATUS_LABEL[s] || s} },
--
2.52.0