From ab285cfd0eb300c3ae7382ae953d71f3ece0a197 Mon Sep 17 00:00:00 2001 From: Default User Date: Wed, 14 Jan 2026 15:21:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=B1=95=E7=A4=BA=E5=8A=9F=E8=83=BD=EF=BC=8C?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=BB=B7=E6=A0=BC=E5=8F=98=E6=9B=B4=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Management.html | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/Management.html b/Management.html index 05979b4..3b55509 100644 --- a/Management.html +++ b/Management.html @@ -1201,7 +1201,34 @@ `; } - + // 产品日志展示 + if (supply.product_log) { + try { + // 解析产品日志JSON + const productLogs = JSON.parse(supply.product_log); + if (Array.isArray(productLogs) && productLogs.length > 0) { + detailsHTML += `
+

价格变更日志

+
+ ${productLogs.map((log, index) => ` +
+
日志${index + 1}
+
${log}
+
+ `).join('')} +
+
`; + } + } catch (e) { + // 解析失败,直接展示原始日志 + detailsHTML += `
+

价格变更日志

+
+ ${supply.product_log} +
+
`; + } + } // 状态 detailsHTML += `${statusText}`;