master
王文杰 7 months ago
parent 945a42a421
commit 7959143705

@ -15,7 +15,7 @@ const sumVal = computed(() => {
orderList.value.forEach((e) => { orderList.value.forEach((e) => {
const productActualWeight = e.productActualWeight || 0 const productActualWeight = e.productActualWeight || 0
const num = productActualWeight * e.recoveryPrice || 0 const num = productActualWeight * e.recoveryPrice || 0
res += num res += num.toFixed(2)
}) })
return res return res
}) })
@ -54,7 +54,7 @@ const handlePayment = async () => {
orderList.value.forEach((e) => { orderList.value.forEach((e) => {
const obj = { const obj = {
id: e.id, id: e.id,
productActualWeight: Number(e.productActualWeight), productActualWeight: Number(e.productActualWeight).toFixed(2),
productId: e.productId, productId: e.productId,
} }
orderDetails.push(obj) orderDetails.push(obj)
@ -170,7 +170,7 @@ page {
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
.label { .label {
width: 140rpx; width: 200rpx;
} }
.val { .val {
flex: 1; flex: 1;

Loading…
Cancel
Save