diff --git a/src/payment/detail/detail.vue b/src/payment/detail/detail.vue index 95db1b4..9330e7d 100644 --- a/src/payment/detail/detail.vue +++ b/src/payment/detail/detail.vue @@ -15,7 +15,7 @@ const sumVal = computed(() => { orderList.value.forEach((e) => { const productActualWeight = e.productActualWeight || 0 const num = productActualWeight * e.recoveryPrice || 0 - res += num + res += num.toFixed(2) }) return res }) @@ -54,7 +54,7 @@ const handlePayment = async () => { orderList.value.forEach((e) => { const obj = { id: e.id, - productActualWeight: Number(e.productActualWeight), + productActualWeight: Number(e.productActualWeight).toFixed(2), productId: e.productId, } orderDetails.push(obj) @@ -170,7 +170,7 @@ page { justify-content: flex-start; align-items: center; .label { - width: 140rpx; + width: 200rpx; } .val { flex: 1;