修复bug

This commit is contained in:
2026-04-15 09:26:48 +08:00
parent a89610c245
commit 02243a0b88
3 changed files with 4 additions and 4 deletions
@@ -49,7 +49,7 @@ function getDishPromoLabel(item: Record<string, unknown>): string {
}
function getFeaturedDishDisplayPrice(item: Record<string, any>) {
const firstSpecPrice = item?.merchantSideDishVoList?.[0]?.merchantSideDishItemVoList?.[0]?.price
const firstSpecPrice = item?.merchantSideDishVoList?.[0]?.merchantSideDishItemVoList?.[0]?.actualSalePrice
if (firstSpecPrice != null && String(firstSpecPrice) !== '') return firstSpecPrice
if (item?.actualSalePrice != null && String(item.actualSalePrice) !== '') return item.actualSalePrice
return item?.discountPrice ?? 0