From 452d7fef8f4f8dfaa200e06f979ef36be2468b7d Mon Sep 17 00:00:00 2001 From: guke Date: Tue, 30 Jun 2026 10:39:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(h5):=20=E9=A6=96=E9=A1=B5=E3=80=8C?= =?UTF-8?q?=E4=B8=8A=E6=AC=A1=E6=AF=94=E4=BB=B7=E3=80=8D=E6=A8=AA=E5=B9=85?= =?UTF-8?q?=E6=8E=A5=E7=9C=9F=E5=AE=9E=20/api/v1/compare/records(4=20?= =?UTF-8?q?=E5=88=86=E9=92=9F=E6=96=B0=E9=B2=9C=E7=AA=97=E5=8F=A3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删写死 mock(DEFAULT_LAST_COMPARE_RECORD + localStorage 读),改带 Bearer token 拉真实比价记录;取最近一条 status=success 且 created_at 在 4 分钟内才显示(对齐原生 HomeViewModel.loadLastCompare),否则/未登录/401 隐藏横幅;进页 + 回前台 visibilitychange 各拉一次;点击仍走 SGBridge.navigate('compareResult')。 Co-Authored-By: Claude Opus 4.8 (1M context) --- h5/home/index.html | 64 ++++++++++++++++++++++++++++------------ tests/test_h5_hosting.py | 16 ++++++++++ 2 files changed, 61 insertions(+), 19 deletions(-) diff --git a/h5/home/index.html b/h5/home/index.html index a927719..ee9b018 100644 --- a/h5/home/index.html +++ b/h5/home/index.html @@ -4931,7 +4931,7 @@ TODO: 补充 @owner / @from / @to / @notes(参照 FLOW.md) -
+