函数禁止四sw入
This commit is contained in:
parent
0de90d6c22
commit
18fb11b398
|
|
@ -353,12 +353,21 @@ export default {
|
|||
formatAmount(value) {
|
||||
const number = Number(value || 0);
|
||||
if (!Number.isFinite(number)) {
|
||||
return "0";
|
||||
return "0.00";
|
||||
}
|
||||
|
||||
return Math.round(number)
|
||||
.toString()
|
||||
.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
||||
// 向下截断到两位小数,不四舍五入
|
||||
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 || "");
|
||||
|
|
|
|||
|
|
@ -392,7 +392,7 @@ export default {
|
|||
this.openResultDialog(
|
||||
"error",
|
||||
"兑换失败!",
|
||||
"兑换数量小于10的倍数不可用",
|
||||
"兑换算力时所需的抵用券、消费券、余额。必须大于10的倍数。",
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
1
unpackage/dist/build/web/static/js/pages-assets-points-convert-detail.fe2028c3.js
vendored
Normal file
1
unpackage/dist/build/web/static/js/pages-assets-points-convert-detail.fe2028c3.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/web/static/js/pages-assets-points-convert-list.b5039069.js
vendored
Normal file
1
unpackage/dist/build/web/static/js/pages-assets-points-convert-list.b5039069.js
vendored
Normal file
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
Loading…
Reference in New Issue