修复支付bug

This commit is contained in:
2026-06-05 17:30:05 +08:00
parent b2275c2636
commit 5379380d33
4 changed files with 22 additions and 14 deletions

View File

@@ -174,8 +174,13 @@
this.resetAndLoad();
},
formatMoney(val) {
if (!val && val !== 0) return '—';
return '¥' + Number(val).toFixed(2);
if (val === null || val === undefined || isNaN(val)) return '—';
val = Number(val);
if (val >= 100000) {
const wan = val / 10000;
return '¥' + wan + '万';
}
return '¥' + val.toFixed(2);
},
resetAndLoad(){
this.loadStatus = 'more';