feat:精度丢失
This commit is contained in:
+2
-1
@@ -76,9 +76,10 @@
|
|||||||
"axios": "0.27.2",
|
"axios": "0.27.2",
|
||||||
"axios-adapter-uniapp": "^0.1.4",
|
"axios-adapter-uniapp": "^0.1.4",
|
||||||
"axios-miniprogram-adapter": "^0.3.4",
|
"axios-miniprogram-adapter": "^0.3.4",
|
||||||
|
"bignumber.js": "^9.3.1",
|
||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
"echarts": "^5.1.2",
|
|
||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
|
"echarts": "^5.1.2",
|
||||||
"qs": "^6.14.0"
|
"qs": "^6.14.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,6 +66,8 @@ import Header from '@/components/header.vue';
|
|||||||
import { getAcctFlow, getAcctMiningStat, getAcctContribution, getAcctFlowList, getBonusStat, getAcctBalance } from '@/api/finance.js';
|
import { getAcctFlow, getAcctMiningStat, getAcctContribution, getAcctFlowList, getBonusStat, getAcctBalance } from '@/api/finance.js';
|
||||||
import { getValue, BALANCE_TYPE } from '@/utils/enumUtils.js';
|
import { getValue, BALANCE_TYPE } from '@/utils/enumUtils.js';
|
||||||
import { formatDate, handleAmount } from '@/utils/index.js';
|
import { formatDate, handleAmount } from '@/utils/index.js';
|
||||||
|
import BigNumber from 'bignumber.js';
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
computed: {
|
computed: {
|
||||||
@@ -233,6 +235,10 @@ export default {
|
|||||||
{
|
{
|
||||||
name: "锁定次数",
|
name: "锁定次数",
|
||||||
key: "lockAmount"
|
key: "lockAmount"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "预发放次数",
|
||||||
|
key: "preAmount"
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -293,7 +299,8 @@ export default {
|
|||||||
console.log("流水贡献值", resp);
|
console.log("流水贡献值", resp);
|
||||||
if (resp && resp.bizcode === 100) {
|
if (resp && resp.bizcode === 100) {
|
||||||
if (resp.data.ratio) {
|
if (resp.data.ratio) {
|
||||||
resp.data.ratio = resp.data.ratio * 100 + '%';
|
const ratio = new Decimal(resp.data.ratio);
|
||||||
|
resp.data.ratio = ratio.times(100).toNumber() + '%';
|
||||||
}
|
}
|
||||||
this.headerData = resp.data || {};
|
this.headerData = resp.data || {};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user