兼容接入商品固定价格字段
This commit is contained in:
@@ -45,7 +45,7 @@ function readError(error: unknown, fallback: string) {
|
||||
}
|
||||
|
||||
function listingPrice(item: Listing) {
|
||||
return Number(item.price_daily || item.price_hourly || 0).toFixed(2);
|
||||
return Number(item.price || item.price_daily || item.price_hourly || 0).toFixed(2);
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -104,10 +104,11 @@ function listingPrice(item: Listing) {
|
||||
type="warning"
|
||||
size="large"
|
||||
:loading="ordering"
|
||||
:disabled="listing.in_transaction"
|
||||
class="full-control"
|
||||
@click="handleCreateOrder"
|
||||
>
|
||||
立即下单
|
||||
{{ listing.in_transaction ? "交易中" : "立即下单" }}
|
||||
</el-button>
|
||||
</el-form>
|
||||
</aside>
|
||||
|
||||
Reference in New Issue
Block a user