From aa48ebf4adbc0a1895304af394ea7a7feb53a33f Mon Sep 17 00:00:00 2001 From: Timi Date: Wed, 18 Nov 2026 16:48:12 +0800 Subject: [PATCH] style(point): use time label component --- src/pages/point/PointRedemptionDetail.vue | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/pages/point/PointRedemptionDetail.vue b/src/pages/point/PointRedemptionDetail.vue index d992264..410efd8 100644 --- a/src/pages/point/PointRedemptionDetail.vue +++ b/src/pages/point/PointRedemptionDetail.vue @@ -21,7 +21,11 @@ - + + +
@@ -32,8 +36,12 @@ v-for="record in returnList" :key="record.id" :title="`退货 ${quantityText(record.quantity)} ${item?.unitSnapshot || ''}`" - :note="`${formatPoint(record.pointCost)} · ${timeText(record.returnedAt)}`" - /> + :note="formatPoint(record.pointCost)" + > + + )[value || ""] || "未知"; } -function timeText(value?: number): string { - return value ? new Date(value).toLocaleString("zh-CN", { hour12: false }) : "-"; -} - onMounted(load); watch(() => [props.redemptionId, route.params.id], load);