Commit b734ec0f authored by chenqikuai's avatar chenqikuai

fix

parent 246bf10e
...@@ -155,29 +155,6 @@ export default { ...@@ -155,29 +155,6 @@ export default {
} }
return res; return res;
}, },
filterNum: (num: number | string | null) => {
if (!num || num === null || num === "") return;
const n = String(num).split(".");
const b = parseInt(n[0]).toString();
const len = b.length;
let result = "";
if (len <= 3) {
result = b;
} else {
const r = len % 3;
result =
r > 0
? b.slice(0, r) +
"," +
(b.slice(r, len).match(/\d{3}/g) || []).join(",")
: (b.slice(r, len).match(/\d{3}/g) || []).join(",");
}
if (n[1]) {
return result + `.${n[1]}`;
} else {
return result;
}
},
filterBlockReward(num: string): string { filterBlockReward(num: string): string {
return Number(num) > yccDifferenceBlockRewardHeight ? `15 YCC` : `30 YCC`; return Number(num) > yccDifferenceBlockRewardHeight ? `15 YCC` : `30 YCC`;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment