mirror of
http://36.133.248.69:3088/admin/RentWeAppFront.git
synced 2026-06-07 06:22:27 +08:00
修复支付bug
This commit is contained in:
@@ -174,8 +174,13 @@
|
|||||||
this.resetAndLoad();
|
this.resetAndLoad();
|
||||||
},
|
},
|
||||||
formatMoney(val) {
|
formatMoney(val) {
|
||||||
if (!val && val !== 0) return '—';
|
if (val === null || val === undefined || isNaN(val)) return '—';
|
||||||
return '¥' + Number(val).toFixed(2);
|
val = Number(val);
|
||||||
|
if (val >= 100000) {
|
||||||
|
const wan = val / 10000;
|
||||||
|
return '¥' + wan + '万';
|
||||||
|
}
|
||||||
|
return '¥' + val.toFixed(2);
|
||||||
},
|
},
|
||||||
resetAndLoad(){
|
resetAndLoad(){
|
||||||
this.loadStatus = 'more';
|
this.loadStatus = 'more';
|
||||||
|
|||||||
@@ -162,8 +162,9 @@
|
|||||||
formatMoney(val) {
|
formatMoney(val) {
|
||||||
if (val === null || val === undefined || isNaN(val)) return '—';
|
if (val === null || val === undefined || isNaN(val)) return '—';
|
||||||
val = Number(val);
|
val = Number(val);
|
||||||
if (val >= 10000) {
|
if (val >= 100000) {
|
||||||
return '¥' + (val / 10000).toFixed(2) + '万';
|
const wan = val / 10000;
|
||||||
|
return '¥' + wan + '万';
|
||||||
}
|
}
|
||||||
return '¥' + val.toFixed(2);
|
return '¥' + val.toFixed(2);
|
||||||
},
|
},
|
||||||
@@ -255,14 +256,14 @@
|
|||||||
signType: order.miniPayRequest.signType,
|
signType: order.miniPayRequest.signType,
|
||||||
paySign: order.miniPayRequest.paySign,
|
paySign: order.miniPayRequest.paySign,
|
||||||
success: () => {
|
success: () => {
|
||||||
|
this.isPaying = false;
|
||||||
billList.forEach(b => b.checked = false);
|
billList.forEach(b => b.checked = false);
|
||||||
this.updateSelected();
|
this.updateSelected();
|
||||||
this.refresh();
|
this.refresh();
|
||||||
this.isPaying = false;
|
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
this.payFailCallback(err, orderId);
|
|
||||||
this.isPaying = false;
|
this.isPaying = false;
|
||||||
|
this.payFailCallback(err, orderId);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -164,8 +164,9 @@
|
|||||||
formatMoney(val) {
|
formatMoney(val) {
|
||||||
if (val === null || val === undefined || isNaN(val)) return '—';
|
if (val === null || val === undefined || isNaN(val)) return '—';
|
||||||
val = Number(val);
|
val = Number(val);
|
||||||
if (val >= 10000) {
|
if (val >= 100000) {
|
||||||
return '¥' + (val / 10000).toFixed(2) + '万';
|
const wan = val / 10000;
|
||||||
|
return '¥' + wan + '万';
|
||||||
}
|
}
|
||||||
return '¥' + val.toFixed(2);
|
return '¥' + val.toFixed(2);
|
||||||
},
|
},
|
||||||
@@ -257,14 +258,14 @@
|
|||||||
signType: order.miniPayRequest.signType,
|
signType: order.miniPayRequest.signType,
|
||||||
paySign: order.miniPayRequest.paySign,
|
paySign: order.miniPayRequest.paySign,
|
||||||
success: () => {
|
success: () => {
|
||||||
|
this.isPaying = false;
|
||||||
billList.forEach(b => b.checked = false);
|
billList.forEach(b => b.checked = false);
|
||||||
this.updateSelected();
|
this.updateSelected();
|
||||||
this.refresh();
|
this.refresh();
|
||||||
this.isPaying = false;
|
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
this.payFailCallback(err, orderId);
|
|
||||||
this.isPaying = false;
|
this.isPaying = false;
|
||||||
|
this.payFailCallback(err, orderId);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -161,8 +161,9 @@
|
|||||||
formatMoney(val) {
|
formatMoney(val) {
|
||||||
if (val === null || val === undefined || isNaN(val)) return '—';
|
if (val === null || val === undefined || isNaN(val)) return '—';
|
||||||
val = Number(val);
|
val = Number(val);
|
||||||
if (val >= 10000) {
|
if (val >= 100000) {
|
||||||
return '¥' + (val / 10000).toFixed(2) + '万';
|
const wan = val / 10000;
|
||||||
|
return '¥' + wan + '万';
|
||||||
}
|
}
|
||||||
return '¥' + val.toFixed(2);
|
return '¥' + val.toFixed(2);
|
||||||
},
|
},
|
||||||
@@ -233,14 +234,14 @@
|
|||||||
signType: order.miniPayRequest.signType,
|
signType: order.miniPayRequest.signType,
|
||||||
paySign: order.miniPayRequest.paySign,
|
paySign: order.miniPayRequest.paySign,
|
||||||
success: () => {
|
success: () => {
|
||||||
|
this.isPaying = false;
|
||||||
billList.forEach(b => b.checked = false);
|
billList.forEach(b => b.checked = false);
|
||||||
this.updateSelected();
|
this.updateSelected();
|
||||||
this.refresh();
|
this.refresh();
|
||||||
this.isPaying = false;
|
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
this.payFailCallback(err, orderId);
|
|
||||||
this.isPaying = false;
|
this.isPaying = false;
|
||||||
|
this.payFailCallback(err, orderId);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user