chore(h5): 清空「上次比价」横幅静态 mock 占位文案(窑鸡王/¥57.9/淘宝)
横幅默认 display:none + 真实数据覆盖,占位本不显示;清空源码里的 mock 串,留结构与标签(最低价/去查看)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+4
-4
@@ -4939,18 +4939,18 @@ TODO: 补充 @owner / @from / @to / @notes(参照 FLOW.md)
|
||||
<div class="lcb-body">
|
||||
<div class="lcb-main">
|
||||
<div class="lcb-top">
|
||||
<span class="lcb-shop" id="lastCompareShop">窑鸡王(康营店)</span>
|
||||
<span class="lcb-shop" id="lastCompareShop"></span>
|
||||
</div>
|
||||
<div class="lcb-meta">
|
||||
<span class="lcb-dish" id="lastCompareDish">招牌窑鸡整只-原味</span>
|
||||
<span class="lcb-dish" id="lastCompareDish"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="lcb-pricebox" id="lastComparePriceBox">
|
||||
<div class="lcb-price-label">最低价</div>
|
||||
<div class="lcb-price" id="lastComparePrice">¥57.9</div>
|
||||
<div class="lcb-price" id="lastComparePrice"></div>
|
||||
<div class="lcb-platform" id="lastComparePlatformWrap">
|
||||
<img id="lastComparePlatformLogo" src="assets/shared/logos/taobao.png" alt="">
|
||||
<span class="lcb-platform-name" id="lastComparePlatform">淘宝</span>
|
||||
<span class="lcb-platform-name" id="lastComparePlatform"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -80,6 +80,7 @@ def test_h5_home_last_compare_wired(client) -> None:
|
||||
assert "/api/v1/compare/records" in body # 接真实比价记录端点
|
||||
assert "pickFreshLastCompare" in body # 4 分钟新鲜窗口逻辑
|
||||
assert "DEFAULT_LAST_COMPARE_RECORD" not in body # 写死 mock 默认已移除
|
||||
assert 'id="lastCompareShop">窑鸡王' not in body # 横幅店名静态 mock 占位已清空
|
||||
|
||||
|
||||
def test_compare_records_requires_auth(client) -> None:
|
||||
|
||||
Reference in New Issue
Block a user