函数禁止四sw入

This commit is contained in:
whitechiina 2026-06-24 14:53:57 +08:00
parent 0de90d6c22
commit 18fb11b398
22 changed files with 45 additions and 9 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -351,14 +351,23 @@ export default {
return mergedList;
},
formatAmount(value) {
const number = Number(value || 0);
if (!Number.isFinite(number)) {
return "0";
}
return Math.round(number)
.toString()
.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
const number = Number(value || 0);
if (!Number.isFinite(number)) {
return "0.00";
}
//
const truncated = Math.floor(number * 100) / 100;
//
const formatted = truncated.toFixed(2);
//
const parts = formatted.split(".");
const integerPart = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
const decimalPart = parts[1];
return integerPart + "." + decimalPart;
},
switchRange(nextRangeKey) {
const targetRangeKey = String(nextRangeKey || "");

View File

@ -392,7 +392,7 @@ export default {
this.openResultDialog(
"error",
"兑换失败!",
"兑换数量小于10的倍数不可用",
"兑换算力时所需的抵用券、消费券、余额。必须大于10的倍数。",
);
return;
}

2
unpackage/dist/build/web/index.html vendored Normal file
View File

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>白马交易所</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/bmt/static/index.883130ca.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/bmt/static/js/chunk-vendors.a58c62f3.js></script><script src=/bmt/static/js/index.3acd0820.js></script></body></html>

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long