兼容接入商品固定价格字段

This commit is contained in:
yml
2026-05-24 18:13:20 +08:00
parent 14aafcf728
commit e69d08ca9f
15 changed files with 153 additions and 32 deletions
@@ -58,7 +58,7 @@ function money(value: number) {
}
function listingPrice(row: Listing) {
return money(row.price_daily || row.price_hourly)
return money(row.price || row.price_daily || row.price_hourly)
}
function extractObjectKey(url: string) {
@@ -63,7 +63,7 @@ function openEvidence(row: Listing) {
}
function listingPrice(row: Listing) {
return `¥${Number(row.price_daily || row.price_hourly || 0).toFixed(2)}`
return `¥${Number(row.price || row.price_daily || row.price_hourly || 0).toFixed(2)}`
}
function extractObjectKey(url: string) {
@@ -43,7 +43,7 @@ function money(value: number) {
}
function listingPrice(row: Listing) {
return money(row.price_daily || row.price_hourly)
return money(row.price || row.price_daily || row.price_hourly)
}
function ownerName(row: Listing) {